LeetCode library
All markdown articles, rebuilt as a website
Search the generated articles or open any problem page. Each page keeps the abacus-trainer standard: parchment sheet, stamps, tabbed article/code/review panels, and notebook-style C++.
01
2. Add Two Numbers
02
3. Longest Substring Without Repeating Characters
03
4. Median of Two Sorted Arrays
04
5. Longest Palindromic Substring
05
6. ZigZag Conversion
06
9. Palindrome Number
07
10. Regular Expression Matching
08
13. Roman to Integer
09
14. Longest Common Prefix
10
17. Letter Combinations of a Phone Number
11
19. Remove Nth Node From End of List
12
20. Valid Parentheses
13
21. Merge Two Sorted Lists
14
22. Generate Parentheses
15
23. Merge k Sorted Lists
16
24. Swap Nodes in Pairs
17
25. Reverse Nodes in k-Group
18
27. Remove Element
19
30. Substring with Concatenation of All Words
20
31. Next Permutation
21
32. Longest Valid Parentheses
22
33. Search in Rotated Sorted Array
23
34. Find First and Last Position of Element in Sorted Array
24
35. Search Insert Position
25
37. Sudoku Solver
26
38. Count and Say
27
39. Combination Sum
28
40. Combination Sum II
29
41. First Missing Positive
30
42. Trapping Rain Water
31
43. Multiply Strings
32
44. Wildcard Matching
33
45. Jump Game II
34
46. Permutations
35
47. Permutations II
36
48. Rotate Image
37
49. Group Anagrams
38
50. Pow(x, n)
39
51. N-Queens
40
52. N-Queens II
41
53. Maximum Subarray
42
55. Jump Game
43
56. Merge Intervals
44
57. Insert Interval
45
58. Length of Last Word
46
59. Spiral Matrix II
47
60. Permutation Sequence
48
61. Rotate List
49
62. Unique Paths
50
63. Unique Paths II
51
64. Minimum Path Sum
52
65. Valid Number
53
66. Plus One
54
67. Add Binary
55
68. Text Justification
56
69. Sqrt(x)
57
70. Climbing Stairs
58
72. Edit Distance
59
73. Set Matrix Zeroes
60
74. Search a 2D Matrix
61
75. Sort Colors
62
77. Combinations
63
78. Subsets
64
79. Word Search
65
80. Remove Duplicates from Sorted Array II
66
81. Search in Rotated Sorted Array II
67
82. Remove Duplicates from Sorted List II
68
83. Remove Duplicates from Sorted List
69
84. Largest Rectangle in Histogram
70
85. Maximal Rectangle
71
86. Partition List
72
87. Scramble String
73
88. Merge Sorted Array
74
89. Gray Code
75
90. Subsets II
76
91. Decode Ways
77
92. Reverse Linked List II
78
93. Restore IP Addresses
79
94. Binary Tree Inorder Traversal
80
95. Unique Binary Search Trees II
81
96. Unique Binary Search Trees
82
97. Interleaving String
83
98. Validate Binary Search Tree
84
99. Recover Binary Search Tree
85
100. Same Tree
86
102. Binary Tree Level Order Traversal
87
103. Binary Tree Zigzag Level Order Traversal
88
105. Construct Binary Tree from Preorder and Inorder Traversal
89
106. Construct Binary Tree from Inorder and Postorder Traversal
90
107. Binary Tree Level Order Traversal II
91
109. Convert Sorted List to Binary Search Tree
92
110. Balanced Binary Tree
93
111. Minimum Depth of Binary Tree
94
112. Path Sum
95
113. Path Sum II
96
114. Flatten Binary Tree to Linked List
97
115. Distinct Subsequences
98
116. Populating Next Right Pointers in Each Node
99
117. Populating Next Right Pointers in Each Node II
100
118. Pascal's Triangle
101
119. Pascal's Triangle II
102
120. Triangle
103
121. Best Time to Buy and Sell Stock
104
122. Best Time to Buy and Sell Stock II
105
123. Best Time to Buy and Sell Stock III
106
124. Binary Tree Maximum Path Sum
107
125. Valid Palindrome
108
126. Word Ladder II
109
127. Word Ladder
110
129. Sum Root to Leaf Numbers
111
130. Surrounded Regions
112
131. Palindrome Partitioning
113
132. Palindrome Partitioning II
114
133. Clone Graph
115
134. Gas Station
116
135. Candy
117
136. Single Number
118
137. Single Number II
119
138. Copy List with Random Pointer
120
139. Word Break
121
140. Word Break II
122
141. Linked List Cycle
123
142. Linked List Cycle II
124
143. Reorder List
125
144. Binary Tree Preorder Traversal
126
145. Binary Tree Postorder Traversal
127
146. LRU Cache
128
147. Insertion Sort List
129
148. Sort List
130
149. Max Points on a Line
131
150. Evaluate Reverse Polish Notation
132
151. Reverse Words in a String
133
152. Maximum Product Subarray
134
153. Find Minimum in Rotated Sorted Array
135
154. Find Minimum in Rotated Sorted Array II
136
155. Min Stack
137
160. Intersection of Two Linked Lists
138
162. Find Peak Element
139
164. Maximum Gap
140
165. Compare Version Numbers
141
167. Two Sum II - Input array is sorted
142
168. Excel Sheet Column Title
143
169. Majority Element
144
171. Excel Sheet Column Number
145
172. Factorial Trailing Zeroes
146
173. Binary Search Tree Iterator
147
174. Dungeon Game
148
179. Largest Number
149
183. Customers Who Never Order
150
187. Repeated DNA Sequences
151
188. Best Time to Buy and Sell Stock IV
152
189. Rotate Array
153
190. Reverse Bits
154
191. Number of 1 Bits
155
198. House Robber
156
199. Binary Tree Right Side View
157
200. Number of Islands
158
201.Bitwise AND of Numbers Range
159
202. Happy Number
160
203. Remove Linked List Elements
161
205. Isomorphic Strings
162
207. Course Schedule
163
208. Implement Trie (Prefix Tree)
164
210. Course Schedule II
165
211. Add and Search Word - Data structure design
166
212. Word Search II
167
213. House Robber II
168
214. Shortest Palindrome
169
215. Kth Largest Element in an Array
170
216. Combination Sum III
171
218. The Skyline Problem
172
219. Contains Duplicate II
173
220. Contains Duplicate III
174
221. Maximal Square
175
222. Count Complete Tree Nodes
176
224. Basic Calculator
177
225. Implement Stack using Queues
178
226. Invert Binary Tree
179
228. Summary Ranges
180
229. Majority Element II
181
230. Kth Smallest Element in a BST
182
231. Power of Two
183
232. Implement Queue using Stacks
184
233. Number of Digit One
185
234. Palindrome Linked List
186
235. Lowest Common Ancestor of a Binary Search Tree
187
236. Lowest Common Ancestor of a Binary Tree
188
237. Delete Node in a Linked List
189
238. Product of Array Except Self
190
239. Sliding Window Maximum
191
240. Search a 2D Matrix II
192
241. Different Ways to Add Parentheses
193
242. Valid Anagram
194
257. Binary Tree Paths
195
258. Add Digits
196
260. Single Number III
197
263. Ugly Number
198
264. Ugly Number II
199
268. Missing Number
200
273. Integer to English Words
201
274. H-Index
202
275. H-Index II
203
278. First Bad Version
204
279. Perfect Squares
205
282. Expression Add Operators
206
283. Move Zeroes
207
287. Find the Duplicate Number
208
290. Word Pattern
209
292. Nim Game
210
295. Find Median from Data Stream
211
297. Serialize and Deserialize Binary Tree
212
299. Bulls and Cows
213
300. Longest Increasing Subsequence
214
301. Remove Invalid Parentheses
215
303. Range Sum Query - Immutable
216
307. Range Sum Query - Mutable Medium
217
309. Best Time to Buy and Sell Stock with Cooldown
218
312. Burst Balloons
219
315. Count of Smaller Numbers After Self
220
316. Remove Duplicate Letters
221
318. Maximum Product of Word Lengths
222
319. Bulb Switcher
223
322. Coin Change
224
326. Power of Three
225
328. Odd Even Linked List
226
329. Longest Increasing Path in a Matrix
227
332. Reconstruct Itinerary
228
336. Palindrome Pairs
229
337. House Robber III
230
338. Counting Bits
231
342. Power of Four
232
344. Reverse String
233
345. Reverse Vowels of a String
234
347. Top K Frequent Elements
235
349. Intersection of Two Arrays
236
352. Data Stream as Disjoint Intervals
237
354. Russian Doll Envelopes
238
367. Valid Perfect Square
239
368. Largest Divisible Subset
240
374. Guess Number Higher or Lower
241
380. Insert Delete GetRandom O(1)
242
382. Linked List Random Node
243
383. Ransom Note
244
387. First Unique Character in a String
245
389. Find the Difference
246
392. Is Subsequence
247
394. Decode String
248
399. Evaluate Division
249
400. Nth Digit
250
401. Binary Watch
251
402. Remove K Digits
252
403. Frog Jump
253
404. Sum of Left Leaves
254
405. Convert a Number to Hexadecimal
255
406. Queue Reconstruction by Height
256
409. Longest Palindrome
257
410. Split Array Largest Sum
258
412. Fizz Buzz
259
413. Arithmetic Slices
260
415. Add Strings
261
416. Partition Equal Subset Sum
262
419. Battleships in a Board
263
420. Strong Password Checker
264
421. Maximum XOR of Two Numbers in an Array
265
424. Longest Repeating Character Replacement
266
429. N-ary Tree Level Order Traversal
267
430. Flatten a Multilevel Doubly Linked List
268
432. All O`one Data Structure
269
434. Number of Segments in a String
270
435. Non-overlapping Intervals
271
436. Find Right Interval
272
437. Path Sum III
273
438. Find All Anagrams in a String
274
441. Arranging Coins
275
442. Find All Duplicates in an Array
276
443. String Compression
277
445. Add Two Numbers II
278
447. Number of Boomerangs
279
448. Find All Numbers Disappeared in an Array
280
449. Serialize and Deserialize BST
281
450. Delete Node in a BST
282
451. Sort Characters By Frequency
283
452. Minimum Number of Arrows to Burst Balloons
284
453. Minimum Moves to Equal Array Elements
285
454. 4Sum II
286
455. Assign Cookies
287
459. Repeated Substring Pattern
288
460. LFU Cache
289
461. Hamming Distance
290
463. Island Perimeter
291
464. Can I Win
292
468. Validate IP Address
293
470. Implement Rand10() Using Rand7()
294
472. Concatenated Words
295
474. Ones and Zeroes
296
476. Number Complement
297
477. Total Hamming Distance
298
480. Sliding Window Median
299
482. License Key Formatting
300
485. Max Consecutive Ones
301
486. Predict the Winner
302
492. Construct the Rectangle
303
494. Target Sum
304
495. Teemo Attacking
305
496. Next Greater Element I
306
497. Random Point in Non-overlapping Rectangles
307
501. Find Mode in Binary Search Tree
308
503. Next Greater Element II
309
504. Base 7
310
506. Relative Ranks
311
509. Fibonacci Number
312
515. Find Largest Value in Each Tree Row
313
516. Longest Palindromic Subsequence
314
518. Coin Change 2
315
520. Detect Capital
316
521. Longest Uncommon Subsequence I
317
524. Longest Word in Dictionary through Deleting
318
525. Contiguous Array
319
526. Beautiful Arrangement
320
528. Random Pick with Weight
321
529. Minesweeper
322
530. Minimum Absolute Difference in BST
323
532. K-diff Pairs in an Array
324
535. Encode and Decode TinyURL
325
537. Complex Number Multiplication
326
538. Convert BST to Greater Tree
327
540. Single Element in a Sorted Array
328
541. Reverse String II
329
543. Diameter of Binary Tree
330
547. Friend Circles
331
551. Student Attendance Record I
332
559. Maximum Depth of N-ary Tree
333
560. Subarray Sum Equals K
334
561. Array Partition I
335
563. Binary Tree Tilt
336
564. Find the Closest Palindrome
337
566. Reshape the Matrix
338
567. Permutation in String
339
572. Subtree of Another Tree
340
576. Out of Boundary Paths
341
581. Shortest Unsorted Continuous Subarray
342
583. Delete Operation for Two Strings
343
589. N-ary Tree Preorder Traversal
344
590. N-ary Tree Postorder Traversal
345
591. Tag Validator
346
594. Longest Harmonious Subsequence
347
598. Range Addition II
348
599. Minimum Index Sum of Two Lists
349
605. Can Place Flowers
350
606. Construct String from Binary Tree
351
617. Merge Two Binary Trees
352
621. Task Scheduler
353
622. Design Circular Queue
354
628. Maximum Product of Three Numbers
355
633. Sum of Square Numbers
356
637. Average of Levels in Binary Tree
357
641. Design Circular Deque
358
643. Maximum Average Subarray I
359
645. Set Mismatch
360
647. Palindromic Substrings
361
648. Replace Words
362
650. 2 Keys Keyboard
363
653. Two Sum IV - Input is a BST
364
654. Maximum Binary Tree
365
657. Judge Route Circle
366
658. Find K Closest Elements
367
659. Split Array into Consecutive Subsequences
368
661. Image Smoother
369
662. Maximum Width of Binary Tree
370
664. Strange Printer
371
665. Non-decreasing Array
372
668. Kth Smallest Number in Multiplication Table
373
669. Trim a Binary Search Tree
374
671. Second Minimum Node In a Binary Tree
375
673. Number of Longest Increasing Subsequence
376
674. Longest Continuous Increasing Subsequence
377
676. Implement Magic Dictionary
378
678. Valid Parenthesis String
379
679. 24 Game
380
680. Valid Palindrome II
381
684. Redundant Connection
382
686. Repeated String Match
383
687. Longest Univalue Path
384
690. Employee Importance
385
692. Top K Frequent Words
386
693. Binary Number with Alternating Bits
387
695. Max Area of Island
388
696. Count Binary Substrings
389
697. Degree of an Array
390
698. Partition to K Equal Sum Subsets
391
699. Falling Squares
392
700. Search in a Binary Search Tree
393
701. Insert into a Binary Search Tree
394
703. Kth Largest Element in a Stream
395
704. Binary Search
396
705. Design HashSet
397
706. Design HashMap
398
709. To Lower Case
399
712. Minimum ASCII Delete Sum for Two Strings
400
714. Best Time to Buy and Sell Stock with Transaction Fee
401
717. 1-bit and 2-bit Characters
402
719. Find K-th Smallest Pair Distance
403
720. Longest Word in Dictionary
404
724. Find Pivot Index
405
725. Split Linked List in Parts
406
728. Self Dividing Numbers
407
729. My Calendar I
408
730. Count Different Palindromic Subsequences
409
731. My Calendar II
410
733. Flood Fill
411
735. Asteroid Collision
412
739. Daily Temperatures
413
741. Cherry Pickup
414
744. Find Smallest Letter Greater Than Target
415
746. Min Cost Climbing Stairs
416
747. Largest Number At Least Twice of Others
417
748. Shortest Completing Word
418
753. Cracking the Safe
419
754. Reach a Number
420
762. Prime Number of Set Bits in Binary Representation
421
766. Toeplitz Matrix
422
767. Reorganize String
423
771. Jewels and Stones
424
773. Sliding Puzzle
425
778. Swim in Rising Water
426
780. Reaching Points
427
783. Minimum Distance Between BST Nodes
428
784. Letter Case Permutation
429
786. K-th Smallest Prime Fraction
430
787. Cheapest Flights Within K Stops
431
788. Rotated Digits
432
794. Valid Tic-Tac-Toe State
433
796. Rotate String
434
797. All Paths From Source to Target
435
804. Unique Morse Code Words
436
807. Max Increase to Keep City Skyline
437
808. Soup Servings
438
812. Largest Triangle Area
439
814. Binary Tree Pruning
440
819. Most Common Word
441
824. Goat Latin
442
829. Consecutive Numbers Sum
443
830. Positions of Large Groups
444
832. Flipping an Image
445
835. Image Overlap
446
836. Rectangle Overlap
447
837. New 21 Game
448
838. Push Dominoes
449
840. Magic Squares In Grid
450
843. Guess the Word
451
844. Backspace String Compare
452
849. Maximize Distance to Closest Person
453
850. Rectangle Area II
454
852. Peak Index in a Mountain Array
455
853. Car Fleet
456
856. Score of Parentheses
457
857. Minimum Cost to Hire K Workers
458
859. Buddy Strings
459
860. Lemonade Change
460
861. Score After Flipping Matrix
461
862. Shortest Subarray with Sum at Least K
462
863. All Nodes Distance K in Binary Tree
463
865. Smallest Subtree with all the Deepest Nodesl
464
867. Transpose Matrix
465
868. Binary Gap
466
869. Reordered Power of 2
467
872. Leaf-Similar Trees
468
876. Middle of the Linked List
469
877. Stone Game
470
881. Boats to Save People
471
883. Projection Area of 3D Shapes
472
884. Uncommon Words from Two Sentences
473
885. Spiral Matrix III
474
886. Possible Bipartition
475
887. Super Egg Drop
476
888. Fair Candy Swap
477
889. Construct Binary Tree from Preorder and Postorder Traversal
478
890. Find and Replace Pattern
479
892. Surface Area of 3D Shapes
480
893. Groups of Special-Equivalent Strings
481
894. All Possible Full Binary Trees
482
895. Maximum Frequency Stack
483
896. Monotonic Array
484
897. Increasing Order Search Tree
485
901. Online Stock Span
486
902. Numbers At Most N Given Digit Set
487
905. Sort Array By Parity
488
908. Smallest Range I
489
912. Sort an Array
490
914. X of a Kind in a Deck of Cards
491
917. Reverse Only Letters
492
918. Maximum Sum Circular Subarray
493
921. Minimum Add to Make Parentheses Valid
494
922. Sort Array By Parity II
495
925. Long Pressed Name
496
929. Unique Email Addresses
497
931. Minimum Falling Path Sum
498
933. Number of Recent Calls
499
935. Knight Dialer
500
937. Reorder Data in Log Files
501
938. Range Sum of BST
502
941. Valid Mountain Array
503
942. DI String Match
504
944. Delete Columns to Make Sorted
505
946. Validate Stack Sequences
506
949. Largest Time for Given Digits
507
950. Reveal Cards In Increasing Order
508
951. Flip Equivalent Binary Trees
509
952. Largest Component Size by Common Factor
510
953. Verifying an Alien Dictionary
511
957. Prison Cells After N Days
512
959. Regions Cut By Slashes
513
961. N-Repeated Element in Size 2N Array
514
964. Least Operators to Express Number
515
965. Univalued Binary Tree
516
967. Numbers With Same Consecutive Differences
517
969. Pancake Sorting
518
970. Powerful Integers
519
973. K Closest Points to Origin
520
976. Largest Perimeter Triangle
521
977. Squares of a Sorted Array
522
979. Distribute Coins in Binary Tree
523
980. Unique Paths III
524
981. Time Based Key-Value Store
525
983. Minimum Cost For Tickets
526
986. Interval List Intersections
527
987. Vertical Order Traversal of a Binary Tree
528
989. Add to Array-Form of Integer
529
993. Cousins in Binary Tree
530
994. Rotting Oranges
531
997. Find the Town Judge
532
998. Maximum Binary Tree II
533
999. Available Captures for Rook
534
1002. Find Common Characters
535
1004. Max Consecutive Ones III
536
1005. Maximize Sum Of Array After K Negations Easy
537
1007. Minimum Domino Rotations For Equal Row
538
1008. Construct Binary Search Tree from Preorder Traversal
539
1010. Pairs of Songs With Total Durations Divisible by 60
540
1011. Capacity To Ship Packages Within D Days
541
1012. Complement of Base 10 Integer
542
1015. Smallest Integer Divisible by K
543
1018. Binary Prefix Divisible By 5
544
1019. Next Greater Node In Linked List
545
1020. Number of Enclaves
546
1020. Partition Array Into Three Parts With Equal Sum
547
1021. Remove Outermost Parentheses
548
1022. Sum of Root To Leaf Binary Numbers
549
1025. Divisor Game
550
1026. Maximum Difference Between Node and Ancestor
551
1027. Longest Arithmetic Sequence
552
1028. Recover a Tree From Preorder Traversal
553
1029. Two City Scheduling
554
1030. Matrix Cells in Distance Order
555
1032. Stream of Characters
556
1033. Moving Stones Until Consecutive
557
1035. Uncrossed Lines
558
1037. Valid Boomerang
559
1038. Binary Search Tree to Greater Sum Tree
560
1039. Minimum Score Triangulation of Polygon
561
1041. Robot Bounded In Circle
562
1042. Flower Planting With No Adjacent
563
1043. Partition Array for Maximum Sum
564
1044. Longest Duplicate Substring
565
1046. Last Stone Weight
566
1047. Remove All Adjacent Duplicates In String
567
1048. Longest String Chain
568
1051. Height Checker
569
1054. Distant Barcodes
570
1071. Greatest Common Divisor of Strings
571
1072. Flip Columns For Maximum Number of Equal Rows
572
1074. Number of Submatrices That Sum to Target
573
1078. Occurrences After Bigram
574
1079. Letter Tile Possibilities
575
1089. Duplicate Zeros
576
1094. Car Pooling
577
1096. Brace Expansion II
578
1103. Distribute Candies to People
579
1104. Path In Zigzag Labelled Binary Tree
580
1108. Defanging an IP Address
581
1109. Corporate Flight Bookings
582
1110. Delete Nodes And Return Forest
583
1111. Maximum Nesting Depth of Two Valid Parentheses Strings
584
1114. Print in Order
585
1115. Print FooBar Alternately
586
1116. Print Zero Even Odd
587
1117. Building H2O
588
1122. Relative Sort Array
589
1123. Lowest Common Ancestor of Deepest Leaves
590
1128. Number of Equivalent Domino Pairs
591
1130. Minimum Cost Tree From Leaf Values
592
1137. N-th Tribonacci Number
593
1140. Stone Game II
594
1143. Longest Common Subsequence
595
1147. Longest Chunked Palindrome Decomposition
596
1154. Day of the Year
597
1160. Find Words That Can Be Formed by Characters
598
1161. Maximum Level Sum of a Binary Tree
599
1163. Last Substring in Lexicographical Order
600
1170. Compare Strings by Frequency of the Smallest Character
601
1175. Prime Arrangements
602
1184. Distance Between Bus Stops
603
1185. Day of the Week
604
1189. Maximum Number of Balloons
605
1190. Reverse Substrings Between Each Pair of Parentheses
606
1192. Critical Connections in a Network
607
1195. Fizz Buzz Multithreaded
608
1200. Minimum Absolute Difference
609
1207. Unique Number of Occurrences
610
1217. Play with Chips
611
1219. Path with Maximum Gold
612
1221. Split a String in Balanced Strings
613
1222. Queens That Can Attack the King
614
1232. Check If It Is a Straight Line
615
1235. Maximum Profit in Job Scheduling
616
1237. Find Positive Integer Solution for a Given Equation
617
1238. Circular Permutation in Binary Representation
618
1247. Minimum Swaps to Make Strings Equal
619
1248. Count Number of Nice Subarrays
620
1249. Minimum Remove to Make Valid Parentheses
621
1252. Cells with Odd Values in a Matrix
622
1255. Maximum Score Words Formed by Letters
623
1260. Shift 2D Grid
624
1261. Find Elements in a Contaminated Binary Tree
625
1266. Minimum Time Visiting All Points
626
1268. Search Suggestions System
627
1275. Find Winner on a Tic Tac Toe Game
628
1277. Count Square Submatrices with All Ones
629
1278. Palindrome Partitioning III
630
1281. Subtract the Product and Sum of Digits of an Integer
631
1282. Group the People Given the Group Size They Belong To
632
1284. Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
633
1286. Iterator for Combination
634
1287. Element Appearing More Than 25% In Sorted Array
635
1288. Remove Covered Intervals
636
1289. Minimum Falling Path Sum II
637
1290. Convert Binary Number in a Linked List to Integer
638
1291. Sequential Digits
639
1295. Find Numbers with Even Number of Digits
640
1296. Divide Array in Sets of K Consecutive Numbers
641
1299. Replace Elements with Greatest Element on Right Side
642
1302. Deepest Leaves Sum
643
1304. Find N Unique Integers Sum up to Zero
644
1305. All Elements in Two Binary Search Trees
645
1306. Jump Game III
646
1309. Decrypt String from Alphabet to Integer Mapping
647
1310. XOR Queries of a Subarray
648
1314. Matrix Block Sum
649
1315. Sum of Nodes with Even-Valued Grandparent
650
1317. Convert Integer to the Sum of Two No-Zero Integers
651
1318. Minimum Flips to Make a OR b Equal to c
652
1323. Maximum 69 Number
653
1325. Delete Leaves With a Given Value
654
1329. Sort the Matrix Diagonally
655
1331. Rank Transform of an Array
656
1332. Remove Palindromic Subsequences
657
1337. The K Weakest Rows in a Matrix
658
1338. Reduce Array Size to The Half
659
1340. Jump Game V
660
1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
661
1344. Angle Between Hands of a Clock
662
1345. Jump Game IV
663
1346. Check If N and Its Double Exist
664
1347. Minimum Number of Steps to Make Two Strings Anagram
665
1349. Maximum Students Taking Exam
666
1356. Sort Integers by The Number of 1 Bits
667
1359. Count All Valid Pickup and Delivery Options
668
1360. Number of Days Between Two Dates
669
1361. Validate Binary Tree Nodes
670
1362. Closest Divisors
671
1365. How Many Numbers Are Smaller Than the Current Number
672
1374. Generate a String With Characters That Have Odd Counts
673
1375. Bulb Switcher III
674
1376. Time Needed to Inform All Employees
675
1377. Frog Position After T Seconds
676
1380. Lucky Numbers in a Matrix
677
1381. Design a Stack With Increment Operation
678
1382. Balance a Binary Search Tree
679
1383. Maximum Performance of a Team
680
1385. Find the Distance Value Between Two Arrays
681
1386. Cinema Seat Allocation
682
1387. Sort Integers by The Power Value
683
1388. Pizza With 3n Slices
684
1389. Create Target Array in the Given Order
685
1390. Four Divisors
686
1391. Check if There is a Valid Path in a Grid
687
1392. Longest Happy Prefix
688
1394. Find Lucky Integer in an Array
689
1395. Count Number of Teams
690
1396. Design Underground System
691
1397. Find All Good Strings
692
1399. Count Largest Group
693
1400. Construct K Palindrome Strings
694
1401. Circle and Rectangle Overlapping
695
1402. Reducing Dishes
696
1403. Minimum Subsequence in Non-Increasing Order
697
1404. Number of Steps to Reduce a Number in Binary Representation to One
698
1405. Longest Happy String
699
1406. Stone Game III
700
1408. String Matching in an Array
701
1409. Queries on a Permutation With Key
702
1410. HTML Entity Parser
703
1411. Number of Ways to Paint N × 3 Grid
704
1413. Minimum Value to Get Positive Step by Step Sum
705
1414. Find the Minimum Number of Fibonacci Numbers Whose Sum Is K
706
1415. The k-th Lexicographical String of All Happy Strings of Length n
707
1416. Restore The Array
708
1417. Reformat The String
709
1418. Display Table of Food Orders in a Restaurant
710
1419. Minimum Number of Frogs Croaking
711
1420. Build Array Where You Can Find The Maximum Exactly K Comparisons
712
1422. Maximum Score After Splitting a String
713
1423. Maximum Points You Can Obtain from Cards
714
1424. Diagonal Traverse II
715
1425. Constrained Subsequence Sum
716
1431. Kids With the Greatest Number of Candies
717
1432. Max Difference You Can Get From Changing an Integer
718
1433. Check If a String Can Break Another String
719
1434. Number of Ways to Wear Different Hats to Each Other
720
1436. Destination City
721
1437. Check If All 1's Are at Least Length K Places Away
722
1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
723
1439. Find the Kth Smallest Sum of a Matrix With Sorted Rows
724
1446. Consecutive Characters
725
1447. Simplified Fractions
726
1448. Count Good Nodes in Binary Tree
727
1449. Form Largest Integer With Digits That Add up to Target
728
1450. Number of Students Doing Homework at a Given Time
729
1451. Rearrange Words in a Sentence
730
1452. People Whose List of Favorite Companies Is Not a Subset of Another List
731
1453. Maximum Number of Darts Inside of a Circular Dartboard
732
1460. Make Two Arrays Equal by Reversing Sub-arrays
733
1461. Check If a String Contains All Binary Codes of Size K
734
1462. Course Schedule IV
735
1463. Cherry Pickup II
736
1464. Maximum Product of Two Elements in an Array
737
1465. Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts
738
1466. Reorder Routes to Make All Paths Lead to the City Zero
739
1467. Probability of a Two Boxes Having The Same Number of Distinct Balls
740
1470. Shuffle the Array
741
1471. The k Strongest Values in an Array
742
1472. Design Browser History
743
1473. Paint House III
744
1475. Final Prices With a Special Discount in a Shop
745
1476. Subrectangle Queries
746
1477. Find Two Non-overlapping Sub-arrays Each With Target Sum
747
1478. Allocate Mailboxes
748
1480. Running Sum of 1d Array
749
1481. Least Number of Unique Integers after K Removals
750
1482. Minimum Number of Days to Make m Bouquets
751
1483. Kth Ancestor of a Tree Node
752
1491. Average Salary Excluding the Minimum and Maximum Salary
753
1492. The kth Factor of n
754
1493. Longest Subarray of 1's After Deleting One Element
755
1494. Parallel Courses II
756
1496. Path Crossing
757
1497. Check If Array Pairs Are Divisible by k
758
1498. Number of Subsequences That Satisfy the Given Sum Condition
759
1499. Max Value of Equation
760
1502. Can Make Arithmetic Progression From Sequence
761
1503. Last Moment Before All Ants Fall Out of a Plank
762
1504. Count Submatrices With All Ones
763
1505. Minimum Possible Integer After at Most K Adjacent Swaps On Digits
764
1507. Reformat Date
765
1508. Range Sum of Sorted Subarray Sums
766
1509. Minimum Difference Between Largest and Smallest Value in Three Moves
767
1510. Stone Game IV
768
1512. Number of Good Pairs
769
1513. Number of Substrings With Only 1s
770
1514. Path with Maximum Probability
771
1515. Best Position for a Service Centre
772
1518. Water Bottles
773
1519. Number of Nodes in the Sub-Tree With the Same Label
774
1520. Maximum Number of Non-Overlapping Substrings
775
1521. Find a Value of a Mysterious Function Closest to Target
776
1523. Count Odd Numbers in an Interval Range
777
1524. Number of Sub-arrays With Odd Sum
778
1525. Number of Good Ways to Split a String
779
1526. Minimum Number of Increments on Subarrays to Form a Target Array
780
1528. Shuffle String
781
1529. Bulb Switcher IV
782
1530. Number of Good Leaf Nodes Pairs
783
1531. String Compression II
784
1534. Count Good Triplets
785
1535. Find the Winner of an Array Game
786
1536. Minimum Swaps to Arrange a Binary Grid
787
1537. Get the Maximum Score
788
1539. Kth Missing Positive Number
789
1540. Can Convert String in K Moves
790
1541. Minimum Insertions to Balance a Parentheses String
791
1542. Find Longest Awesome Substring
792
1544. Make The String Great
793
1545. Find Kth Bit in Nth Binary String
794
1546. Maximum Number of Non-Overlapping Subarrays With Sum Equals Target
795
1547. Minimum Cost to Cut a Stick
796
1550. Three Consecutive Odds
797
1551. Minimum Operations to Make Array Equal
798
1552. Magnetic Force Between Two Balls
799
1553. Minimum Number of Days to Eat N Oranges
800
1556. Thousand Separator
801
1557. Minimum Number of Vertices to Reach All Nodes
802
1558. Minimum Numbers of Function Calls to Make Target Array
803
1559. Detect Cycles in 2D Grid
804
1560. Most Visited Sector in a Circular Track
805
1561. Maximum Number of Coins You Can Get
806
1562. Find Latest Group of Size M
807
1563. Stone Game V
808
1566. Detect Pattern of Length M Repeated K or More Times
809
1567. Maximum Length of Subarray With Positive Product
810
1568. Minimum Number of Days to Disconnect Island
811
1569. Number of Ways to Reorder Array to Get Same BST
812
1572. Matrix Diagonal Sum
813
1573. Number of Ways to Split a String
814
1574. Shortest Subarray to be Removed to Make Array Sorted
815
1575. Count All Possible Routes
816
1576. Replace All question mark's to Avoid Consecutive Repeating Characters
817
1577. Number of Ways Where Square of Number Is Equal to Product of Two Numbers
818
1578. Minimum Deletion Cost to Avoid Repeating Letters
819
1579. Remove Max Number of Edges to Keep Graph Fully Traversable
820
1582. Special Positions in a Binary Matrix
821
1583. Count Unhappy Friends
822
1584. Min Cost to Connect All Points
823
1585. Check If String Is Transformable With Substring Sort Operations
824
1588. Sum of All Odd Length Subarrays
825
1589. Maximum Sum Obtained of Any Permutation
826
1590. Make Sum Divisible by P
827
1591. Strange Printer II
828
1592. Rearrange Spaces Between Words
829
1593. Split a String Into the Max Number of Unique Substrings
830
1594. Maximum Non Negative Product in a Matrix
831
1595. Minimum Cost to Connect Two Groups of Points
832
1598. Crawler Log Folder
833
1599. Maximum Profit of Operating a Centennial Wheel
834
1600. Throne Inheritance
835
1601. Maximum Number of Achievable Transfer Requests
836
1603. Design Parking System
837
1604. Alert Using Same Key-Card Three or More Times in a One Hour Period
838
1605. Find Valid Matrix Given Row and Column Sums
839
1606. Find Servers That Handled Most Number of Requests
840
1608. Special Array With X Elements Greater Than or Equal X
841
1609. Even Odd Tree
842
1610. Maximum Number of Visible Points
843
1611. Minimum One Bit Operations to Make Integers Zero
844
1614. Maximum Nesting Depth of the Parentheses
845
1615. Maximal Network Rank
846
1616. Split Two Strings to Make Palindrome
847
1617. Count Subtrees With Max Distance Between Cities
848
1619. Mean of Array After Removing Some Elements
849
1620. Coordinate With Maximum Network Quality
850
1624. Largest Substring Between Two Equal Characters
851
1625. Lexicographically Smallest String After Applying Operations Medium
852
1626. Best Team With No Conflicts
853
1627. Graph Connectivity With Threshold
854
Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree
855
Counting Elements
856
First Unique Number
857
Leftmost Column with at Least a One
858
Perform String Shifts