2847题: 找第一个只出现一次的字符 摘要:解题思路:双重循环遍历注意事项:int count=0;要在第一个循环内部参考代码: Scanner sc=new Scanner(System.in); String s = s…… 题解列表 2024年03月17日 0 点赞 0 评论 314 浏览 评分:9.9
判断唯一字符-易懂最佳方案 摘要:解题思路:判断字符串是否存在唯一字符 比如 aba ,那么字符'a'最先出现坐标: 0 (str.indexOf("a"))最后出现坐标:2 (str.lastIndexOf…… 题解列表 2024年02月19日 0 点赞 1 评论 312 浏览 评分:9.9
双循环遍历 摘要:# 纯纯打表 ```c++ #include #include using namespace std; char str[10000]; int f[26]; int main() …… 题解列表 2023年05月09日 0 点赞 0 评论 227 浏览 评分:9.9
题解 2847: 找第一个只出现一次的字符 摘要: #include using namespace std; const int N=100000; char a[N]; int cnt[26]; …… 题解列表 2023年12月19日 0 点赞 0 评论 169 浏览 评分:9.9
简单方法(两个循环比较) 摘要:```c #include #include //strlen函数需要调用 int main() { char str[100001],out; int len, sum;…… 题解列表 2023年01月17日 1 点赞 8 评论 886 浏览 评分:10.0