题目描述:
    image.png
    示例:
    image.png
    解题思路:
    image.png
    解:
    class Solution {
    public boolean isIsomorphic(String s, String t) {
    int[] preIndexOfS=new int[128];
    int[] preIndexOfT=new int[128];
    for(int i=0;i int sc=s.charAt(i);
    int tc=t.charAt(i);
    if(preIndexOfS[sc]!=preIndexOfT[tc]){
    return false;
    }
    preIndexOfS[sc]=i+1;
    preIndexOfT[tc]=i+1;
    }
    return true;
    }
    }