<filename>Cpp/205_isomorphic_strings/solution.cpp
class Solution 
{
public:
    bool isIsomorphic(string s, string t) 
    {
        if (s.size() != t.size()) return false;
        vector<int> m1(128, 0);
        vector<int> m2(m1);
        for (int i = 0; i < s.size(); i ++)
        {
            if (m1[s[i]] != m2[t[i]]) return false;
            m1[s[i]] = i+1;
            m2[t[i]] = i+1;
        }
        return true;
    }
};