lintcode
随便写点
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
28. Search a 2D Matrix python代码
class Solution: """ @param matrix: matrix, a list of lists of integers @param target: An integer @return: a boolean, indicate whether matrix contains target """ def searchMatr...原创 2019-03-04 21:33:10 · 149 阅读 · 0 评论 -
55. 比较字符串 Compare Strings 之python代码
将A中的字母与出现次数储存,与B进行对比,一旦B中的字母不在A中返回false,如果在,将字母出现次数-1,最后查找是否有小于0的情况。class Solution: """ @param A: A string @param B: A string @return: if string A contains all of the characters in ...原创 2019-03-07 15:38:26 · 1130 阅读 · 0 评论 -
60. Search Insert Position 搜索插入位置 python代码
Your submission beats100.00%Submissions!class Solution: """ @param A: an integer sorted array @param target: an integer to be inserted @return: An integer """ def searc...原创 2019-03-08 11:08:20 · 326 阅读 · 0 评论
分享