[LeetCode]389. Find the Difference

class Solution {
public:
    char findTheDifference(string s, string t) {
        int i,l;
        int record[26];
        for(i = 0;i<26;i++)
        {
            record[i] = 0;
        }
        
        l = s.length();
        for(i = 0;i

Given two strings  s and  t which consist of only lowercase letters.

String t is generated by random shuffling string s and then add one more letter at a random position.

Find the letter that was added in t.


你可能感兴趣的:(LeetCode)