
Leetcode
文章平均质量分 83
laodaliubei
这个作者很懒,什么都没留下…
展开
-
Learning python by leetcode: No.56 Merge intervals
ContentsPreviewcodeDetailslist.sort()sortedPreview题目及算法描述Time complexity : O(nlgn).code# Definition for an interval.# class Interval:# def __init__(self, s=0, e=0):# self.start = s...原创 2018-11-12 20:13:31 · 162 阅读 · 0 评论 -
Learning python by leetcode: No.49 Group Anagrams
contents题目codeFBI Warningdetailsline 7题目leetcode 49 Group Anagramscodeclass Solution: def groupAnagrams(self, strs): """ :type strs: List[str] :rtype: List[List[str]] ...原创 2018-11-13 13:17:43 · 141 阅读 · 0 评论 -
Learning python by leetcode: No.179 Largest number
contents题目algorithmcodedetails\_\_lt\_\_()map(function, iterable)str.join(iterable)sorted(iterable,*,key=None, reverse=False)题目179 Largest Numberalgorithm将int转化为str;排序. 重载比较操作符;Concatenate li...原创 2018-11-13 19:38:49 · 265 阅读 · 0 评论 -
Learning mysql by leetcoe : No. 262 Trips and Users
Leetcode mysql 262 Trips and Users题目解答FBI Warning注解enumbetweencountifround || truncatein关于引号大小写题目goto: leetcode 262难度: Hard解答SELECT Request_at AS Day, ROUND(COUNT(IF(Status != 'completed', TRUE, ...原创 2018-11-12 14:34:57 · 175 阅读 · 0 评论