-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbreadth-first-search.json
402 lines (401 loc) · 11.3 KB
/
breadth-first-search.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
[
{
"acceptance" : "46.8%",
"difficulty" : "Easy",
"title" : "Symmetric Tree",
"iD" : "101",
"url" : "https:\/\/leetcode.com\/problems\/symmetric-tree"
},
{
"acceptance" : "54.5%",
"difficulty" : "Medium",
"title" : "Binary Tree Level Order Traversal",
"iD" : "102",
"url" : "https:\/\/leetcode.com\/problems\/binary-tree-level-order-traversal"
},
{
"acceptance" : "48.2%",
"difficulty" : "Medium",
"title" : "Binary Tree Zigzag Level Order Traversal",
"iD" : "103",
"url" : "https:\/\/leetcode.com\/problems\/binary-tree-zigzag-level-order-traversal"
},
{
"acceptance" : "53.5%",
"difficulty" : "Easy",
"title" : "Binary Tree Level Order Traversal II",
"iD" : "107",
"url" : "https:\/\/leetcode.com\/problems\/binary-tree-level-order-traversal-ii"
},
{
"acceptance" : "37.4%",
"difficulty" : "Easy",
"title" : "Minimum Depth of Binary Tree",
"iD" : "111",
"url" : "https:\/\/leetcode.com\/problems\/minimum-depth-of-binary-tree"
},
{
"acceptance" : "22.1%",
"difficulty" : "Hard",
"title" : "Word Ladder II",
"iD" : "126",
"url" : "https:\/\/leetcode.com\/problems\/word-ladder-ii"
},
{
"acceptance" : "29.5%",
"difficulty" : "Medium",
"title" : "Word Ladder",
"iD" : "127",
"url" : "https:\/\/leetcode.com\/problems\/word-ladder"
},
{
"acceptance" : "28.1%",
"difficulty" : "Medium",
"title" : "Surrounded Regions",
"iD" : "130",
"url" : "https:\/\/leetcode.com\/problems\/surrounded-regions"
},
{
"acceptance" : "34.7%",
"difficulty" : "Medium",
"title" : "Clone Graph",
"iD" : "133",
"url" : "https:\/\/leetcode.com\/problems\/clone-graph"
},
{
"acceptance" : "54.0%",
"difficulty" : "Medium",
"title" : "Binary Tree Right Side View",
"iD" : "199",
"url" : "https:\/\/leetcode.com\/problems\/binary-tree-right-side-view"
},
{
"acceptance" : "46.8%",
"difficulty" : "Medium",
"title" : "Number of Islands",
"iD" : "200",
"url" : "https:\/\/leetcode.com\/problems\/number-of-islands"
},
{
"acceptance" : "43.1%",
"difficulty" : "Medium",
"title" : "Course Schedule",
"iD" : "207",
"url" : "https:\/\/leetcode.com\/problems\/course-schedule"
},
{
"acceptance" : "40.7%",
"difficulty" : "Medium",
"title" : "Course Schedule II",
"iD" : "210",
"url" : "https:\/\/leetcode.com\/problems\/course-schedule-ii"
},
{
"acceptance" : "47.3%",
"difficulty" : "Medium",
"title" : "Perfect Squares",
"iD" : "279",
"url" : "https:\/\/leetcode.com\/problems\/perfect-squares"
},
{
"acceptance" : "43.3%",
"difficulty" : "Hard",
"title" : "Remove Invalid Parentheses",
"iD" : "301",
"url" : "https:\/\/leetcode.com\/problems\/remove-invalid-parentheses"
},
{
"acceptance" : "32.3%",
"difficulty" : "Medium",
"title" : "Minimum Height Trees",
"iD" : "310",
"url" : "https:\/\/leetcode.com\/problems\/minimum-height-trees"
},
{
"acceptance" : "42.4%",
"difficulty" : "Hard",
"title" : "Trapping Rain Water II",
"iD" : "407",
"url" : "https:\/\/leetcode.com\/problems\/trapping-rain-water-ii"
},
{
"acceptance" : "41.1%",
"difficulty" : "Medium",
"title" : "Pacific Atlantic Water Flow",
"iD" : "417",
"url" : "https:\/\/leetcode.com\/problems\/pacific-atlantic-water-flow"
},
{
"acceptance" : "61.5%",
"difficulty" : "Medium",
"title" : "Find Bottom Left Tree Value",
"iD" : "513",
"url" : "https:\/\/leetcode.com\/problems\/find-bottom-left-tree-value"
},
{
"acceptance" : "61.1%",
"difficulty" : "Medium",
"title" : "Find Largest Value in Each Tree Row",
"iD" : "515",
"url" : "https:\/\/leetcode.com\/problems\/find-largest-value-in-each-tree-row"
},
{
"acceptance" : "59.1%",
"difficulty" : "Medium",
"title" : "Minesweeper",
"iD" : "529",
"url" : "https:\/\/leetcode.com\/problems\/minesweeper"
},
{
"acceptance" : "39.8%",
"difficulty" : "Medium",
"title" : "01 Matrix",
"iD" : "542",
"url" : "https:\/\/leetcode.com\/problems\/01-matrix"
},
{
"acceptance" : "34.6%",
"difficulty" : "Hard",
"title" : "Cut Off Trees for Golf Event",
"iD" : "675",
"url" : "https:\/\/leetcode.com\/problems\/cut-off-trees-for-golf-event"
},
{
"acceptance" : "57.3%",
"difficulty" : "Easy",
"title" : "Employee Importance",
"iD" : "690",
"url" : "https:\/\/leetcode.com\/problems\/employee-importance"
},
{
"acceptance" : "44.9%",
"difficulty" : "Medium",
"title" : "Network Delay Time",
"iD" : "743",
"url" : "https:\/\/leetcode.com\/problems\/network-delay-time"
},
{
"acceptance" : "51.8%",
"difficulty" : "Medium",
"title" : "Open the Lock",
"iD" : "752",
"url" : "https:\/\/leetcode.com\/problems\/open-the-lock"
},
{
"acceptance" : "64.9%",
"difficulty" : "Medium",
"title" : "N-ary Tree Level Order Traversal",
"iD" : "429",
"url" : "https:\/\/leetcode.com\/problems\/n-ary-tree-level-order-traversal"
},
{
"acceptance" : "68.6%",
"difficulty" : "Easy",
"title" : "Maximum Depth of N-ary Tree",
"iD" : "559",
"url" : "https:\/\/leetcode.com\/problems\/maximum-depth-of-n-ary-tree"
},
{
"acceptance" : "59.3%",
"difficulty" : "Hard",
"title" : "Sliding Puzzle",
"iD" : "773",
"url" : "https:\/\/leetcode.com\/problems\/sliding-puzzle"
},
{
"acceptance" : "47.5%",
"difficulty" : "Medium",
"title" : "Is Graph Bipartite?",
"iD" : "785",
"url" : "https:\/\/leetcode.com\/problems\/is-graph-bipartite"
},
{
"acceptance" : "39.3%",
"difficulty" : "Medium",
"title" : "Cheapest Flights Within K Stops",
"iD" : "787",
"url" : "https:\/\/leetcode.com\/problems\/cheapest-flights-within-k-stops"
},
{
"acceptance" : "42.6%",
"difficulty" : "Hard",
"title" : "Bus Routes",
"iD" : "815",
"url" : "https:\/\/leetcode.com\/problems\/bus-routes"
},
{
"acceptance" : "51.9%",
"difficulty" : "Hard",
"title" : "Shortest Path Visiting All Nodes",
"iD" : "847",
"url" : "https:\/\/leetcode.com\/problems\/shortest-path-visiting-all-nodes"
},
{
"acceptance" : "38.2%",
"difficulty" : "Hard",
"title" : "K-Similar Strings",
"iD" : "854",
"url" : "https:\/\/leetcode.com\/problems\/k-similar-strings"
},
{
"acceptance" : "55.3%",
"difficulty" : "Medium",
"title" : "All Nodes Distance K in Binary Tree",
"iD" : "863",
"url" : "https:\/\/leetcode.com\/problems\/all-nodes-distance-k-in-binary-tree"
},
{
"acceptance" : "40.1%",
"difficulty" : "Hard",
"title" : "Shortest Path to Get All Keys",
"iD" : "864",
"url" : "https:\/\/leetcode.com\/problems\/shortest-path-to-get-all-keys"
},
{
"acceptance" : "38.4%",
"difficulty" : "Medium",
"title" : "Snakes and Ladders",
"iD" : "909",
"url" : "https:\/\/leetcode.com\/problems\/snakes-and-ladders"
},
{
"acceptance" : "31.3%",
"difficulty" : "Hard",
"title" : "Cat and Mouse",
"iD" : "913",
"url" : "https:\/\/leetcode.com\/problems\/cat-and-mouse"
},
{
"acceptance" : "48.1%",
"difficulty" : "Medium",
"title" : "Shortest Bridge",
"iD" : "934",
"url" : "https:\/\/leetcode.com\/problems\/shortest-bridge"
},
{
"acceptance" : "52.0%",
"difficulty" : "Easy",
"title" : "Cousins in Binary Tree",
"iD" : "993",
"url" : "https:\/\/leetcode.com\/problems\/cousins-in-binary-tree"
},
{
"acceptance" : "47.8%",
"difficulty" : "Medium",
"title" : "Rotting Oranges",
"iD" : "994",
"url" : "https:\/\/leetcode.com\/problems\/rotting-oranges"
},
{
"acceptance" : "35.4%",
"difficulty" : "Hard",
"title" : "Escape a Large Maze",
"iD" : "1036",
"url" : "https:\/\/leetcode.com\/problems\/escape-a-large-maze"
},
{
"acceptance" : "43.4%",
"difficulty" : "Medium",
"title" : "As Far from Land as Possible",
"iD" : "1162",
"url" : "https:\/\/leetcode.com\/problems\/as-far-from-land-as-possible"
},
{
"acceptance" : "38.2%",
"difficulty" : "Medium",
"title" : "Shortest Path in Binary Matrix",
"iD" : "1091",
"url" : "https:\/\/leetcode.com\/problems\/shortest-path-in-binary-matrix"
},
{
"acceptance" : "38.9%",
"difficulty" : "Medium",
"title" : "Shortest Path with Alternating Colors",
"iD" : "1129",
"url" : "https:\/\/leetcode.com\/problems\/shortest-path-with-alternating-colors"
},
{
"acceptance" : "45.2%",
"difficulty" : "Hard",
"title" : "Minimum Moves to Reach Target with Rotations",
"iD" : "1210",
"url" : "https:\/\/leetcode.com\/problems\/minimum-moves-to-reach-target-with-rotations"
},
{
"acceptance" : "41.4%",
"difficulty" : "Hard",
"title" : "Minimum Moves to Move a Box to Their Target Location",
"iD" : "1263",
"url" : "https:\/\/leetcode.com\/problems\/minimum-moves-to-move-a-box-to-their-target-location"
},
{
"acceptance" : "69.5%",
"difficulty" : "Hard",
"title" : "Minimum Number of Flips to Convert Binary Matrix to Zero Matrix",
"iD" : "1284",
"url" : "https:\/\/leetcode.com\/problems\/minimum-number-of-flips-to-convert-binary-matrix-to-zero-matrix"
},
{
"acceptance" : "42.8%",
"difficulty" : "Hard",
"title" : "Shortest Path in a Grid with Obstacles Elimination",
"iD" : "1293",
"url" : "https:\/\/leetcode.com\/problems\/shortest-path-in-a-grid-with-obstacles-elimination"
},
{
"acceptance" : "58.9%",
"difficulty" : "Hard",
"title" : "Maximum Candies You Can Get from Boxes",
"iD" : "1298",
"url" : "https:\/\/leetcode.com\/problems\/maximum-candies-you-can-get-from-boxes"
},
{
"acceptance" : "60.5%",
"difficulty" : "Medium",
"title" : "Jump Game III",
"iD" : "1306",
"url" : "https:\/\/leetcode.com\/problems\/jump-game-iii"
},
{
"acceptance" : "43.1%",
"difficulty" : "Medium",
"title" : "Get Watched Videos by Your Friends",
"iD" : "1311",
"url" : "https:\/\/leetcode.com\/problems\/get-watched-videos-by-your-friends"
},
{
"acceptance" : "53.1%",
"difficulty" : "Medium",
"title" : "Number of Operations to Make Network Connected",
"iD" : "1319",
"url" : "https:\/\/leetcode.com\/problems\/number-of-operations-to-make-network-connected"
},
{
"acceptance" : "38.1%",
"difficulty" : "Hard",
"title" : "Jump Game IV",
"iD" : "1345",
"url" : "https:\/\/leetcode.com\/problems\/jump-game-iv"
},
{
"acceptance" : "54.3%",
"difficulty" : "Hard",
"title" : "Minimum Cost to Make at Least One Valid Path in a Grid",
"iD" : "1368",
"url" : "https:\/\/leetcode.com\/problems\/minimum-cost-to-make-at-least-one-valid-path-in-a-grid"
},
{
"acceptance" : "44.5%",
"difficulty" : "Medium",
"title" : "Check if There is a Valid Path in a Grid",
"iD" : "1391",
"url" : "https:\/\/leetcode.com\/problems\/check-if-there-is-a-valid-path-in-a-grid"
},
{
"acceptance" : "35.1%",
"difficulty" : "Medium",
"title" : "Number of Nodes in the Sub-Tree With the Same Label",
"iD" : "1519",
"url" : "https:\/\/leetcode.com\/problems\/number-of-nodes-in-the-sub-tree-with-the-same-label"
}
]