File tree
790 files changed
+1654
-3826
lines changed- basic
- searching/BinarySearch
- sorting
- CountingSort
- InsertionSort
- QuickSort
- SelectionSort
- ShellSort
- lcci
- 02.05.Sum Lists
- 03.03.Stack of Plates
- 03.06.Animal Shelter
- 04.09.BST Sequences
- 04.12.Paths with Sum
- 05.02.Bianry Number to String
- 05.03.Reverse Bits
- 05.04.Closed Number
- 05.08.Draw Line
- 08.02.Robot in a Grid
- 08.05.Recursive Mulitply
- 08.06.Hanota
- 08.08.Permutation II
- 08.10.Color Fill
- 08.11.Coin
- 08.12.Eight Queens
- 08.13.Pile Box
- 10.03.Search Rotate Array
- 10.11.Peaks and Valleys
- 16.03.Intersection
- 16.04.Tic-Tac-Toe
- 16.05.Factorial Zeros
- 16.07.Maximum
- 16.08.English Int
- 16.09.Operations
- 16.11.Diving Board
- 16.13.Bisect Squares
- 16.14.Best Line
- 16.15.Master Mind
- 16.16.Sub Sort
- 16.18.Pattern Matching
- 16.19.Pond Sizes
- 16.20.T9
- 16.21.Sum Swap
- 16.22.Langtons Ant
- 16.24.Pairs With Sum
- 16.25.LRU Cache
- 16.26.Calculator
- 17.06.Number Of 2s In Range
- 17.08.Circus Tower
- 17.09.Get Kth Magic Number
- 17.14.Smallest K
- 17.18.Shortest Supersequence
- 17.19.Missing Two
- 17.23.Max Black Square
- 17.24.Max Submatrix
- 17.25.Word Rectangle
- 17.26.Sparse Similarity
- lcof
- 面试题06. 从尾到头打印链表
- 面试题09. 用两个栈实现队列
- 面试题18. 删除链表的节点
- 面试题29. 顺时针打印矩阵
- 面试题32 - I. 从上到下打印二叉树
- 面试题36. 二叉搜索树与双向链表
- 面试题40. 最小的k个数
- 面试题43. 1~n整数中1出现的次数
- 面试题45. 把数组排成最小的数
- 面试题55 - II. 平衡二叉树
- 面试题56 - I. 数组中数字出现的次数
- 面试题57. 和为s的两个数字
- 面试题67. 把字符串转换成整数
- lcof2
- 剑指 Offer II 006. 排序数组中两个数字之和
- 剑指 Offer II 013. 二维子矩阵的和
- 剑指 Offer II 029. 排序的循环链表
- 剑指 Offer II 030. 插入、删除和随机访问都是 O(1) 的容器
- 剑指 Offer II 036. 后缀表达式
- 剑指 Offer II 039. 直方图最大矩形面积
- 剑指 Offer II 060. 出现频率最高的 k 个数字
- 剑指 Offer II 061. 和最小的 k 个数对
- 剑指 Offer II 070. 排序数组中只出现一次的数字
- 剑指 Offer II 072. 求平方根
- 剑指 Offer II 074. 合并区间
- 剑指 Offer II 076. 数组中的第 k 大的数字
- 剑指 Offer II 083. 没有重复元素集合的全排列
- 剑指 Offer II 084. 含有重复元素集合的全排列
- 剑指 Offer II 086. 分割回文子字符串
- 剑指 Offer II 096. 字符串交织
- 剑指 Offer II 100. 三角形中最小路径之和
- 剑指 Offer II 103. 最少的硬币数目
- 剑指 Offer II 104. 排列的数目
- 剑指 Offer II 105. 岛屿的最大面积
- 剑指 Offer II 107. 矩阵中的距离
- 剑指 Offer II 108. 单词演变
- 剑指 Offer II 109. 开密码锁
- 剑指 Offer II 111. 计算除法
- 剑指 Offer II 114. 外星文字典
- lcp/LCP 02. 分式化简
- solution
- 0000-0099
- 0001.Two Sum
- 0008.String to Integer (atoi)
- 0011.Container With Most Water
- 0012.Integer to Roman
- 0017.Letter Combinations of a Phone Number
- 0020.Valid Parentheses
- 0027.Remove Element
- 0034.Find First and Last Position of Element in Sorted Array
- 0046.Permutations
- 0047.Permutations II
- 0051.N-Queens
- 0056.Merge Intervals
- 0057.Insert Interval
- 0067.Add Binary
- 0068.Text Justification
- 0069.Sqrt(x)
- 0076.Minimum Window Substring
- 0081.Search in Rotated Sorted Array II
- 0091.Decode Ways
- 0100-0199
- 0146.LRU Cache
- 0150.Evaluate Reverse Polish Notation
- 0167.Two Sum II - Input Array Is Sorted
- 0198.House Robber
- 0200-0299
- 0203.Remove Linked List Elements
- 0215.Kth Largest Element in an Array
- 0222.Count Complete Tree Nodes
- 0227.Basic Calculator II
- 0232.Implement Queue using Stacks
- 0233.Number of Digit One
- 0246.Strobogrammatic Number
- 0247.Strobogrammatic Number II
- 0258.Add Digits
- 0264.Ugly Number II
- 0269.Alien Dictionary
- 0272.Closest Binary Search Tree Value II
- 0273.Integer to English Words
- 0282.Expression Add Operators
- 0284.Peeking Iterator
- 0286.Walls and Gates
- 0289.Game of Life
- 0300-0399
- 0302.Smallest Rectangle Enclosing Black Pixels
- 0305.Number of Islands II
- 0312.Burst Balloons
- 0317.Shortest Distance from All Buildings
- 0333.Largest BST Subtree
- 0335.Self Crossing
- 0345.Reverse Vowels of a String
- 0347.Top K Frequent Elements
- 0348.Design Tic-Tac-Toe
- 0352.Data Stream as Disjoint Intervals
- 0354.Russian Doll Envelopes
- 0355.Design Twitter
- 0359.Logger Rate Limiter
- 0362.Design Hit Counter
- 0373.Find K Pairs with Smallest Sums
- 0379.Design Phone Directory
- 0380.Insert Delete GetRandom O(1)
- 0381.Insert Delete GetRandom O(1) - Duplicates allowed
- 0391.Perfect Rectangle
- 0399.Evaluate Division
- 0400-0499
- 0407.Trapping Rain Water II
- 0417.Pacific Atlantic Water Flow
- 0427.Construct Quad Tree
- 0436.Find Right Interval
- 0440.K-th Smallest in Lexicographical Order
- 0445.Add Two Numbers II
- 0460.LFU Cache
- 0464.Can I Win
- 0474.Ones and Zeroes
- 0483.Smallest Good Base
- 0487.Max Consecutive Ones II
- 0490.The Maze
- 0492.Construct the Rectangle
- 0497.Random Point in Non-overlapping Rectangles
- 0499.The Maze III
- 0500-0599
- 0504.Base 7
- 0505.The Maze II
- 0506.Relative Ranks
- 0507.Perfect Number
- 0510.Inorder Successor in BST II
- 0519.Random Flip Matrix
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
790 files changed
+1654
-3826
lines changedDiff for: basic/searching/BinarySearch/README.md
+5-2
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
25 | 25 |
| |
26 | 26 |
| |
27 | 27 |
| |
28 |
| - | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
29 | 31 |
| |
30 |
| - | |
| 32 | + | |
| 33 | + | |
31 | 34 |
| |
32 | 35 |
| |
33 | 36 |
| |
|
+5-2
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
23 | 23 |
| |
24 | 24 |
| |
25 | 25 |
| |
26 |
| - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
27 | 29 |
| |
28 |
| - | |
| 30 | + | |
| 31 | + | |
29 | 32 |
| |
30 | 33 |
| |
31 | 34 |
| |
|
Diff for: basic/sorting/CountingSort/README.md
+2-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
17 | 17 |
| |
18 | 18 |
| |
19 | 19 |
| |
20 |
| - | |
| 20 | + | |
| 21 | + | |
21 | 22 |
| |
22 | 23 |
| |
23 | 24 |
| |
|
Diff for: basic/sorting/InsertionSort/README.md
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
27 | 27 |
| |
28 | 28 |
| |
29 | 29 |
| |
30 |
| - | |
| 30 | + | |
31 | 31 |
| |
32 | 32 |
| |
33 | 33 |
| |
|
Diff for: basic/sorting/QuickSort/README.md
+4-2
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
121 | 121 |
| |
122 | 122 |
| |
123 | 123 |
| |
124 |
| - | |
125 |
| - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
126 | 128 |
| |
127 | 129 |
| |
128 | 130 |
| |
|
Diff for: basic/sorting/SelectionSort/README.md
-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
37 | 37 |
| |
38 | 38 |
| |
39 | 39 |
| |
40 |
| - | |
41 | 40 |
| |
42 | 41 |
| |
43 | 42 |
| |
|
Diff for: basic/sorting/ShellSort/README.md
+1-1
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
36 | 36 |
| |
37 | 37 |
| |
38 | 38 |
| |
39 |
| - | |
| 39 | + | |
40 | 40 |
| |
41 | 41 |
| |
42 | 42 |
| |
|
Diff for: lcci/02.05.Sum Lists/README.md
+1-2
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
80 | 80 |
| |
81 | 81 |
| |
82 | 82 |
| |
83 |
| - | |
84 |
| - | |
| 83 | + | |
85 | 84 |
| |
86 | 85 |
| |
87 | 86 |
| |
|
Diff for: lcci/02.05.Sum Lists/README_EN.md
+1-2
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
75 | 75 |
| |
76 | 76 |
| |
77 | 77 |
| |
78 |
| - | |
79 |
| - | |
| 78 | + | |
80 | 79 |
| |
81 | 80 |
| |
82 | 81 |
| |
|
Diff for: lcci/03.03.Stack of Plates/README.md
-30
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
3 | 2 |
| |
4 |
| - | |
5 | 3 |
| |
6 |
| - | |
7 | 4 |
| |
8 | 5 |
| |
9 |
| - | |
10 | 6 |
| |
11 |
| - | |
12 | 7 |
| |
13 |
| - | |
14 | 8 |
| |
15 | 9 |
| |
16 | 10 |
| |
17 | 11 |
| |
18 | 12 |
| |
19 | 13 |
| |
20 |
| - | |
21 | 14 |
| |
22 |
| - | |
23 | 15 |
| |
24 | 16 |
| |
25 | 17 |
| |
26 | 18 |
| |
27 | 19 |
| |
28 | 20 |
| |
29 |
| - | |
30 | 21 |
| |
31 |
| - | |
32 | 22 |
| |
33 |
| - | |
34 | 23 |
| |
35 |
| - | |
36 | 24 |
| |
37 |
| - | |
38 | 25 |
| |
39 |
| - | |
40 | 26 |
| |
41 | 27 |
| |
42 |
| - | |
43 | 28 |
| |
44 |
| - | |
45 | 29 |
| |
46 |
| - | |
47 | 30 |
| |
48 |
| - | |
49 | 31 |
| |
50 | 32 |
| |
51 |
| - | |
52 | 33 |
| |
53 |
| - | |
54 | 34 |
| |
55 |
| - | |
56 | 35 |
| |
57 | 36 |
| |
58 | 37 |
| |
59 | 38 |
| |
60 |
| - | |
61 | 39 |
| |
62 | 40 |
| |
63 | 41 |
| |
64 | 42 |
| |
65 |
| - | |
66 | 43 |
| |
67 | 44 |
| |
68 | 45 |
| |
| |||
75 | 52 |
| |
76 | 53 |
| |
77 | 54 |
| |
78 |
| - | |
79 | 55 |
| |
80 | 56 |
| |
81 | 57 |
| |
| |||
88 | 64 |
| |
89 | 65 |
| |
90 | 66 |
| |
91 |
| - | |
92 | 67 |
| |
93 | 68 |
| |
94 | 69 |
| |
| |||
101 | 76 |
| |
102 | 77 |
| |
103 | 78 |
| |
104 |
| - | |
105 | 79 |
| |
106 | 80 |
| |
107 | 81 |
| |
| |||
110 | 84 |
| |
111 | 85 |
| |
112 | 86 |
| |
113 |
| - | |
114 | 87 |
| |
115 |
| - | |
116 | 88 |
| |
117 | 89 |
| |
118 |
| - | |
119 | 90 |
| |
120 |
| - | |
121 | 91 |
|
Diff for: lcci/03.03.Stack of Plates/README_EN.md
-53
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 |
| - | |
3 | 2 |
| |
4 |
| - | |
5 | 3 |
| |
6 |
| - | |
7 | 4 |
| |
8 |
| - | |
9 | 5 |
| |
10 |
| - | |
11 | 6 |
| |
12 |
| - | |
13 | 7 |
| |
14 | 8 |
| |
15 |
| - | |
16 |
| - | |
17 | 9 |
| |
18 | 10 |
| |
19 |
| - | |
20 |
| - | |
21 | 11 |
| |
22 | 12 |
| |
23 |
| - | |
24 |
| - | |
25 | 13 |
| |
26 | 14 |
| |
27 |
| - | |
28 |
| - | |
29 | 15 |
| |
30 | 16 |
| |
31 |
| - | |
32 |
| - | |
33 | 17 |
| |
34 | 18 |
| |
35 |
| - | |
36 |
| - | |
37 | 19 |
| |
38 | 20 |
| |
39 |
| - | |
40 |
| - | |
41 | 21 |
| |
42 |
| - | |
43 | 22 |
| |
44 |
| - | |
45 | 23 |
| |
46 | 24 |
| |
47 |
| - | |
48 |
| - | |
49 | 25 |
| |
50 | 26 |
| |
51 |
| - | |
52 |
| - | |
53 | 27 |
| |
54 | 28 |
| |
55 |
| - | |
56 |
| - | |
57 | 29 |
| |
58 | 30 |
| |
59 |
| - | |
60 |
| - | |
61 | 31 |
| |
62 | 32 |
| |
63 |
| - | |
64 |
| - | |
65 | 33 |
| |
66 | 34 |
| |
67 |
| - | |
68 |
| - | |
69 | 35 |
| |
70 |
| - | |
71 | 36 |
| |
72 |
| - | |
73 | 37 |
| |
74 |
| - | |
75 | 38 |
| |
76 |
| - | |
77 | 39 |
| |
78 | 40 |
| |
79 |
| - | |
80 | 41 |
| |
81 |
| - | |
82 | 42 |
| |
83 |
| - | |
84 | 43 |
| |
85 | 44 |
| |
86 |
| - | |
87 | 45 |
| |
88 |
| - | |
89 | 46 |
| |
90 |
| - | |
91 | 47 |
| |
92 | 48 |
| |
93 | 49 |
| |
94 | 50 |
| |
95 |
| - | |
96 | 51 |
| |
97 | 52 |
| |
98 | 53 |
| |
99 | 54 |
| |
100 |
| - | |
101 | 55 |
| |
102 | 56 |
| |
103 | 57 |
| |
| |||
110 | 64 |
| |
111 | 65 |
| |
112 | 66 |
| |
113 |
| - | |
114 | 67 |
| |
115 | 68 |
| |
116 | 69 |
| |
| |||
123 | 76 |
| |
124 | 77 |
| |
125 | 78 |
| |
126 |
| - | |
127 | 79 |
| |
128 | 80 |
| |
129 | 81 |
| |
| |||
136 | 88 |
| |
137 | 89 |
| |
138 | 90 |
| |
139 |
| - | |
140 | 91 |
| |
141 | 92 |
| |
142 | 93 |
| |
| |||
145 | 96 |
| |
146 | 97 |
| |
147 | 98 |
| |
148 |
| - | |
149 | 99 |
| |
150 |
| - | |
151 | 100 |
| |
152 | 101 |
| |
153 |
| - | |
154 | 102 |
| |
155 |
| - | |
156 | 103 |
|
Diff for: lcci/03.06.Animal Shelter/README.md
+6-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
103 | 103 |
| |
104 | 104 |
| |
105 | 105 |
| |
106 |
| - | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
107 | 110 |
| |
108 | 111 |
| |
109 | 112 |
| |
110 |
| - | |
| 113 | + | |
111 | 114 |
| |
112 | 115 |
| |
113 | 116 |
| |
114 |
| - | |
| 117 | + | |
115 | 118 |
| |
116 | 119 |
| |
117 | 120 |
| |
|
Diff for: lcci/03.06.Animal Shelter/README_EN.md
+6-3
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
108 | 108 |
| |
109 | 109 |
| |
110 | 110 |
| |
111 |
| - | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
112 | 115 |
| |
113 | 116 |
| |
114 | 117 |
| |
115 |
| - | |
| 118 | + | |
116 | 119 |
| |
117 | 120 |
| |
118 | 121 |
| |
119 |
| - | |
| 122 | + | |
120 | 123 |
| |
121 | 124 |
| |
122 | 125 |
| |
|
0 commit comments