IT入门 > 面试题 > python题库 > 编程题 >
  • 两个字符串是否是变位词

    2019/07/27 点击:1551

    class Anagram: """ @:param s1: The first string @:param s2: The second string @:return true or false """ def Solution1(s1,s2): alist = list(s2) pos1 = 0 stillOK = True while pos1