[字符串]leetcode389:找不一样(easy)

题目: 题解:web 题目比较简单,直接看代码及注解便可。 代码以下:svg class Solution { public: //题解1:统计字符串s和t的26个字母的个数,而后遍历26个字母,返回不一样数量的字母 char findTheDifference_1(string s, string t) { int count_s[26],count_t[26];
相关文章
相关标签/搜索