File tree Expand file tree Collapse file tree 1 file changed +25
-26
lines changed Expand file tree Collapse file tree 1 file changed +25
-26
lines changed Original file line number Diff line number Diff line change 5
5
## merge lists
6
6
- 156. Merge Intervals
7
7
8
-
9
-
10
-
11
-
12
-
13
8
# Subarray
14
9
Sum(i~ j) = PrefixSum[ j + 1] - PrefixSum[ i]
15
10
## Winodw sum
@@ -24,25 +19,6 @@ Sum(i~j) = PrefixSum[j + 1] - PrefixSum[i]
24
19
- 628. Maximum Subtree
25
20
26
21
27
-
28
-
29
-
30
- # others
31
- ## Window Sum
32
- - 604. window sum
33
- ## topo sort
34
- - course schedule/II
35
- ## graph
36
- - clone graph
37
- ## list
38
- - copy copyRandomList
39
- ## sorting
40
- - High Five
41
- - Log Sorting
42
- ## others
43
- - K Closest
44
-
45
-
46
22
# String
47
23
## Hash 字符/字符串统计类问题
48
24
- 646. First Position Unique Character
@@ -62,7 +38,6 @@ Sum(i~j) = PrefixSum[j + 1] - PrefixSum[i]
62
38
- 415. Valid Palindrome
63
39
64
40
65
-
66
41
# BFS类问题
67
42
- 二叉树上的宽搜 BFS in Binary Tree
68
43
- 图上的宽搜 BFS in Graph
@@ -93,5 +68,29 @@ Sum(i~j) = PrefixSum[j + 1] - PrefixSum[i]
93
68
- mapping old node to new node
94
69
- conncet all edges (copy neighbors)
95
70
- Graph Valid Tree
96
- ## Minimum Spanning Tree
71
+ ## Topological Sorting (Directed)
72
+ - Topological Sorting
73
+ - collect in-degree 找到所有的 indegree
74
+ - put all nodes that indgree == 0 into queue
75
+ - bfs
76
+ - Course Schedule I && II (to-do)
77
+ - Sequence Reconstruction (to-do)
78
+ ## Minimum Spanning Tree (kruskal & Union Find Sets)
97
79
- 589. Connecting Graph
80
+
81
+
82
+
83
+ # others
84
+ ## Window Sum
85
+ - 604. window sum
86
+ ## topo sort
87
+ - course schedule/II
88
+ ## graph
89
+ - clone graph
90
+ ## list
91
+ - copy copyRandomList
92
+ ## sorting
93
+ - High Five
94
+ - Log Sorting
95
+ ## others
96
+ - K Closest
You can’t perform that action at this time.
0 commit comments