摘要:
def sameStr(self,s,t): s1={} s2={} for i in range(len(s)): if s[i]not in s1 and t[i] not in s2: s1[s[i]]=i s2[t[i]]=i else: if s1.get(s[i])==None or s 阅读全文
摘要:
class ListNode: def __init__(self, x): self.val = x self.next = None class Solution: # 返回从尾部到头部的列表值序列,例如[1,2,3] def printListFromTailToHead(self, list 阅读全文