没有合适的资源?快使用搜索试试~ 我知道了~
leetcode和oj-leetcode-master:leetcode大师
共58个文件
py:54个
gitattributes:1个
ds_store:1个
需积分: 9 0 下载量 19 浏览量
2021-06-30
02:41:11
上传
评论
收藏 47KB ZIP 举报
温馨提示
leetcode 和 oj leetcode 该存储库包含一系列问题的解决方案(强烈推荐用于面试准备)。 已经有很多可用的存储库更详尽,而且 leetcode 中的讨论论坛也很棒(去看看吧!)。 这个特定的存储库有不同的用途——它把每个问题当作由面试官提出的,并非常简短地列出了受访者应该提出的可能问题,一个人可能对他们的方法做出的早期评论,以及一个非常平庸的解决方案。 解决了大多数简单和中等级别的问题。 请注意,这应该提供面试准备建议,而不是最酷甚至最有效的解决方案。 假设 一些基本的数据结构初始化可能会被压缩,并在下面列出以供参考。 二叉树节点初始化如下: class TreeNode(object): def __init__(self, x): self.val = x self.left = None self.right = None 一个链表节点发起如下: class ListNode(object): def __init__(self, x): self.val = x self.next = None 问题 少数解决方案可能会在leetcode在线判断中出现超时。 一
资源推荐
资源详情
资源评论
收起资源包目录
leetcode-master-master.zip (58个子文件)
leetcode-master-master
.DS_Store 6KB
.gitattributes 65B
151-200
151-reverse-words-in-string.py 590B
152-max-product-subarray.py 850B
179-largest-number.py 964B
301-350
307-range-sum-query-mutable.py 2KB
LICENSE 1KB
201-250
222-count-complete-tree-node.py 1KB
README.md 2KB
501
506-relative-ranks.py 2KB
001-050
008-string-to-nteger-(atoi).py 2KB
003-longest-substring-without-repeating.py 1KB
005-longest-palindromic-substring.py 1KB
007-reverse-integer.py 1KB
011-contains-most-water.py 1KB
001-two-sum.py 1KB
015-3Sum.py 2KB
018-4sum.py 1KB
014-longest-common-prefix.py 1KB
002-add-two-numbers.py 2KB
029-divide-two-integers.py 1KB
006-zigzag-conversion.py 2KB
451-500
481-magical-string.py 1KB
485-max-consecutive-ones.py 831B
475-heaters.py 2KB
477-total-hamming-distance.py 2KB
482-license-key-formatting.py 2KB
476-number-complement.py 688B
051-100
068-text-justification.py 3KB
098-validate-bst.py 2KB
056-merge-intervals.py 2KB
061-rotate-list.py 1KB
054-spiral-matrix.py 2KB
071-simplify-path.py 1KB
101-150
106-binary-tree-in-post.py 1KB
109-sorted-linked-list-bst.py 1KB
128-longest-consecutive-sequence.py 1KB
105-binary-tree-pre-in.py 1KB
104-maximum-depth-binary-tree.py 592B
107-binary-tree-level-traversal-II.py 1KB
129-sum-root-to-leaf.py 2KB
121-buy-sell-stock.py 1KB
111-min-depth-binary-tree.py 701B
118-pascal-triangle.py 923B
113-path-sum-II.py 2KB
101-symmetric-tree.py 1KB
119-pascal-triangle-II.py 858B
122-buy-sell-stock-II.py 1KB
114-flattern-list.py 1KB
125-valid-palindrome.py 1KB
108-sorted-array-bst.py 872B
103-binary-tree-zigzag-order-reversal.py 1KB
127-word-ladder.py 2KB
130-surrounded-regions.py 2KB
112-path-sum.py 780B
110-balanced-binary-tree.py 800B
102-binary-tree-level-order-reversal.py 1KB
120-triangle.py 1KB
共 58 条
- 1
资源评论
weixin_38692631
- 粉丝: 0
- 资源: 881
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功