没有合适的资源?快使用搜索试试~ 我知道了~
leetcode2sumc-LeetCode:练习商务面试
共27个文件
md:12个
py:11个
cpp:4个
需积分: 5 0 下载量 159 浏览量
2021-07-06
17:51:30
上传
评论
收藏 19KB ZIP 举报
温馨提示
leetcode 2 sum c LeetCode规划 LEETCODE PATTERNS 从LeetCode学演算法 Leetcode笔记 Leetcode 经典题目 程式题 1) reverse string Input: ["h","e","l","l","o"] Output: ["o","l","l","e","h"] 使用内部swap class Solution(object): def reverseString(self, s): """ :type s: List[str] :rtype: None Do not return anything, modify s in-place instead. """ i = 0 j = len(s)-1 while(i<j ns[i], s[j] = s[j], s[i] i + n1 j -= 1 return s 2) merge intervals (第一类) ex: [1,2], [2,3], [4,5], [5,7] > [1,2,3], [4,5,7] 3) merge intervals (第二类) - M
资源推荐
资源详情
资源评论
收起资源包目录
LeetCode-master.zip (27个子文件)
LeetCode-master
DFS
README.md 8B
linked list
README.md 8B
Two Pointers
README.md 8B
Dynamic Programming
README.md 22B
70-Climbing Stairs.py 879B
Trie
README.md 8B
README.md 14KB
Intervals
README.md 8B
BFS
README.md 8B
Binary Search
README.md 8B
Fast & Slow Pointers
README.md 8B
Tree
103. Binary Tree Zigzag Level Order Traversal.py 1KB
543. Diameter of Binary Tree.py 1KB
104. Maximum Depth of Binary Tree.py 1KB
235. Lowest Common Ancestor of a Binary Search Tree.py 2KB
102. Binary Tree Level Order Traversal.py 1KB
Backtracking
README.md 15B
784-Letter Case Permutation.py 1KB
Arrays
268-Missing Number.py 544B
268_Missing_Number.cpp 886B
136_Single_Number.cpp 862B
217_Contains_Duplicate.cpp 835B
README.md 12B
448-Find All Numbers Disappeared in an Array.py 1018B
136-Single Number.py 613B
217-Contains Duplicate.py 576B
448_Numbers_Disappeared.cpp 2KB
共 27 条
- 1
资源评论
weixin_38717870
- 粉丝: 2
- 资源: 908
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功