Hash
MVincent
这个作者很懒,什么都没留下…
展开
-
leetcode 205 Isomorphic Strings
python:class Solution: def isIsomorphic(self, s, t): """ :type s: str :type t: str :rtype: bool """ dic = dict() for i,j in zip(s,t): ...原创 2018-06-05 17:21:00 · 138 阅读 · 0 评论 -
leetcode 290 Word Pattern
python:class Solution(object): def wordPattern(self, pattern, str): """ :type pattern: str :type str: str :rtype: bool """ stlist = str.split() ...原创 2018-06-05 20:13:20 · 209 阅读 · 1 评论 -
leetcode 739 Daily Temperatures
python: class Solution: def dailyTemperatures(self, temperatures): """ :type temperatures: List[int] :rtype: List[int] """ stack = [[temperatures[0], 0]] ...原创 2018-10-07 21:37:00 · 210 阅读 · 0 评论