/algorithms

leetcode & lintcode algorithms practices

Primary LanguageGo

Leetcode Top 100

1. Two Sum
2. Add Two Numbers
3. Longest Substring Without Repeating Characters
4. Median of Two Sorted Arrays
5. Longest Palindromic Substring
10. Regular Expression Matching
11. Container With Most Water
15. 3Sum
17. Letter Combinations of a Phone Number
19. Remove Nth Node From End of List
20. Valid Parentheses
21. Merge Two Sorted Lists
22. Generate Parentheses
23. Merge k Sorted Lists
31. Next Permutation
32. Longest Valid Parentheses
33. Search in Rotated Sorted Array
34. Find First and Last Position of Element in Sorted Array
39. Combination Sum
42. Trapping Rain Water
46. Permutations
48. Rotate Image
49. Group Anagrams
51. N-Queens
53. Maximum Subarray
55. Jump Game
56. Merge Intervals
62. Unique Paths
64. Minimum Path Sum
70. Climbing Stairs
72. Edit Distance
75. Sort Colors
76. Minimum Window Substring
78. Subsets
79. Word Search
84. Largest Rectangle in Histogram
85. Maximal Rectangle
94. Binary Tree Inorder Traversal
96. Unique Binary Search Trees
98. Validate Binary Search Tree
101. Symmetric Tree
102. Binary Tree Level Order Traversal
104. Maximum Depth of Binary Tree
105. Construct Binary Tree from Preorder and Inorder Traversal
114. Flatten Binary Tree to Linked List
121. Best Time to Buy and Sell Stock
124. Binary Tree Maximum Path Sum
128. Longest Consecutive Sequence
131. Palindrome Partitioning
136. Single Number
139. Word Break
141. Linked List Cycle
142. Linked List Cycle II
146. LRU Cache
148. Sort List
152. Maximum Product Subarray
153. Find Minimum in Rotated Sorted Array
155. Min Stack
160. Intersection of Two Linked Lists
169. Majority Element
198. House Robber
199. Binary Tree Right Side View
200. Number of Islands
206. Reverse Linked List
207. Course Schedule
208. Implement Trie (Prefix Tree)
215. Kth Largest Element in an Array
221. Maximal Square
226. Invert Binary Tree
230. Kth Smallest Element in a BST
234. Palindrome Linked List
236. Lowest Common Ancestor of a Binary Tree
238. Product of Array Except Self
239. Sliding Window Maximum
240. Search a 2D Matrix II
253. Meeting Rooms II
279. Perfect Squares
283. Move Zeroes
297. Serialize and Deserialize Binary Tree
300. Longest Increasing Subsequence
301. Remove Invalid Parentheses
309. Best Time to Buy and Sell Stock with Cooldown
312. Burst Balloons
322. Coin Change
337. House Robber III
338. Counting Bits
347. Top K Frequent Elements
394. Decode String
399. Evaluate Division
406. Queue Reconstruction by Height
416. Partition Equal Subset Sum
437. Path Sum III
438. Find All Anagrams in a String
448. Find All Numbers Disappeared in an Array
461. Hamming Distance
494. Target Sum
538. Convert BST to Greater Tree
543. Diameter of Binary Tree
560. Subarray Sum Equals K
567. Permutation in String
581. Shortest Unsorted Continuous Subarray
617. Merge Two Binary Trees
621. Task Scheduler
647. Palindromic Substrings
739. Daily Temperatures
1143. Longest Common Subsequence

Array

1. Two Sum
4. Median of Two Sorted Arrays
11. Container With Most Water
15. 3Sum
16. 3Sum Closest
18. 4Sum
26. Remove Duplicates from Sorted Array
27. Remove Element
31. Next Permutation
33. Search in Rotated Sorted Array
34. Find First and Last Position of Element in Sorted Array
35. Search Insert Position
36. Valid Sudoku
37. Sudoku Solver
39. Combination Sum
40. Combination Sum II
41. First Missing Positive
42. Trapping Rain Water
45. Jump Game II
46. Permutations
47. Permutations II
48. Rotate Image
51. N-Queens
53. Maximum Subarray
54. Spiral Matrix
55. Jump Game
56. Merge Intervals
57. Insert Interval
59. Spiral Matrix II
63. Unique Paths II
64. Minimum Path Sum
66. Plus One
68. Text Justification
73. Set Matrix Zeroes
74. Search a 2D Matrix
75. Sort Colors
77. Combinations
78. Subsets
79. Word Search
80. Remove Duplicates from Sorted Array II
81. Search in Rotated Sorted Array II
84. Largest Rectangle in Histogram
85. Maximal Rectangle
88. Merge Sorted Array
90. Subsets II
105. Construct Binary Tree from Preorder and Inorder Traversal
106. Construct Binary Tree from Inorder and Postorder Traversal
108. Convert Sorted Array to Binary Search Tree
118. Pascal’s Triangle
119. Pascal’s Triangle II
120. Triangle
121. Best Time to Buy and Sell Stock
122. Best Time to Buy and Sell Stock II
123. Best Time to Buy and Sell Stock III
128. Longest Consecutive Sequence
130. Surrounded Regions
134. Gas Station
135. Candy
136. Single Number
137. Single Number II
140. Word Break II
149. Max Points on a Line
150. Evaluate Reverse Polish Notation
152. Maximum Product Subarray
153. Find Minimum in Rotated Sorted Array
154. Find Minimum in Rotated Sorted Array II
162. Find Peak Element
163. Missing Ranges
164. Maximum Gap
167. Two Sum II - Input array is sorted
169. Majority Element
174. Dungeon Game
188. Best Time to Buy and Sell Stock IV
189. Rotate Array
198. House Robber
200. Number of Islands
204. Count Primes
207. Course Schedule
209. Minimum Size Subarray Sum
212. Word Search II
213. House Robber II
215. Kth Largest Element in an Array
216. Combination Sum III
217. Contains Duplicate
218. The Skyline Problem
219. Contains Duplicate II
220. Contains Duplicate III
221. Maximal Square
228. Summary Ranges
229. Majority Element II
238. Product of Array Except Self
239. Sliding Window Maximum
240. Search a 2D Matrix II
243. Shortest Word Distance
244. Shortest Word Distance II
245. Shortest Word Distance III
249. Group Shifted Strings
252. Meeting Rooms
256. Paint House
259. 3Sum Smaller
260. Single Number III
265. Paint House II
268. Missing Number
269. Alien Dictionary
274. H-Index
275. H-Index II
280. Wiggle Sort
283. Move Zeroes
286. Walls and Gates
287. Find the Duplicate Number
289. Game of Life
296. Best Meeting Point
300. Longest Increasing Subsequence
302. Smallest Rectangle Enclosing Black Pixels
303. Range Sum Query - Immutable
304. Range Sum Query 2D - Immutable
305. Number of Islands II
307. Range Sum Query - Mutable
309. Best Time to Buy and Sell Stock with Cooldown
311. Sparse Matrix Multiplication
312. Burst Balloons
313. Super Ugly Number
317. Shortest Distance from All Buildings
318. Maximum Product of Word Lengths
322. Coin Change
324. Wiggle Sort II
325. Maximum Size Subarray Sum Equals k
327. Count of Range Sum
329. Longest Increasing Path in a Matrix
330. Patching Array
334. Increasing Triplet Subsequence
335. Self Crossing
336. Palindrome Pairs
347. Top K Frequent Elements
349. Intersection of Two Arrays
350. Intersection of Two Arrays II
354. Russian Doll Envelopes
356. Line Reflection
360. Sort Transformed Array
361. Bomb Enemy
363. Max Sum of Rectangle No Larger Than K
368. Largest Divisible Subset
370. Range Addition
373. Find K Pairs with Smallest Sums
376. Wiggle Subsequence
377. Combination Sum IV
378. Kth Smallest Element in a Sorted Matrix
391. Perfect Rectangle
393. UTF-8 Validation
396. Rotate Function
399. Evaluate Division
403. Frog Jump
406. Queue Reconstruction by Height
407. Trapping Rain Water II
410. Split Array Largest Sum
413. Arithmetic Slices
414. Third Maximum Number
416. Partition Equal Subset Sum
417. Pacific Atlantic Water Flow
419. Battleships in a Board
421. Maximum XOR of Two Numbers in an Array
422. Valid Word Square
425. Word Squares
435. Non-overlapping Intervals
436. Find Right Interval
442. Find All Duplicates in an Array
443. String Compression
444. Sequence Reconstruction
446. Arithmetic Slices II - Subsequence
447. Number of Boomerangs
452. Minimum Number of Arrows to Burst Balloons
453. Minimum Moves to Equal Array Elements
454. 4Sum II
455. Assign Cookies
456. 132 Pattern
457. Circular Array Loop
462. Minimum Moves to Equal Array Elements II
463. Island Perimeter
465. Optimal Account Balancing
469. Convex Polygon
472. Concatenated Words
473. Matchsticks to Square
474. Ones and Zeroes
475. Heaters
477. Total Hamming Distance
480. Sliding Window Median
485. Max Consecutive Ones
486. Predict the Winner
487. Max Consecutive Ones II
491. Non-decreasing Subsequences
493. Reverse Pairs
494. Target Sum
495. Teemo Attacking
496. Next Greater Element I
498. Diagonal Traverse
500. Keyboard Row
502. IPO
503. Next Greater Element II
506. Relative Ranks
517. Super Washing Machines
518. Coin Change II
522. Longest Uncommon Subsequence II
523. Continuous Subarray Sum
525. Contiguous Array
527. Word Abbreviation
529. Minesweeper
531. Lonely Pixel I
532. K-diff Pairs in an Array
533. Lonely Pixel II
539. Minimum Time Difference
540. Single Element in a Sorted Array
542. 01 Matrix
546. Remove Boxes
547. Number of Provinces
548. Split Array with Equal Sum
553. Optimal Division
554. Brick Wall
555. Split Concatenated Strings
560. Subarray Sum Equals K
562. Longest Line of Consecutive One in Matrix
565. Array Nesting
566. Reshape the Matrix
568. Maximum Vacation Days
573. Squirrel Simulation
575. Distribute Candies
581. Shortest Unsorted Continuous Subarray
587. Erect the Fence
594. Longest Harmonious Subsequence
598. Range Addition II
599. Minimum Index Sum of Two Lists
605. Can Place Flowers
609. Find Duplicate File in System
611. Valid Triangle Number
621. Task Scheduler
624. Maximum Distance in Arrays
628. Maximum Product of Three Numbers
630. Course Schedule III
632. Smallest Range Covering Elements from K Lists
636. Exclusive Time of Functions
638. Shopping Offers
643. Maximum Average Subarray I
644. Maximum Average Subarray II
645. Set Mismatch
646. Maximum Length of Pair Chain
648. Replace Words
656. Coin Path
658. Find K Closest Elements
659. Split Array into Consecutive Subsequences
661. Image Smoother
665. Non-decreasing Array
666. Path Sum IV
673. Number of Longest Increasing Subsequence
674. Longest Continuous Increasing Subsequence
675. Cut Off Trees for Golf Event
679. 24 Game
682. Baseball Game
683. K Empty Slots
689. Maximum Sum of 3 Non-Overlapping Subarrays
690. Employee Importance
691. Stickers to Spell Word
692. Top K Frequent Words
695. Max Area of Island
697. Degree of an Array
698. Partition to K Equal Sum Subsets
699. Falling Squares
702. Search in a Sorted Array of Unknown Size
704. Binary Search
713. Subarray Product Less Than K
714. Best Time to Buy and Sell Stock with Transaction Fee
717. 1-bit and 2-bit Characters
718. Maximum Length of Repeated Subarray
719. Find K-th Smallest Pair Distance
720. Longest Word in Dictionary
721. Accounts Merge
722. Remove Comments
723. Candy Crush
724. Find Pivot Index
733. Flood Fill
734. Sentence Similarity
735. Asteroid Collision
737. Sentence Similarity II
739. Daily Temperatures
740. Delete and Earn
741. Cherry Pickup
744. Find Smallest Letter Greater Than Target
746. Min Cost Climbing Stairs
747. Largest Number At Least Twice of Others
748. Shortest Completing Word
749. Contain Virus
750. Number Of Corner Rectangles
752. Open the Lock
755. Pour Water
757. Set Intersection Size At Least Two
759. Employee Free Time
760. Find Anagram Mappings
764. Largest Plus Sign
765. Couples Holding Hands
766. Toeplitz Matrix
768. Max Chunks To Make Sorted II
769. Max Chunks To Make Sorted
773. Sliding Puzzle
774. Minimize Max Distance to Gas Station
775. Global and Local Inversions
778. Swim in Rising Water
781. Rabbits in Forest
782. Transform to Chessboard
785. Is Graph Bipartite?
786. K-th Smallest Prime Fraction
797. All Paths From Source to Target
789. Escape The Ghosts
794. Valid Tic-Tac-Toe State
795. Number of Subarrays with Bounded Maximum
798. Smallest Rotation with Highest Score
801. Minimum Swaps To Make Sequences Increasing
802. Find Eventual Safe States
803. Bricks Falling When Hit
804. Unique Morse Code Words
805. Split Array With Same Average
806. Number of Lines To Write String
807. Max Increase to Keep City Skyline
810. Chalkboard XOR Game
811. Subdomain Visit Count
813. Largest Sum of Averages
815. Bus Routes
820. Short Encoding of Words
822. Card Flipping Game
823. Binary Trees With Factors
825. Friends Of Appropriate Ages
826. Most Profit Assigning Work
827. Making A Large Island
832. Flipping an Image
835. Image Overlap
839. Similar String Groups
840. Magic Squares In Grid
841. Keys and Rooms
843. Guess the Word
845. Longest Mountain in Array
846. Hand of Straights
849. Maximize Distance to Closest Person
850. Rectangle Area II
851. Loud and Rich
852. Peak Index in a Mountain Array
853. Car Fleet
857. Minimum Cost to Hire K Workers
860. Lemonade Change
861. Score After Flipping Matrix
862. Shortest Subarray with Sum at Least K
864. Shortest Path to Get All Keys
867. Transpose Matrix
870. Advantage Shuffle
873. Length of Longest Fibonacci Subsequence
874. Walking Robot Simulation
875. Koko Eating Bananas
877. Stone Game
879. Profitable Schemes
881. Boats to Save People
883. Projection Area of 3D Shapes
885. Spiral Matrix III
888. Fair Candy Swap
891. Sum of Subsequence Widths
892. Surface Area of 3D Shapes
893. Groups of Special-Equivalent Strings
896. Monotonic Array
898. Bitwise ORs of Subarrays
902. Numbers At Most N Given Digit Set
904. Fruit Into Baskets
905. Sort Array By Parity
907. Sum of Subarray Minimums
908. Smallest Range I
909. Snakes and Ladders
912. Sort an Array
914. X of a Kind in a Deck of Cards
915. Partition Array into Disjoint Intervals
916. Word Subsets
918. Maximum Sum Circular Subarray
922. Sort Array By Parity II
923. 3Sum With Multiplicity
927. Three Equal Parts
929. Unique Email Addresses
930. Binary Subarrays With Sum
931. Minimum Falling Path Sum
932. Beautiful Array
934. Shortest Bridge
937. Reorder Data in Log Files
939. Minimum Area Rectangle
941. Valid Mountain Array
943. Find the Shortest Superstring
944. Delete Columns to Make Sorted
945. Minimum Increment to Make Array Unique
946. Validate Stack Sequences
947. Most Stones Removed with Same Row or Column
948. Bag of Tokens
949. Largest Time for Given Digits
950. Reveal Cards In Increasing Order
952. Largest Component Size by Common Factor
953. Verifying an Alien Dictionary
954. Array of Doubled Pairs
955. Delete Columns to Make Sorted II
956. Tallest Billboard
957. Prison Cells After N Days
959. Regions Cut By Slashes
960. Delete Columns to Make Sorted III
961. N-Repeated Element in Size 2N Array
962. Maximum Width Ramp
963. Minimum Area Rectangle II
966. Vowel Spellchecker
969. Pancake Sorting
973. K Closest Points to Origin
974. Subarray Sums Divisible by K
975. Odd Even Jump
976. Largest Perimeter Triangle
977. Squares of a Sorted Array
978. Longest Turbulent Subarray
980. Unique Paths III
982. Triples with Bitwise AND Equal To Zero
983. Minimum Cost For Tickets
985. Sum of Even Numbers After Queries
986. Interval List Intersections
989. Add to Array-Form of Integer
990. Satisfiability of Equality Equations
992. Subarrays with K Different Integers
994. Rotting Oranges
995. Minimum Number of K Consecutive Bit Flips
996. Number of Squareful Arrays
997. Find the Town Judge
999. Available Captures for Rook
1000. Minimum Cost to Merge Stones
1001. Grid Illumination
1002. Find Common Characters
1004. Max Consecutive Ones III
1005. Maximize Sum Of Array After K Negations
1007. Minimum Domino Rotations For Equal Row
1010. Pairs of Songs With Total Durations Divisible by 60
1011. Capacity To Ship Packages Within D Days
1013. Partition Array Into Three Parts With Equal Sum
1014. Best Sightseeing Pair
1018. Binary Prefix Divisible By 5
1020. Number of Enclaves
1024. Video Stitching
1027. Longest Arithmetic Subsequence
1029. Two City Scheduling
1030. Matrix Cells in Distance Order
1031. Maximum Sum of Two Non-Overlapping Subarrays
1034. Coloring A Border
1035. Uncrossed Lines
1036. Escape a Large Maze
1037. Valid Boomerang
1039. Minimum Score Triangulation of Polygon
1040. Moving Stones Until Consecutive II
1043. Partition Array for Maximum Sum
1046. Last Stone Weight
1048. Longest String Chain
1049. Last Stone Weight II
1051. Height Checker
1052. Grumpy Bookstore Owner
1053. Previous Permutation With One Swap
1054. Distant Barcodes
1057. Campus Bikes
1058. Minimize Rounding Error to Meet Target
1060. Missing Element in Sorted Array
1063. Number of Valid Subarrays
1064. Fixed Point
1065. Index Pairs of a String
1066. Campus Bikes II
1072. Flip Columns For Maximum Number of Equal Rows
1073. Adding Two Negabinary Numbers
1074. Number of Submatrices That Sum to Target
1085. Sum of Digits in the Minimum Number
1086. High Five
1089. Duplicate Zeros
1090. Largest Values From Labels
1091. Shortest Path in Binary Matrix
1093. Statistics from a Large Sample
1094. Car Pooling
1095. Find in Mountain Array
1099. Two Sum Less Than K
1101. The Earliest Moment When Everyone Become Friends
1102. Path With Maximum Minimum Value
1105. Filling Bookcase Shelves
1109. Corporate Flight Bookings
1121. Divide Array Into Increasing Sequences
1122. Relative Sort Array
1124. Longest Well-Performing Interval
1125. Smallest Sufficient Team
1128. Number of Equivalent Domino Pairs
1130. Minimum Cost Tree From Leaf Values
1131. Maximum of Absolute Value Expression
1133. Largest Unique Number
1139. Largest 1-Bordered Square
1140. Stone Game II
1144. Decrease Elements To Make Array Zigzag
1150. Check If a Number Is Majority Element in a Sorted Array
1151. Minimum Swaps to Group All 1's Together
1152. Analyze User Website Visit Pattern
1160. Find Words That Can Be Formed by Characters
1162. As Far from Land as Possible
1167. Minimum Cost to Connect Sticks
1169. Invalid Transactions
1170. Compare Strings by Frequency of the Smallest Character
1708. Largest Subarray Length K
1176. Diet Plan Performance
1178. Number of Valid Words for Each Puzzle
1181. Before and After Puzzle
1182. Shortest Distance to Target Color
1184. Distance Between Bus Stops
1186. Maximum Subarray Sum with One Deletion
1187. Make Array Strictly Increasing
1191. K-Concatenation Maximum Sum
1196. How Many Apples Can You Put into the Basket
1198. Find Smallest Common Element in All Rows
1199. Minimum Time to Build Blocks
1200. Minimum Absolute Difference
1207. Unique Number of Occurrences
1210. Minimum Moves to Reach Target with Rotations
1213. Intersection of Three Sorted Arrays
1217. Minimum Cost to Move Chips to The Same Position
1218. Longest Arithmetic Subsequence of Given Difference
1219. Path with Maximum Gold
1222. Queens That Can Attack the King
1223. Dice Roll Simulation
1224. Maximum Equal Frequency
1228. Missing Number In Arithmetic Progression
1229. Meeting Scheduler
1230. Toss Strange Coins
1231. Divide Chocolate
1232. Check If It Is a Straight Line
1233. Remove Sub-Folders from the Filesystem
1235. Maximum Profit in Job Scheduling
1243. Array Transformation
1246. Palindrome Removal
1248. Count Number of Nice Subarrays
1250. Check If It Is a Good Array
1252. Cells with Odd Values in a Matrix
1253. Reconstruct a 2-Row Binary Matrix
1254. Number of Closed Islands
1255. Maximum Score Words Formed by Letters
1260. Shift 2D Grid
1262. Greatest Sum Divisible by Three
1263. Minimum Moves to Move a Box to Their Target Location
1266. Minimum Time Visiting All Points
1267. Count Servers that Communicate
1268. Search Suggestions System
1272. Remove Interval
1273. Delete Tree Nodes
1274. Number of Ships in a Rectangle
1275. Find Winner on a Tic Tac Toe Game
1277. Count Square Submatrices with All Ones
1282. Group the People Given the Group Size They Belong To
1283. Find the Smallest Divisor Given a Threshold
1284. Minimum Number of Flips to Convert Binary Matrix to Zero Matrix
1287. Element Appearing More Than 25% In Sorted Array
1288. Remove Covered Intervals
1289. Minimum Falling Path Sum II
1292. Maximum Side Length of a Square with Sum Less than or Equal to Threshold
1293. Shortest Path in a Grid with Obstacles Elimination
1295. Find Numbers with Even Number of Digits
1296. Divide Array in Sets of K Consecutive Numbers
1298. Maximum Candies You Can Get from Boxes
1299. Replace Elements with Greatest Element on Right Side
1300. Sum of Mutated Array Closest to Target
1301. Number of Paths with Max Score
1306. Jump Game III
1307. Verbal Arithmetic Puzzle
1310. XOR Queries of a Subarray
1311. Get Watched Videos by Your Friends
1313. Decompress Run-Length Encoded List
1314. Matrix Block Sum
1326. Minimum Number of Taps to Open to Water a Garden
1329. Sort the Matrix Diagonally
1330. Reverse Subarray To Maximize Array Value
1331. Rank Transform of an Array
1335. Minimum Difficulty of a Job Schedule
1338. Reduce Array Size to The Half
1340. Jump Game V
1343. Number of Sub-arrays of Size K and Average Greater than or Equal to Threshold
1345. Jump Game IV
1346. Check If N and Its Double Exist
1349. Maximum Students Taking Exam
1351. Count Negative Numbers in a Sorted Matrix
1353. Maximum Number of Events That Can Be Attended
1380. Lucky Numbers in a Matrix
1390. Four Divisors
1391. Check if There is a Valid Path in a Grid
1394. Find Lucky Integer in an Array
1395. Count Number of Teams
1406. Stone Game III
1426. Counting Elements
1428. Leftmost Column with at Least a One
1431. Kids With the Greatest Number of Candies
1434. Number of Ways to Wear Different Hats to Each Other
1437. Check If All 1's Are at Least Length K Places Away
1438. Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit
1442. Count Triplets That Can Form Two Arrays of Equal XOR
1444. Number of Ways of Cutting a Pizza
1450. Number of Students Doing Homework at a Given Time
1460. Make Two Arrays Equal by Reversing Subarrays
1463. Cherry Pickup II
1470. Shuffle the Array
1473. Paint House III
1481. Least Number of Unique Integers after K Removals
1482. Minimum Number of Days to Make m Bouquets
1491. Average Salary Excluding the Minimum and Maximum Salary
1493. Longest Subarray of 1's After Deleting One Element
1498. Number of Subsequences That Satisfy the Given Sum Condition
1502. Can Make Arithmetic Progression From Sequence
1504. Count Submatrices With All Ones
1508. Range Sum of Sorted Subarray Sums
1509. Minimum Difference Between Largest and Smallest Value in Three Moves
1512. Number of Good Pairs
1533. Find the Index of the Large Integer
1534. Count Good Triplets
1535. Find the Winner of an Array Game
1536. Minimum Swaps to Arrange a Binary Grid
1537. Get the Maximum Score
1538. Guess the Majority in a Hidden Array
1539. Kth Missing Positive Number
1547. Minimum Cost to Cut a Stick
1550. Three Consecutive Odds
1552. Magnetic Force Between Two Balls
1554. Strings Differ by One Character
1559. Detect Cycles in 2D Grid
1564. Put Boxes Into the Warehouse I
1568. Minimum Number of Days to Disconnect Island
1572. Matrix Diagonal Sum
1575. Count All Possible Routes
1580. Put Boxes Into the Warehouse II
1599. Maximum Profit of Operating a Centennial Wheel
1601. Maximum Number of Achievable Transfer Requests
1605. Find Valid Matrix Given Row and Column Sums
1608. Special Array With X Elements Greater Than or Equal X
1626. Best Team With No Conflicts
1631. Path With Minimum Effort
1636. Sort Array by Increasing Frequency
1639. Number of Ways to Form a Target String Given a Dictionary
1642. Furthest Building You Can Reach
1648. Sell Diminishing-Valued Colored Balls
1652. Defuse the Bomb
1672. Richest Customer Wealth
1673. Find the Most Competitive Subsequence
1679. Max Number of K-Sum Pairs
1686. Stone Game VI
1690. Stone Game VII
1691. Maximum Height by Stacking Cuboids
1696. Jump Game VI
1700. Number of Students Unable to Eat Lunch
1730. Shortest Path to Get Food
1732. Find the Highest Altitude
1735. Count Ways to Make Array With Product
1738. Find Kth Largest XOR Coordinate Value
1751. Maximum Number of Events That Can Be Attended II
1766. Tree of Coprimes
1770. Maximum Score from Performing Multiplication Operations
1793. Maximum Score of a Good Subarray
1799. Maximize Score After N Operations
1800. Maximum Ascending Subarray Sum
1814. Count Nice Pairs in an Array
1822. Sign of the Product of an Array
1826. Faulty Sensor
1840. Maximum Building Height
1851. Minimum Interval to Include Eac
1854. Maximum Population Year
1863. Sum of All Subset XOR Totals
1870. Minimum Speed to Arrive on Time
1883. Minimum Skips to Arrive at Meeting On Time
1885. Count Pairs in Two Arrays
1886. Determine Whether Matrix Can Be Obtained By Rotation
1891. Cutting Ribbons
1894. Find the Student that Will Replace the Chalk
1902. Depth of BST Given Insertion Order
1905. Count Sub Islands
1914. Cyclically Rotating a Grid
1926. Nearest Exit from Entrance in Maze
1937. Maximum Number of Points with Cost
1938. Maximum Genetic Difference Query
1943. Describe the Painting
1953. Maximum Number of Weeks for Which You Can Work
1958. Check if Move is Legal
1964. Find the Longest Valid Obstacle Course at Each Position
1969. Minimum Non-Zero Product of the Array Elements
1970. Last Day Where You Can Still Cross
1975. Maximum Matrix Sum
1979. Find Greatest Common Divisor of Array
1981. Minimize the Difference Between Target and Chosen Elements
1991. Find the Middle Index in Array
1992. Find All Groups of Farmland
1997. First Day Where You Have Been in All the Rooms
2007. Find Original Array From Doubled Array
2009. Minimum Number of Operations to Make Array Continuous
2022. Convert 1D Array Into 2D Array
2028. Find Missing Observations
2037. Minimum Number of Moves to Seat Everyone
2053. Kth Distinct String in an Array
2056. Number of Valid Move Combinations On Chessboard
2071. Maximum Number of Tasks You Can Assign
2073. Time Needed to Buy Tickets
2079. Watering Plants
2085. Count Common Words With One Occurrence
2088. Count Fertile Pyramids in a Land
2093. Minimum Cost to Reach City With Discounts
2101. Detonate the Maximum Bombs
2105. Watering Plants II
2106. Maximum Fruits Harvested After at Most K Steps
2108. Find First Palindromic String in the Array
2120. Execution of All Suffix Instructions Staying in a Grid
2132. Stamping the Grid
2134. Minimum Swaps to Group All 1's Together II
2140. Solving Questions With Brainpower
2146. K Highest Ranked Items Within a Price Range
2149. Rearrange Array Elements by Sign
2171. Removing Minimum Number of Magic Beans
2174. Remove All Ones With Row and Column Flips II
2183. Count Array Pairs Divisible by K
2191. Sort the Jumbled Numbers
2215. Find the Difference of Two Arrays
2217. Find Palindrome With Fixed Length
2218. Maximum Value of K Coins From Piles
2225. Find Players With Zero or One Losses
2244. Minimum Rounds to Complete All Tasks
2245. Maximum Trailing Zeros in a Cornered Path
2248. Intersection of Multiple Arrays
2257. Count Unguarded Cells in the Grid
2258. Escape the Spreading Fire
2271. Maximum White Tiles Covered by a Carpet
2281. Sum of Total Strength of Wizards
2300. Successful Pairs of Spells and Potions
2304. Minimum Path Cost in a Grid
2306. Naming a Company
2312. Selling Pieces of Wood
2332. The Latest Time to Catch a Bus
2343. Query Kth Smallest Trimmed Number
2352. Equal Row and Column Pairs
2368. Reachable Nodes With Restrictions
2369. Check if There is a Valid Partition For The Array
2373. Largest Local Values in a Matrix
2386. Find the K-Sum of an Array
2391. Minimum Amount of Time to Collect Garbage
2392. Build a Matrix With Conditions
2398. Maximum Number of Robots Within Budget
2402. Meeting Rooms III
2416. Sum of Prefix Scores of Strings
2418. Sort the People
2419. Longest Subarray With Maximum Bitwise AND
2441. Largest Positive Integer That Exists With Its Negative
2444. Count Subarrays With Fixed Bounds
2462. Total Cost to Hire K Workers
2464. Minimum Subarrays in a Valid Split
2482. Difference Between Ones and Zeros in Row and Column
2498. Frog Jump II
2503. Maximum Number of Points From Grid Queries
2509. Cycle Length Queries in a Tree
2509. Cycle Length Queries in a Tree
2510. Check if There is a Path With Equal Number of 0's And 1's
2529. Maximum Count of Positive Integer and Negative Integer

2535. Difference Between Element Sum and Digit Sum of an Array
2540. Minimum Common Value
2542. Maximum Subsequence Score
2545. Sort the Students by Their Kth Score
2549. Count Distinct Numbers on Board
2552. Count Increasing Quadruplets
2555. Maximize Win From Two Segments
2556. Disconnect Path in a Binary Matrix by at Most One Flip
2575. Find the Divisibility Array of a String
2576. Find the Maximum Number of Marked Indices
2577. Minimum Time to Visit a Cell In a Grid
2580. Count Ways to Group Overlapping Ranges
2589. Minimum Time to Complete All Tasks
2596. Check Knight Tour Configuration
2597. The Number of Beautiful Subsets
2604. Minimum Time to Eat All Grains
2617. Minimum Number of Visited Cells in a Grid
2644. Find the Maximum Divisibility Score
2658. Maximum Number of Fish in a Grid
2661. First Completely Painted Row or Column
2670. Find the Distinct Difference Array
2678. Number of Senior Citizens
2684. Maximum Number of Moves in a Grid
2708. Maximum Strength of a Group
2713. Maximum Strictly Increasing Cells in a Matrix
2731. Movement of Robots
2732. Find a Good Subset of the Matrix
2740. Find the Value of the Partition
2741. Special Permutations
2742. Painting the Walls
2744. Find Maximum Number of String Pairs
2748. Number of Beautiful Pairs
2751. Robot Collisions
2765. Longest Alternating Subarray
2766. Relocate Marbles
2771. Longest Non-decreasing Subarray From Two Arrays
2779. Maximum Beauty of an Array After Applying Operation
2786. Visit Array Positions to Maximize Score
2788. Split Strings by Separator
2789. Largest Element in an Array after Merge Operations
2798. Number of Employees Who Met the Target
2808. Minimum Seconds to Equalize a Circular Array
2809. Minimum Time to Make Array Sum At Most x
2812. Find the Safest Path in a Grid
2813. Maximum Elegance of a K-Length Subsequence
2815. Max Pair Sum in an Array
2831. Find the Longest Equal Subarray
2848. Points That Intersect With Cars
2850. Minimum Moves to Spread Stones Over Grid
2852. Sum of Remoteness of All Cells
2859. Sum of Values at Indices With K Set Bits
2860. Happy Students
2861. Maximum Number of Alloys
2865. Beautiful Towers I
2873. Maximum Value of an Ordered Triplet I
2874. Maximum Value of an Ordered Triplet II
2903. Find Indices With Index and Value Difference I
2908. Minimum Sum of Mountain Triplets I
2917. Find the K-or of an Array
2923. Find Champion I
2924. Find Champion II
2931. Maximum Spending After Buying Items
2940. Find Building Where Alice and Bob Can Meet
2943. Maximize Area of Square Hole in Grid
2951. Find the Peaks
2952. Minimum Number of Coins to be Added
2956. Find Common Elements Between Two Arrays
2958. Length of Longest Subarray With at Most K Frequency
2960. Count Tested Devices After Test Operations
2961. Double Modular Exponentiation
2962. Count Subarrays Where Max Element Appears at Least K Times
2965. Find Missing and Repeated Values
2966. Divide Array Into Arrays With Max Difference
2970. Count the Number of Incremovable Subarrays I
2971. Find Polygon With the Largest Perimeter
2972. Count the Number of Incremovable Subarrays II
2974. Minimum Number Game
2997. Minimum Number of Operations to Make Array XOR Equal to K
3000. Maximum Area of Longest Diagonal Rectangle
3004. Maximum Subtree of the Same Color
3005. Count Elements With Maximum Frequency
3009. Maximum Number of Intersections on the Chart
3011. Find if Array Can Be Sorted
3018. Maximum Number of Removal Queries That Can Be Processed I
3023. Find Pattern in Infinite Stream I
3030. Find the Grid of Region Average
3033. Modify the Matrix
3038. Maximum Number of Operations With the Same Score I
3040. Maximum Number of Operations With the Same Score II
3041. Maximize Consecutive Elements in an Array After Modification
3043. Find the Length of the Longest Common Prefix
3044. Most Frequent Prime
3065. Minimum Operations to Exceed Threshold Value I
3066. Minimum Operations to Exceed Threshold Value II
3067. Count Pairs of Connectable Servers in a Weighted Tree Network
3068. Find the Maximum Sum of Node Values
3072. Distribute Elements Into Two Arrays II
3073. Maximum Increasing Triplet Value
3074. Apple Redistribution into Boxes
3075. Maximize Happiness of Selected Children
3086. Minimum Moves to Pick K Ones
3096. Minimum Levels to Gain More Points
3098. Find the Sum of Subsequence Powers
3101. Count Alternating Subarrays
3102. Minimize Manhattan Distances
3111. Minimum Rectangles to Cover Points
3115. Maximum Prime Difference
3117. Minimum Sum of Values by Dividing Array
3127. Make a Square with the Same Color
3131. Find the Integer Added to Array I
3132. Find the Integer Added to Array II
3134. Find the Median of the Uniqueness Array
3142. Check if Grid Satisfies Conditions
3143. Maximum Points Inside the Square
3145. Find Products of Elements of Big Array
3148. Maximum Difference Score in a Grid
3151. Special Array I
3152. Special Array II
3153. Sum of Digit Differences of All Pairs
3160. Find the Number of Distinct Colors Among the Balls
3173. Bitwise OR of Adjacent Elements
3176. Find the Maximum Length of a Good Subsequence I
3177. Find the Maximum Length of a Good Subsequence II
3190. Find Minimum Operations to Make All Elements Divisible by Three
3195. Find the Minimum Area to Cover All Ones I
3197. Find the Minimum Area to Cover All Ones II
3205. Maximum Array Hopping Score I
3206. Alternating Groups I
3208. Alternating Groups II
3215. Count Triplets with Even XOR Set Bits II
3218. Minimum Cost for Cutting Cake I
3219. Minimum Cost for Cutting Cake II
3221. Maximum Array Hopping Score II
3235. Check if the Rectangle Corner Is Reachable
3237. Alt and Tab Simulation
3245. Alternating Groups III
3247. Number of Subsequences with Odd Sum
3269. Constructing Two Increasing Arrays
3279. Maximum Total Area Occupied by Pistons
3286. Find a Safe Walk Through a Grid

String

3. Longest Substring Without Repeating Characters
5. Longest Palindromic Substring
6. ZigZag Conversion
8. String to Integer (atoi)
10. Regular Expression Matching
12. Integer to Roman
13. Roman to Integer
14. Longest Common Prefix
17. Letter Combinations of a Phone Number
20. Valid Parentheses
22. Generate Parentheses
28. Implement strStr()
30. Substring with Concatenation of All Words
32. Longest Valid Parentheses
43. Multiply Strings
44. Wildcard Matching
49. Group Anagrams
58. Length of Last Word
65. Valid Number
67. Add Binary
71. Simplify Path
72. Edit Distance
76. Minimum Window Substring
87. Scramble String
91. Decode Ways
93. Restore IP Addresses
97. Interleaving String
115. Distinct Subsequences
125. Valid Palindrome
126. Word Ladder II
127. Word Ladder
131. Palindrome Partitioning
132. Palindrome Partitioning II
139. Word Break
151. Reverse Words in a String
157. Read N Characters Given Read4
158. Read N Characters Given read4 II - Call Multiple Times
159. Longest Substring with At Most Two Distinct Characters
161. One Edit Distance
165. Compare Version Numbers
168. Excel Sheet Column Title
171. Excel Sheet Column Number
179. Largest Number
186. Reverse Words in a String II
187. Repeated DNA Sequences
205. Isomorphic Strings
214. Shortest Palindrome
224. Basic Calculator
227. Basic Calculator II
241. Different Ways to Add Parentheses
242. Valid Anagram
246. Strobogrammatic Number
247. Strobogrammatic Number II
248. Strobogrammatic Number III
266. Palindrome Permutation
267. Palindrome Permutation II
282. Expression Add Operators
290. Word Pattern
291. Word Pattern II
293. Flip Game
294. Flip Game II
299. Bulls and Cows
301. Remove Invalid Parentheses
306. Additive Number
315. Count of Smaller Numbers After Self
316. Remove Duplicate Letters
320. Generalized Abbreviation
331. Verify Preorder Serialization of a Binary Tree
340. Longest Substring with At Most K Distinct Characters
344. Reverse String
345. Reverse Vowels of a String
358. Rearrange String k Distance Apart
383. Ransom Note
385. Mini Parser
387. First Unique Character in a String
388. Longest Absolute File Path
389. Find the Difference
392. Is Subsequence
394. Decode String
395. Longest Substring with At Least K Repeating Characters
402. Remove K Digits
408. Valid Word Abbreviation
409. Longest Palindrome
411. Minimum Unique Word Abbreviation
415. Add Strings
418. Sentence Screen Fitting
420. Strong Password Checker
423. Reconstruct Original Digits from English
424. Longest Repeating Character Replacement
433. Minimum Genetic Mutation
434. Number of Segments in a String
438. Find All Anagrams in a String
439. Ternary Expression Parser
451. Sort Characters By Frequency
459. Repeated Substring Pattern
466. Count The Repetitions
467. Unique Substrings in Wraparound String
468. Validate IP Address
471. Encode String with Shortest Length
481. Magical String
482. License Key Formatting
483. Smallest Good Base
488. Zuma Game
484. Find Permutation
514. Freedom Trail
516. Longest Palindromic Subsequence
520. Detect Capital
521. Longest Uncommon Subsequence I
524. Longest Word in Dictionary through Deleting
536. Construct Binary Tree from String
537. Complex Number Multiplication
541. Reverse String II
544. Output Contest Matches
551. Student Attendance Record I
553. Optimal Division
557. Reverse Words in a String III
564. Find the Closest Palindrome
567. Permutation in String
583. Delete Operation for Two Strings
591. Tag Validator
592. Fraction Addition and Subtraction
616. Add Bold Tag in String
639. Decode Ways II
640. Solve the Equation
647. Palindromic Substrings
649. Dota2 Senate
657. Robot Return to Origin
664. Strange Printer
678. Valid Parenthesis String
680. Valid Palindrome II
681. Next Closest Time
686. Repeated String Match
696. Count Binary Substrings
709. To Lower Case
712. Minimum ASCII Delete Sum for Two Strings
726. Number of Atoms
727. Minimum Window Subsequence
730. Count Different Palindromic Subsequences
736. Parse Lisp Expression
751. IP to CIDR
756. Pyramid Transition Matrix
758. Bold Words in String
761. Special Binary String
763. Partition Labels
767. Reorganize String
770. Basic Calculator IV
772. Basic Calculator III
777. Swap Adjacent in LR String
784. Letter Case Permutation
791. Custom Sort String
792. Number of Matching Subsequences
796. Rotate String
800. Similar RGB Color
809. Expressive Words
816. Ambiguous Coordinates
819. Most Common Word
821. Shortest Distance to a Character
824. Goat Latin
828. Count Unique Characters of All Substrings of a Given String
830. Positions of Large Groups
831. Masking Personal Information
833. Find And Replace in String
838. Push Dominoes
842. Split Array into Fibonacci Sequence
844. Backspace String Compare
848. Shifting Letters
854. K-Similar Strings
856. Score of Parentheses
859. Buddy Strings
871. Minimum Number of Refueling Stops
880. Decoded String at Index
884. Uncommon Words from Two Sentences
890. Find and Replace Pattern
899. Orderly Queue
903. Valid Permutations for DI Sequence
906. Super Palindromes
917. Reverse Only Letters
921. Minimum Add to Make Parentheses Valid
925. Long Pressed Name
926. Flip String to Monotone Increasing
936. Stamping The Sequence
940. Distinct Subsequences II
942. DI String Match
972. Equal Rational Numbers
984. String Without AAA or BBB
1003. Check If Word Is Valid After Substitutions
1016. Binary String With Substrings Representing 1 To N
1021. Remove Outermost Parentheses
1023. Camelcase Matching
1041. Robot Bounded In Circle
1044. Longest Duplicate Substring
1047. Remove All Adjacent Duplicates In String
1055. Shortest Way to Form String
1061. Lexicographically Smallest Equivalent String
1062. Longest Repeating Substring
1071. Greatest Common Divisor of Strings
1078. Occurrences After Bigram
1079. Letter Tile Possibilities
1081. Smallest Subsequence of Distinct Characters
1087. Brace Expansion
1092. Shortest Common Supersequence
1096. Brace Expansion II
1100. Find K-Length Substrings With No Repeated Characters
1106. Parsing A Boolean Expression
1108. Defanging an IP Address
1111. Maximum Nesting Depth of Two Valid Parentheses Strings
1119. Remove Vowels from a String
1138. Alphabet Board Path
1143. Longest Common Subsequence
1147. Longest Chunked Palindrome Decomposition
1153. String Transforms Into Another String
1154. Day of the Year
1156. Swap For Longest Repeated Character Substring
1163. Last Substring in Lexicographical Order
1165. Single-Row Keyboard
1177. Can Make Palindrome from Substring
1180. Count Substrings with Only One Distinct Letter
1189. Maximum Number of Balloons
1190. Reverse Substrings Between Each Pair of Parentheses
1202. Smallest String With Swaps
1208. Get Equal Substrings Within Budget
1209. Remove All Adjacent Duplicates in String II
1216. Valid Palindrome III
1221. Split a String in Balanced Strings
1234. Replace the Substring for Balanced String
1236. Web Crawler
1239. Maximum Length of a Concatenated String with Unique Characters
1247. Minimum Swaps to Make Strings Equal
1249. Minimum Remove to Make Valid Parentheses
1257. Smallest Common Region
1258. Synonymous Sentences
1271. Hexspeak
1278. Palindrome Partitioning III
1297. Maximum Number of Occurrences of a Substring
1309. Decrypt String from Alphabet to Integer Mapping
1312. Minimum Insertion Steps to Make a String Palindrome
1316. Distinct Echo Substrings
1320. Minimum Distance to Type a Word Using Two Fingers
1324. Print Words Vertically
1328. Break a Palindrome
1347. Minimum Number of Steps to Make Two Strings Anagram
1360. Number of Days Between Two Dates
1371. Find the Longest Substring Containing Vowels in Even Counts
1392. Longest Happy Prefix
1397. Find All Good Strings
1404. Number of Steps to Reduce a Number in Binary Representation to One
1416. Restore The Array
1422. Maximum Score After Splitting a String
1427. Perform String Shifts
1446. Consecutive Characters
1456. Maximum Number of Vowels in a Substring of Given Length
1507. Reformat Date
1528. Shuffle String
1542. Find Longest Awesome Substring
1544. Make The String Great
1556. Thousand Separator
1597. Build Binary Expression Tree From Infix Expression
1598. Crawler Log Folder
1614. Maximum Nesting Depth of the Parentheses
1618. Maximum Font to Fit a Sentence in a Screen
1653. Minimum Deletions to Make String Balanced
1657. Determine if Two Strings Are Close
1668. Maximum Repeating Substring
1678. Goal Parser Interpretation
1682. Longest Palindromic Subsequence II
1684. Count the Number of Consistent Strings
1698. Number of Distinct Substrings in a String
1702. Maximum Binary String After Change
1717. Maximum Score From Removing Substrings
1750. Minimum Length of String After Deleting Similar Ends
1768. Merge Strings Alternately
1915. Number of Wonderful Substrings
1933. Check if String Is Decomposable Into Value-Equal Substrings
1945. Sum of Digits of String After Convert
2000. Reverse Prefix of Word
2024. Maximize the Confusion of an Exam
2055. Plates Between Candles
2075. Decode the Slanted Ciphertext
2103. Rings and Rods
2129. Capitalize the Title
2182. Construct String With Repeat Limit
2207. Maximize Number of Subsequences in a String
2288. Apply Discount to Prices
2322. Minimum Score After Removals on a Tree
2370. Longest Ideal Subsequence
2390. Removing Stars From a String
2414. Length of the Longest Alphabetical Continuous Substring
2486. Append Characters to String to Make Subsequence
2516. Take K of Each Character From Left and Right
2575. Find the Divisibility Array of a String
2586. Count the Number of Vowel Strings in Range
2645. Minimum Additions to Make Valid String
2663. Lexicographically Smallest Beautiful String
2696. Minimum String Length After Removing Substrings
2707. Extra Characters in a String
2710. Remove Trailing Zeros From a String
2719. Count of Integers
2734. Lexicographically Smallest String After Substring Operation
2810. Faulty Keyboard
2844. Minimum Operations to Make a Special Number
2864. Maximum Odd Binary Number
2938. Separate Black and White Balls
2950. Number of Divisible Substrings
2976. Minimum Cost to Convert String I
2981. Find Longest Special Substring That Occurs Thrice I
2982. Find Longest Special Substring That Occurs Thrice II
3016. Minimum Number of Pushes to Type Word II
3019. Number of Changing Keys
3088. Make String Anti-palindrome
3104. Find Longest Self-Contained Substring
3106. Lexicographically Smallest String After Operations With Constraint
3110. Score of a String
3137. Minimum Number of Operations to Make Word K-Periodic
3144. Minimum Substring Partition of Equal Character
3146. Permutation Difference between Two Strings
3167. Better Compression of String
3174. Clear Digits

Dynamic Programming

276. Paint Fence
552. Student Attendance Record II
576. Out of Boundary Paths
600. Non-negative Integers without Consecutive Ones
629. K Inverse Pairs Array
688. Knight Probability in Chessboard
787. Cheapest Flights Within K Stops
790. Domino and Tromino Tiling
799. Champagne Tower
935. Knight Dialer
1155. Number of Dice Rolls With Target Sum
1220. Count Vowels Permutation
1269. Number of Ways to Stay in the Same Place After Some Steps
1553. Minimum Number of Days to Eat N Oranges
1692. Count Ways to Distribute Candies
1931. Painting a Grid With Three Different Colors
2466. Count Ways To Build Good Strings
3129. Find All Possible Stable Binary Arrays I
3130. Find All Possible Stable Binary Arrays II

Two Pointers

11. Container With Most Water

Heap

2231. Largest Number After Digit Swaps by Parity

Linked List

2. Add Two Numbers
19. Remove Nth Node From End of List
21. Merge Two Sorted Lists
23. Merge k Sorted Lists
24. Swap Nodes in Pairs
25. Reverse Nodes in k-Group
61. Rotate List
82. Remove Duplicates from Sorted List II
83. Remove Duplicates from Sorted List
86. Partition List
92. Reverse Linked List II
109. Convert Sorted List to Binary Search Tree
138. Copy List with Random Pointer
141. Linked List Cycle
142. Linked List Cycle II
143. Reorder List
147. Insertion Sort List
148. Sort List
160. Intersection of Two Linked Lists
203. Remove Linked List Elements
206. Reverse Linked List
234. Palindrome Linked List
237. Delete Node in a Linked List
328. Odd Even Linked List
369. Plus One Linked List
430. Flatten a Multilevel Doubly Linked List
445. Add Two Numbers II
708. Insert into a Sorted Circular Linked List
725. Split Linked List in Parts
817. Linked List Components
876. Middle of the Linked List
1019. Next Greater Node In Linked List
1171. Remove Zero Sum Consecutive Nodes from Linked List
1265. Print Immutable Linked List in Reverse
1290. Convert Binary Number in a Linked List to Integer
1367. Linked List in Binary Tree
1474. Delete N Nodes After M Nodes of a Linked List
1634. Add Two Polynomials Represented as Linked Lists
1669. Merge In Between Linked Lists
1836. Remove Duplicates From an Unsorted Linked List
2058. Find the Minimum and Maximum Number of Nodes Between Critical Points
2074. Reverse Nodes in Even Length Groups
2095. Delete the Middle Node of a Linked List
2130. Maximum Twin Sum of a Linked List
2181. Merge Nodes in Between Zeros
2326. Spiral Matrix IV
2487. Remove Nodes From Linked List
2807. Insert Greatest Common Divisors in Linked List
2816. Double a Number Represented as a Linked List
3062. Winner of the Linked List Game
3063. Linked List Frequency
3217. Delete Nodes From Linked List Present in Array
3263. Convert Doubly Linked List to Array I

Enumeration

204. Count Primes
1291. Sequential Digits
3001. Minimum Moves to Capture The Queen

HashTable

694. Number of Distinct Islands
711. Number of Distinct Islands II

Segment_Tree

307. Range Sum Query - Mutable

Math

2. Add Two Numbers
9. Palindrome Number
29. Divide Two Integers
50. Pow(x, n)
60. Permutation Sequence
62. Unique Paths
69. Sqrt(x)
70. Climbing Stairs
89. Gray Code
166. Fraction to Recurring Decimal
172. Factorial Trailing Zeroes
202. Happy Number
223. Rectangle Area
231. Power of Two
233. Number of Digit One
258. Add Digits
263. Ugly Number
264. Ugly Number II
273. Integer to English Words
279. Perfect Squares
292. Nim Game
313. Super Ugly Number
319. Bulb Switcher
326. Power of Three
342. Power of Four
343. Integer Break
356. Line Reflection
357. Count Numbers with Unique Digits
360. Sort Transformed Array
365. Water and Jug Problem
367. Valid Perfect Square
371. Sum of Two Integers
372. Super Pow
375. Guess Number Higher or Lower II
390. Elimination Game
396. Rotate Function
400. Nth Digit
405. Convert a Number to Hexadecimal
412. Fizz Buzz
441. Arranging Coins
453. Minimum Moves to Equal Array Elements
458. Poor Pigs
464. Can I Win
479. Largest Palindrome Product
492. Construct the Rectangle
504. Base 7
507. Perfect Number
509. Fibonacci Number
519. Random Flip Matrix
556. Next Greater Element III
587. Erect the Fence
593. Valid Square
625. Minimum Factorization
633. Sum of Square Numbers
634. Find the Derangement of An Array
650. 2 Keys Keyboard
651. 4 Keys Keyboard
660. Remove 9
667. Beautiful Arrangement II
668. Kth Smallest Number in Multiplication Table
670. Maximum Swap
672. Bulb Switcher II
728. Self Dividing Numbers
738. Monotone Increasing Digits
754. Reach a Number
762. Prime Number of Set Bits in Binary Representation
775. Global and Local Inversions
779. K-th Symbol in Grammar
780. Reaching Points
788. Rotated Digits
793. Preimage Size of Factorial Zeroes Function
808. Soup Servings
812. Largest Triangle Area
818. Race Car
829. Consecutive Numbers Sum
836. Rectangle Overlap
837. New 21 Game
858. Mirror Reflection
866. Prime Palindrome
869. Reordered Power of 2
878. Nth Magical Number
883. Projection Area of 3D Shapes
892. Surface Area of 3D Shapes
887. Super Egg Drop
902. Numbers At Most N Given Digit Set
908. Smallest Range I
910. Smallest Range II
920. Number of Music Playlists
932. Beautiful Array
939. Minimum Area Rectangle
964. Least Operators to Express Number
970. Powerful Integers
972. Equal Rational Numbers
973. K Closest Points to Origin
991. Broken Calculator
1006. Clumsy Factorial
1012. Numbers With Repeated Digits
1015. Smallest Integer Divisible by K
1017. Convert to Base -2
1025. Divisor Game
1033. Moving Stones Until Consecutive
1056. Confusing Number
1067. Digit Count in Range
1088. Confusing Number II
1103. Distribute Candies to People
1104. Path In Zigzag Labelled Binary Tree
1118. Number of Days in a Month
1134. Armstrong Number
1137. N-th Tribonacci Number
1154. Day of the Year
1175. Prime Arrangements
1183. Maximum Number of Ones
1185. Day of the Week
1201. Ugly Number III
1227. Airplane Seat Assignment Probability
1237. Find Positive Integer Solution for a Given Equation
1238. Circular Permutation in Binary Representation
1256. Encode Number
1259. Handshakes That Don't Cross
1276. Number of Burgers with No Waste of Ingredients
1281. Subtract the Product and Sum of Digits of an Integer
1304. Find N Unique Integers Sum up to Zero
1317. Convert Integer to the Sum of Two No-Zero Integers
1323. Maximum 69 Number
1342. Number of Steps to Reduce a Number to Zero
1344. Angle Between Hands of a Clock
1390. Four Divisors
1399. Count Largest Group
1401. Circle and Rectangle Overlapping
1486. XOR Operation in an Array
1492. The kth Factor of n
1510. Stone Game IV
1512. Number of Good Pairs
1523. Count Odd Numbers in an Interval Range
1518. Water Bottles
1621. Number of Sets of K Non-Overlapping Line Segments
1701. Average Waiting Time
1739. Building Boxes
1823. Find the Winner of the Circular Game
1922. Count Good Numbers
2081. Sum of k-Mirror Numbers
2101. Detonate the Maximum Bombs
2128. Remove All Ones With Row and Column Flips
2165. Smallest Value of the Rearranged Number
2235. Add Two Integers
2376. Count Special Integers
2413. Smallest Even Multiple
2469. Convert the Temperature
2485. Find the Pivot Integer
2582. Pass the Pillow
2739. Total Distance Traveled
2769. Find the Maximum Achievable Number
2806. Account Balance After Rounded Purchase
2834. Find the Minimum Possible Sum of a Beautiful Array
2928. Distribute Candies Among Children I
3009. Maximum Number of Intersections on the Chart
3032. Count Numbers With Unique Digits II
3099. Harshad Number
3102. Minimize Manhattan Distances
3128. Right Triangles
3154. Find Number of Ways to Reach the K-th Stair
3162. Find the Number of Good Pairs I
3164. Find the Number of Good Pairs II
3200. Maximum Height of a Triangle
3222. Find the Winning Player in Coin Game
3235. Check if the Rectangle Corner Is Reachable

Stack

225. Implement Stack using Queues
232. Implement Queue using Stacks
321. Create Maximum Number
339. Nested List Weight Sum
364. Nested List Weight Sum II

Tree

94. Binary Tree Inorder Traversal
95. Unique Binary Search Trees II
96. Unique Binary Search Trees
99. Recover Binary Search Tree
100. Same Tree
101. Symmetric Tree
102. Binary Tree Level Order Traversal
103. Binary Tree Zigzag Level Order Traversal
104. Maximum Depth of Binary Tree
107. Binary Tree Level Order Traversal II
109. Convert Sorted List to Binary Search Tree
110. Balanced Binary Tree
111. Minimum Depth of Binary Tree
112. Path Sum
113. Path Sum II
114. Flatten Binary Tree to Linked List
116. Populating Next Right Pointers in Each Node
117. Populating Next Right Pointers in Each Node II
124. Binary Tree Maximum Path Sum
129. Sum Root to Leaf Numbers
144. Binary Tree Preorder Traversal
145. Binary Tree Postorder Traversal
156. Binary Tree Upside Down
173. Binary Search Tree Iterator
199. Binary Tree Right Side View
222. Count Complete Tree Nodes
226. Invert Binary Tree
230. Kth Smallest Element in a BST
235. Lowest Common Ancestor of a Binary Search Tree
236. Lowest Common Ancestor of a Binary Tree
250. Count Univalue Subtrees
255. Verify Preorder Sequence in Binary Search Tree
257. Binary Tree Paths
270. Closest Binary Search Tree Value
272. Closest Binary Search Tree Value II
285. Inorder Successor in BST
298. Binary Tree Longest Consecutive Sequence
314. Binary Tree Vertical Order Traversal
331. Verify Preorder Serialization of a Binary Tree
333. Largest BST Subtree
337. House Robber III
366. Find Leaves of Binary Tree
404. Sum of Left Leaves
426. Convert Binary Search Tree to Sorted Doubly Linked List
427. Construct Quad Tree
429. N-ary Tree Level Order Traversal
437. Path Sum III
449. Serialize and Deserialize BST
450. Delete Node in a BST
501. Find Mode in Binary Search Tree
508. Most Frequent Subtree Sum
510. Inorder Successor in BST II
513. Find Bottom Left Tree Value
515. Find Largest Value in Each Tree Row
530. Minimum Absolute Difference in BST
538. Convert BST to Greater Tree
543. Diameter of Binary Tree
545. Boundary of Binary Tree
549. Binary Tree Longest Consecutive Sequence II
558. Logical OR of Two Binary Grids Represented as Quad-Trees
559. Maximum Depth of N-ary Tree
563. Binary Tree Tilt
572. Subtree of Another Tree
582. Kill Process
589. N-ary Tree Preorder Traversal
590. N-ary Tree Postorder Traversal
606. Construct String from Binary Tree
617. Merge Two Binary Trees
623. Add One Row to Tree
637. Average of Levels in Binary Tree
652. Find Duplicate Subtrees
653. Two Sum IV - Input is a BST
654. Maximum Binary Tree
655. Print Binary Tree
662. Maximum Width of Binary Tree
663. Equal Tree Partition
669. Trim a Binary Search Tree
671. Second Minimum Node In a Binary Tree
687. Longest Univalue Path
700. Search in a Binary Search Tree
701. Insert into a Binary Search Tree
742. Closest Leaf in a Binary Tree
776. Split BST
783. Minimum Distance Between BST Nodes
814. Binary Tree Pruning
834. Sum of Distances in Tree
863. All Nodes Distance K in Binary Tree
865. Smallest Subtree with all the Deepest Nodes
872. Leaf-Similar Trees
889. Construct Binary Tree from Preorder and Postorder Traversal
894. All Possible Full Binary Trees
897. Increasing Order Search Tree
919. Complete Binary Tree Inserter
938. Range Sum of BST
951. Flip Equivalent Binary Trees
958. Check Completeness of a Binary Tree
965. Univalued Binary Tree
968. Binary Tree Cameras
971. Flip Binary Tree To Match Preorder Traversal
979. Distribute Coins in Binary Tree
987. Vertical Order Traversal of a Binary Tree
988. Smallest String Starting From Leaf
993. Cousins in Binary Tree
998. Maximum Binary Tree II
1008. Construct Binary Search Tree from Preorder Traversal
1022. Sum of Root To Leaf Binary Numbers
1026. Maximum Difference Between Node and Ancestor
1028. Recover a Tree From Preorder Traversal
1038. Binary Search Tree to Greater Sum Tree
1080. Insufficient Nodes in Root to Leaf Paths
1110. Delete Nodes And Return Forest
1120. Maximum Average Subtree
1123. Lowest Common Ancestor of Deepest Leaves
1145. Binary Tree Coloring Game
1161. Maximum Level Sum of a Binary Tree
1214. Two Sum BSTs
1261. Find Elements in a Contaminated Binary Tree
1302. Deepest Leaves Sum
1305. All Elements in Two Binary Search Trees
1315. Sum of Nodes with Even-Valued Grandparent
1325. Delete Leaves With a Given Value
1339. Maximum Product of Splitted Binary Tree
1367. Linked List in Binary Tree
1372. Longest ZigZag Path in a Binary Tree
1376. Time Needed to Inform All Employees
1379. Find a Corresponding Node of a Binary Tree in a Clone of That Tree
1382. Balance a Binary Search Tree
1430. Check If a String Is a Valid Sequence from Root to Leaves Path in a Binary Tree
1448. Count Good Nodes in Binary Tree
1469. Find All The Lonely Nodes
1483. Kth Ancestor of a Tree Node
1485. Clone Binary Tree With Random Pointer
1490. Clone N-ary Tree
1506. Find Root of N-Ary Tree
1516. Move Sub-Tree of N-Ary Tree
1522. Diameter of N-Ary Tree
1530. Number of Good Leaf Nodes Pairs
1569. Number of Ways to Reorder Array to Get Same BST
1602. Find Nearest Right Node in Binary Tree
1609. Even Odd Tree
1612. Check If Two Expression Trees are Equivalent
1650. Lowest Common Ancestor of a Binary Tree III
1902. Depth of BST Given Insertion Order
1932. Merge BSTs to Create Single BST
2003. Smallest Missing Genetic Value in Each Subtree
2096. Step-By-Step Directions From a Binary Tree Node to Another
2196. Create Binary Tree From Descriptions
2236. Root Equals Sum of Children
2313. Minimum Flips in Binary Tree to Get Result
2331. Evaluate Boolean Binary Tree
2385. Amount of Time for Binary Tree to Be Infected
2421. Number of Good Paths
2445. Number of Nodes With Value One
2458. Height of Binary Tree After Subtree Removal Queries
2476. Closest Nodes Queries in a Binary Search Tree
2509. Cycle Length Queries in a Tree
2581. Count Number of Possible Root Nodes
2583. Kth Largest Sum in a Binary Tree
2641. Cousins in Binary Tree II
2673. Make Costs of Paths Equal in a Binary Tree
2689. Extract Kth Character From The Rope Tree
2709. Greatest Common Divisor Traversal
2773. Height of Special Binary Tree
2846. Minimum Edge Weight Equilibrium Queries in a Tree
2867. Count Valid Paths in a Tree
2973. Find Number of Coins to Place in Tree Nodes

Graph

133. Clone Graph
210. Course Schedule II
261. Graph Valid Tree
277. Find the Celebrity
310. Minimum Height Trees
323. Number of Connected Components in an Undirected Graph
332. Reconstruct Itinerary
490. The Maze
499. The Maze III
505. The Maze II
684. Redundant Connection
685. Redundant Connection II
743. Network Delay Time
753. Cracking the Safe
847. Shortest Path Visiting All Nodes
882. Reachable Nodes In Subdivided Graph
886. Possible Bipartition
913. Cat and Mouse
924. Minimize Malware Spread
928. Minimize Malware Spread II
1042. Flower Planting With No Adjacent
1059. All Paths from Source Lead to Destination
1129. Shortest Path with Alternating Colors
1135. Connecting Cities With Minimum Cost
1136. Parallel Courses
1168. Optimize Water Distribution in a Village
1203. Sort Items by Groups Respecting Dependencies
1245. Tree Diameter
1319. Number of Operations to Make Network Connected
1334. Find the City With the Smallest Number of Neighbors at a Threshold Distance
1377. Frog Position After T Seconds
1462. Course Schedule IV
1466. Reorder Routes to Make All Paths Lead to the City Zero
1489. Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
1494. Parallel Courses II
1514. Path with Maximum Probability
1548. The Most Similar Path in a Graph
1557. Minimum Number of Vertices to Reach All Nodes
1579. Remove Max Number of Edges to Keep Graph Fully Traversable
1584. Min Cost to Connect All Points
1615. Maximal Network Rank
1697. Checking Existence of Edge Length Limited Paths
1719. Number Of Ways To Reconstruct A Tree
1791. Find Center of Star Graph
1857. Largest Color Value in a Directed Graph
1971. Find if Path Exists in Graph
1976. Number of Ways to Arrive at Destination
2045. Second Minimum Time to Reach Destination
2050. Parallel Courses III
2065. Maximum Path Quality of a Graph
2077. Paths in Maze That Lead to Same Room
2092. Find All People With Secret
2097. Valid Arrangement of Pairs
2192. All Ancestors of a Node in a Directed Acyclic Graph
2204. Distance to a Cycle in Undirected Graph
2242. Maximum Score of a Node Sequence
2246. Longest Path With Different Adjacent Characters
2285. Maximum Total Importance of Roads
2316. Count Unreachable Pairs of Nodes in an Undirected Graph
2328. Number of Increasing Paths in a Grid
2359. Find Closest Node to Given Two Nodes
2374. Node With Highest Edge Score
2473. Minimum Cost to Buy Apples
2492. Minimum Score of a Path Between Two Cities
2497. Maximum Star Sum of a Graph
2508. Add Edges to Make Degrees of All Nodes Even
2639. Find the Width of Columns of a Grid
2642. Design Graph With Shortest Path Calculator
2685. Count the Number of Complete Components
2699. Modify Graph Edge Weights
2959. Number of Possible Sets of Closing Branches
3112. Minimum Time to Visit Disappearing Nodes
3123. Find Edges in Shortest Paths
3241. Time Taken to Mark All Nodes

Trie

386. Lexicographical Numbers
440. K-th Smallest in Lexicographical Order

Breadth-First Search

1197. Minimum Knight Moves

Bit Manipulation

136. Single Number
137. Single Number II
190. Reverse Bits
191. Number of 1 Bits
201. Bitwise AND of Numbers Range
338. Counting Bits
351. Android Unlock Patterns
397. Integer Replacement
401. Binary Watch
461. Hamming Distance
476. Number Complement
693. Binary Number with Alternating Bits
868. Binary Gap
1009. Complement of Base 10 Integer
1318. Minimum Flips to Make a OR b Equal to c
2220. Minimum Bit Flips to Convert Number
3007. Maximum Number That Sum of the Prices Is Less Than or Equal to K
3064. Guess the Number Using Bitwise Questions I
3094. Guess the Number Using Bitwise Questions II
3133. Minimum Array End
3141. Maximum Hamming Distances
3199. Count Triplets with Even XOR Set Bits I

Design

146. LRU Cache
155. Min Stack
170. Two Sum III - Data structure design
173. Binary Search Tree Iterator
208. Implement Trie (Prefix Tree)
211. Design Add and Search Words Data Structure
225. Implement Stack using Queues
232. Implement Queue using Stacks
244. Shortest Word Distance II
251. Flatten 2D Vector
271. Encode and Decode Strings
281. Zigzag Iterator
284. Peeking Iterator
288. Unique Word Abbreviation
295. Find Median from Data Stream
297. Serialize and Deserialize Binary Tree
303. Range Sum Query - Immutable
304. Range Sum Query 2D - Immutable
307. Range Sum Query - Mutable
308. Range Sum Query 2D - Mutable
341. Flatten Nested List Iterator
346. Moving Average from Data Stream
348. Design Tic-Tac-Toe
352. Data Stream as Disjoint Intervals
353. Design Snake Game
355. Design Twitter
359. Logger Rate Limiter
362. Design Hit Counter
379. Design Phone Directory
380. Insert Delete GetRandom O(1)
381. Insert Delete GetRandom O(1) - Duplicates allowed
382. Linked List Random Node
384. Shuffle an Array
398. Random Pick Index
428. Serialize and Deserialize N-ary Tree
431. Encode N-ary Tree to Binary Tree
432. All O`one Data Structure
449. Serialize and Deserialize BST
460. LFU Cache
478. Generate Random Point in a Circle
497. Random Point in Non-overlapping Rectangles
526. Beautiful Arrangement
528. Random Pick with Weight
535. Encode and Decode TinyURL
588. Design In-Memory File System
604. Design Compressed String Iterator
622. Design Circular Queue
631. Design Excel Sum Formula
635. Design Log Storage System
641. Design Circular Deque
642. Design Search Autocomplete System
676. Implement Magic Dictionary
677. Map Sum Pairs
703. Kth Largest Element in a Stream
705. Design HashSet
706. Design HashMap
707. Design Linked List
710. Random Pick with Blacklist
715. Range Module
716. Max Stack
729. My Calendar I
731. My Calendar II
732. My Calendar III
745. Prefix and Suffix Search
855. Exam Room
895. Maximum Frequency Stack
900. RLE Iterator
901. Online Stock Span
911. Online Election
919. Complete Binary Tree Inserter
933. Number of Recent Calls
981. Time Based Key-Value Store
1032. Stream of Characters
1146. Snapshot Array
1157. Online Majority Element In Subarray
1166. Design File System
1172. Dinner Plate Stacks
1206. Design Skiplist
1244. Design A Leaderboard
1286. Iterator for Combination
1348. Tweet Counts Per Frequency
1352. Product of the Last K Numbers
1357. Apply Discount Every n Orders
1381. Design a Stack With Increment Operation
1396. Design Underground System
1429. First Unique Number
1472. Design Browser History
1476. Subrectangle Queries
1483. Kth Ancestor of a Tree Node
1500. Design a File Sharing System
1570. Dot Product of Two Sparse Vectors
1586. Binary Search Tree Iterator II
1600. Throne Inheritance
1603. Design Parking System
1622. Fancy Sequence
1628. Design an Expression Tree With Evaluate Function
1656. Design an Ordered Stream
1670. Design Front Middle Back Queue
1756. Design Most Recently Used Queue
1797. Design Authentication Manager
1804. Implement Trie II (Prefix Tree)
1825. Finding MK Average
1845. Seat Reservation Manager
1865. Finding Pairs With a Certain Sum
2080. Range Frequency Queries
2227. Encrypt and Decrypt Strings
2286. Booking Concert Tickets in Groups
2336. Smallest Number in Infinite Set
2590. Design a Todo List
2642. Design Graph With Shortest Path Calculator
2671. Frequency Tracker
3242. Design Neighbor Sum Service

Binary Search

278. First Bad Version
374. Guess Number Higher or Lower
1802. Maximum Value at a Given Index in a Bounded Array

Interactive

157. Read N Characters Given Read4
158. Read N Characters Given read4 II - Call Multiple Times
277. Find the Celebrity
278. First Bad Version
374. Guess Number Higher or Lower
489. Robot Room Cleaner
702. Search in a Sorted Array of Unknown Size
843. Guess the Word
1095. Find in Mountain Array
1236. Web Crawler
1237. Find Positive Integer Solution for a Given Equation 1274. Number of Ships in a Rectangle
1428. Leftmost Column with at Least a One
1533. Find the Index of the Large Integer
1618. Maximum Font to Fit a Sentence in a Screen 1778. Shortest Path in a Hidden Grid 1810. Minimum Path Cost in a Hidden Grid 2728. Count Houses in a Circular Street 2782. Number of Unique Categories 2936. Number of Equal Numbers Blocks 3064. Guess the Number Using Bitwise Questions I
3094. Guess the Number Using Bitwise Questions II

Backtracking

52. N-Queens II
254. Factor Combinations
489. Robot Room Cleaner
967. Numbers With Same Consecutive Differences
1215. Stepping Numbers
1240. Tiling a Rectangle with the Fewest Squares

QuickSelect

215. Kth Largest Element in an Array
324. Wiggle Sort II
347. Top K Frequent Elements
973. K Closest Points to Origin 1738. Find Kth Largest XOR Coordinate Value 1985. Find the Kth Largest Integer in the Array 2343. Query Kth Smallest Trimmed Number
LCR 060. 前 K 个高频元素
LCR 076. 数组中的第 K 个最大元素 LCR 159. 库存管理 III 面试题 17.14. Smallest K LCCI

Iterator

173. Binary Search Tree Iterator
251. Flatten 2D Vector
281. Zigzag Iterator
284. Peeking Iterator
341. Flatten Nested List Iterator
604. Design Compressed String Iterator
900. RLE Iterator
1286. Iterator for Combination
1586. Binary Search Tree Iterator II LCR 055. 二叉搜索树迭代器

Probability & Statistics

470. Implement Rand10() Using Rand7()
808. Soup Servings
837. New 21 Game 1093. Statistics from a Large Sample
1227. Airplane Seat Assignment Probability
1230. Toss Strange Coins
1467. Probability of a Two Boxes Having The Same Number of Distinct Balls
LCP 11. 期望个数统计 LCR 185. 统计结果概率

Bucket Sort

164. Maximum Gap
220. Contains Duplicate III
347. Top K Frequent Elements
451. Sort Characters By Frequency
692. Top K Frequent Words
912. Sort an Array
LCR 057. 存在重复元素 III
LCR 060. 前 K 个高频元素

Suffix Array

  1. Longest Duplicate Substring
  2. Longest Repeating Substring
  3. Number of Distinct Substrings in a String
  4. Longest Common Subpath
  5. Number of Ways to Separate Numbers
  6. Sum of Scores of Built Strings

Counting Sort

274. H-Index
561. Array Partition
912. Sort an Array
1051. Height Checker
1122. Relative Sort Array
LCR 075. 数组的相对排序

Minimum Spanning Tree

1135. Connecting Cities With Minimum Cost
1168. Optimize Water Distribution in a Village
1489. Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
1584. Min Cost to Connect All Points
1724. Checking Existence of Edge Length Limited Paths II

Line Sweep

218. The Skyline Problem
391. Perfect Rectangle
850. Rectangle Area II
1851. Minimum Interval to Include Eac

Reservoir Sampling

382. Linked List Random Node
398. Random Pick Index
497. Random Point in Non-overlapping Rectangles
519. Random Flip Matrix

Strongly Connected Component

1489. Find Critical and Pseudo-Critical Edges in Minimum Spanning Tree
1568. Minimum Number of Days to Disconnect Island
2846. Minimum Edge Weight Equilibrium Queries in a Tree

Eulerian Circuit

332. Reconstruct Itinerary
753. Cracking the Safe
2097. Valid Arrangement of Pairs

Radix Sort

164. Maximum Gap
912. Sort an Array
2343. Query Kth Smallest Trimmed Number

Biconnected Component

1192. Critical Connections in a Network
LCP 54. 夺回据点

Rejection Sampling

470. Implement Rand10() Using Rand7()
478. Generate Random Point in a Circle

Database

175. Combine Two Tables
176. Second Highest Salary
177. Nth Highest Salary
178. Rank Scores
180. Consecutive Numbers
181. Employees Earning More Than Their Managers
182. Duplicate Emails
183. Customers Who Never Order
184. Department Highest Salary
185. Department Top Three Salaries
196. Delete Duplicate Emails
197. Rising Temperature
262. Trips and Users
511. Game Play Analysis I
512. Game Play Analysis II
534. Game Play Analysis III
550. Game Play Analysis IV
569. Median Employee Salary
570. Managers with at Least 5 Direct Reports
571. Find Median Given Frequency of Numbers
574. Winning Candidate
577. Employee Bonus
578. Get Highest Answer Rate Question
579. Find Cumulative Salary of an Employee
580. Count Student Number in Departments
584. Find Customer Referee
585. Investments in 2016
586. Customer Placing the Largest Number of Orders
595. Big Countries
596. Classes More Than 5 Students
597. Friend Requests I: Overall Acceptance Rate
601. Human Traffic of Stadium
602. Friend Requests II: Who Has the Most Friends
603. Consecutive Available Seats
607. Sales Person
608. Tree Node
610. Triangle Judgement
612. Shortest Distance in a Plane
613. Shortest Distance in a Line
614. Second Degree Follower
615. Average Salary: Departments VS Company
618. Students Report By Geography
619. Biggest Single Number
620. Not Boring Movies
626. Exchange Seats
627. Swap Salary
1045. Customers Who Bought All Products
1050. Actors and Directors Who Cooperated At Least Three Times
1068. Product Sales Analysis I
1069. Product Sales Analysis II
1070. Product Sales Analysis III
1075. Project Employees I
1076. Project Employees II
1077. Project Employees III
1082. Sales Analysis I
1083. Sales Analysis II
1084. Sales Analysis III
1097. Game Play Analysis V
1098. Unpopular Books
1107. New Users Daily Count
1112. Highest Grade For Each Student
1113. Reported Posts
1126. Active Businesses
1127. User Purchase Platform
1132. Reported Posts II
1141. User Activity for the Past 30 Days I
1142. User Activity for the Past 30 Days II
1148. Article Views I
1149. Article Views II
1158. Market Analysis I
1159. Market Analysis II
1164. Product Price at a Given Date
1173. Immediate Food Delivery I
1174. Immediate Food Delivery II
1179. Reformat Department Table
1193. Monthly Transactions I
1194. Tournament Winners
1204. Last Person to Fit in the Bus
1205. Monthly Transactions II
1211. Queries Quality and Percentage
1212. Team Scores in Football Tournament
1225. Report Contiguous Dates
1241. Number of Comments per Post
1251. Average Selling Price
1264. Page Recommendations
1270. All People Report to the Given Manager
1280. Students and Examinations
1285. Find the Start and End Number of Continuous Ranges
1294. Weather Type in Each Country
1303. Find the Team Size
1308. Running Total for Different Genders
1321. Restaurant Growth
1322. Ads Performance
1327. List the Products Ordered in a Period
1336. Number of Transactions per Visit
1341. Movie Rating
1350. Students With Invalid Departments
1355. Activity Participants
1364. Number of Trusted Contacts of a Customer
1369. Get the Second Most Recent Activity
1378. Replace Employee ID With The Unique Identifier
1384. Total Sales Amount by Year
1393. Capital Gain/Loss
1398. Customers Who Bought Products A and B but Not C 1407. Top Travellers
1412. Find the Quiet Students in All Exams
1421. NPV Queries
1435. Create a Session Bar Chart
1440. Evaluate Boolean Expression
1445. Apples & Oranges
1454. Active Users
1459. Rectangles Area
1468. Calculate Salaries
1479. Sales by Day of the Week
1484. Group Sold Products By The Date
1495. Friendly Movies Streamed Last Month
1501. Countries You Can Safely Invest In
1511. Customer Order Frequency
1517. Find Users With Valid E-Mails
1527. Patients With a Condition
1532. The Most Recent Three Orders
1543. Fix Product Name Format
1549. The Most Recent Orders for Each Product
1555. Bank Account Summary
1565. Unique Orders and Customers Per Month
1571. Warehouse Manager
1581. Customer Who Visited but Did Not Make Any Transactions
1587. Bank Account Summary II
1596. The Most Frequently Ordered Products for Each Customer
1607. Sellers With No Sales
1613. Find the Missing IDs
1623. All Valid Triplets That Can Represent a Country
1633. Percentage of Users Attended a Contest
1635. Hopper Company Queries I
1645. Hopper Company Queries II
1651. Hopper Company Queries III
1661. Average Time of Process per Machine
1667. Fix Names in a Table
1677. Product's Worth Over Invoices
1683. Invalid Tweets
1693. Daily Leads and Partners
1699. Number of Calls Between Two Persons
1709. Biggest Window Between Visits
1715. Count Apples and Oranges
1729. Find Followers Count
1731. The Number of Employees Which Report to Each Employee
1741. Find Total Time Spent by Each Employee
1747. Leetflex Banned Accounts
1757. Recyclable and Low Fat Products
1767. Find the Subtasks That Did Not Execute
1777. Product's Price for Each Store
1783. Grand Slam Titles
1795. Rearrange Products Table
1809. Ad-Free Sessions
1811. Find Interview Candidates
1821. Find Customers With Positive Revenue this Year
1831. Maximum Transaction Each Day
1841. League Statistics
1843. Suspicious Bank Accounts
1853. Convert Date Format
1867. Orders With Maximum Quantity Above Average
1873. Calculate Special Bonus
1875. Group Employees of the Same Salary
1890. The Latest Login in 2020
1892. Page Recommendations II
1907. Count Salary Categories
1917. Leetcodify Friends Recommendations
1919. Leetcodify Similar Friends
1934. Confirmation Rate
1939. Users That Actively Request Confirmation Messages
1949. Strong Friendship
1951. All the Pairs With the Maximum Number of Common Followers
1965. Employees With Missing Information
1972. First and Last Call On the Same Day
1978. Employees Whose Manager Left the Company
1988. Find Cutoff Score for Each School
1990. Count the Number of Experiments
2004. The Number of Seniors and Juniors to Join the Company
2010. The Number of Seniors and Juniors to Join the Company II
2020. Number of Accounts That Did Not Stream
2026. Low-Quality Problems
2041. Accepted Candidates From the Interviews
2051. The Category of Each Member in the Store
2066. Account Balance
2072. The Winner University
2082. The Number of Rich Customers
2084. Drop Type 1 Orders for Customers With Type 0 Orders
2112. The Airport With the Most Traffic
2118. Build the Equation
2142. The Number of Passengers in Each Bus I
2153. The Number of Passengers in Each Bus II
2159. Order Two Columns Independently
2173. Longest Winning Streak
2175. The Change in Global Rankings
2199. Finding the Topic of Each Post
2205. The Number of Users That Are Eligible for Discount
2228. Users With Two Purchases Within Seven Days
2230. The Users That Are Eligible for Discount
2238. Number of Times a Driver Was a Passenger
2252. Dynamic Pivoting of a Table
2253. Dynamic Unpivoting of a Table
2292. Products With Three or More Orders in Two Consecutive Years
2298. Tasks Count in the Weekend
2308. Arrange Table by Gender
2314. The First Day of the Maximum Recorded Degree in Each City
2324. Product Sales Analysis IV
2329. Product Sales Analysis V
2339. All the Matches of the League
2346. Compute the Rank as a Percentage
2356. Number of Unique Subjects Taught by Each Teacher
2362. Generate the Invoice
2372. Calculate the Influence of Each Salesperson
2377. Sort the Olympic Table
2388. Change Null Values in a Table to the Previous Value
2394. Employees With Deductions
2474. Customers With Strictly Increasing Purchases
2480. Form a Chemical Bond
2494. Merge Overlapping Events in the Same Hall
2504. Concatenate the Name and the Profession
2668. Find Latest Salaries
2669. Count Artist Occurrences On Spotify Ranking List
2686. Immediate Food Delivery III
2687. Bikes Last Time Used
2688. Find Active Users
2701. Consecutive Transactions with Increasing Amounts
2720. Popularity Percentage
2738. Count Occurrences in Text
2752. Customers with Maximum Number of Transactions on Consecutive Days
2783. Flight Occupancy and Waitlist Analysis
2793. Status of Flight Tickets
2820. Election Results
2837. Total Traveled Distance
2853. Highest Salaries Difference
2854. Rolling Average Steps
2893. Calculate Orders Within Each Interval
2922. Market Analysis III
2978. Symmetric Coordinates
2984. Find Peak Calling Hours for Each City
2985. Calculate Compressed Mean
2986. Find Third Transaction
2987. Find Expensive Cities
2988. Manager of the Largest Department
2989. Class Performance
2990. Loan Types
2991. Top Three Wineries
2993. Friday Purchases I
2994. Friday Purchases II
2995. Viewers Turned Streamers
3050. Pizza Toppings Cost Analysis
3051. Find Candidates for Data Scientist Position
3052. Maximize Items
3053. Classifying Triangles by Lengths
3054. Binary Tree Nodes
3055. Top Percentile Fraud
3056. Snaps Analysis
3057. Employees Project Allocation
3058. Friends With No Mutual Friends
3059. Find All Unique Email Domains
3060. User Activities within Time Bounds
3061. Calculate Trapping Rain Water
3087. Find Trending Hashtags
3089. Find Bursty Behavior
3103. Find Trending Hashtags II
3118. Friday Purchase III
3124. Find Longest Calls
3126. Server Utilization Time
3140. Consecutive Available Seats II
3150. Invalid Tweets II
3156. Employee Task Duration and Concurrent Tasks
3166. Calculate Parking Fees and Duration
3172. Second Day Verification
3182. Find Top Scoring Students
3188. Find Top Scoring Students II
3198. Find Cities in Each State
3204. Bitwise User Permissions Analysis
3214. Year on Year Growth Rate
3220. Odd and Even Transactions
3230. Customer Purchasing Behavior Analysis
3236. CEO Subordinate Hierarchy
3246. Premier League Table Ranking
3252. Premier League Table Ranking II
3262. Find Overlapping Shifts
3268. Find Overlapping Shifts II
3278. Find Candidates for Data Scientist Position II
3293. Calculate Product Final Price

Shell

192. Word Frequency
193. Valid Phone Numbers
194. Transpose File)
195. Tenth Line

Concurrency

1114. Print in Order
1115. Print FooBar Alternately
1116. Print Zero Even Odd
1117. Building H2O
1188. Design Bounded Blocking Queue
1195. Fizz Buzz Multithreaded
1226. The Dining Philosophers
1242. Web Crawler Multithreaded
1279. Traffic Light Controlled Intersection

Javascript

2618. Check if Object Instance of Class
2619. Array Prototype Last
2620. Counter
2621. Sleep
2622. Cache With Time Limit
2623. Memoize
2624. Snail Traversal
2625. Flatten Deeply Nested Array
2626. Array Reduce Transformation
2627. Debounce
2628. JSON Deep Equal
2629. Function Composition
2630. Memoize II
2631. Group By
2632. Curry
2633. Convert Object to JSON String
2634. Filter Elements from Array
2635. Apply Transform Over Each Element in Array
2636. Promise Pool
2637. Promise Time Limit
2648. Generate Fibonacci Sequence
2649. Nested Array Generator
2650. Design Cancellable Function
2665. Counter II
2666. Allow One Function Call
2667. Create Hello World Function
2675. Array of Objects to Matrix
2676. Throttle
2677. Chunk Array
2690. Infinite Method Object
2691. Immutability Helper
2692. Make Object Immutable
2693. Call Function with Custom Context
2694. Event Emitter
2695. Array Wrapper
2700. Differences Between Two Objects
2703. Return Length of Arguments Passed
2704. To Be Or Not To Be
2705. Compact Object
2715. Timeout Cancellation
2721. Execute Asynchronous Functions in Parallel
2722. Join Two Arrays by ID
2723. Add Two Promises
2724. Sort By
2725. Interval Cancellation
2726. Calculator with Method Chaining
2727. Is Object Empty
2754. Bind Function to Context
2755. Deep Merge of Two Objects
2756. Query Batching
2757. Generate Circular Array Values
2758. Next Day
2759. Convert JSON String to Object
2774. Array Upper Bound
2775. Undefined to Null
2776. Convert Callback Based Function to Promise Based Function
2777. Date Range Generator
2794. Create Object from Two Arrays
2795. Parallel Execution of Promises for Individual Results Retrieval
2796. Repeat String
2797. Partial Function with Placeholders
2803. Factorial Generator
2804. Array Prototype ForEach
2805. Custom Interval
2821. Delay the Resolution of Each Promise
2822. Inversion of Object
2823. Deep Object Filter

Pandas

176. Second Highest Salary
177. Nth Highest Salary
178. Rank Scores
183. Customers Who Never Order
184. Department Highest Salary
196. Delete Duplicate Emails
511. Game Play Analysis I
570. Managers with at Least 5 Direct Reports
586. Customer Placing the Largest Number of Orders
595. Big Countries
596. Classes More Than 5 Students
607. Sales Person
1050. Actors and Directors Who Cooperated At Least Three Times
1173. Immediate Food Delivery I
1148. Article Views I
1280. Students and Examinations
1322. Ads Performance
1378. Replace Employee ID With The Unique Identifier
1484. Group Sold Products By The Date
1517. Find Users With Valid E-Mails
1527. Patients With a Condition
1667. Fix Names in a Table
1683. Invalid Tweets
1693. Daily Leads and Partners
1741. Find Total Time Spent by Each Employee
1757. Recyclable and Low Fat Products
1795. Rearrange Products Table
1873. Calculate Special Bonus
1907. Count Salary Categories
2041. Accepted Candidates From the Interviews
2082. The Number of Rich Customers
2356. Number of Unique Subjects Taught by Each Teacher
2738. Count Occurrences in Text
2877. Create a DataFrame from List
2878. Get the Size of a DataFrame
2879. Display the First Three Rows
2880. Select Data
2881. Create a New Column
2882. Drop Duplicate Rows
2883. Drop Missing Data
2884. Modify Columns
2885. Rename Columns
2886. Change Data Type
2887. Fill Missing Data
2888. Reshape Data: Concatenate
2889. Reshape Data: Pivot
2890. Reshape Data: Melt
2891. Method Chaining

LCR

LCR 001. 两数相除
LCR 002. 二进制求和
LCR 003. 比特位计数
LCR 004. 只出现一次的数字 II
LCR 005. 最大单词长度乘积
LCR 006. 两数之和 II - 输入有序数组
LCR 007. 三数之和
LCR 008. 长度最小的子数组
LCR 009. 乘积小于 K 的子数组
LCR 010. 和为 K 的子数组
LCR 011. 连续数组
LCR 012. 寻找数组的中心下标
LCR 013. 二维区域和检索 - 矩阵不可变
LCR 014. 字符串的排列
LCR 015. 找到字符串中所有字母异位词
LCR 016. 无重复字符的最长子串
LCR 017. 最小覆盖子串
LCR 018. 验证回文串
LCR 019. 验证回文串 II
LCR 020. 回文子串
LCR 021. 删除链表的倒数第 N 个结点
LCR 022. 环形链表 II
LCR 023. 相交链表
LCR 024. 反转链表
LCR 025. 两数相加 II
LCR 026. 重排链表
LCR 027. 回文链表
LCR 028. 扁平化多级双向链表
LCR 029. 循环有序列表的插入
LCR 030. O(1) 时间插入、删除和获取随机元素
LCR 031. LRU 缓存
LCR 032. 有效的字母异位词
LCR 033. 字母异位词分组
LCR 034. 验证外星语词典
LCR 035. 最小时间差
LCR 036. 逆波兰表达式求值
LCR 037. 行星碰撞
LCR 038. 每日温度
LCR 039. 柱状图中最大的矩形
LCR 040. 最大矩形
LCR 041. 数据流中的移动平均值
LCR 042. 最近的请求次数
LCR 043. 完全二叉树插入器
LCR 044. 在每个树行中找最大值
LCR 045. 找树左下角的值
LCR 046. 二叉树的右视图
LCR 047. 二叉树剪枝
LCR 048. 二叉树的序列化与反序列化
LCR 049. 求根节点到叶节点数字之和
LCR 050. 路径总和 III
LCR 051. 二叉树中的最大路径和
LCR 052. 递增顺序搜索树
LCR 053. 二叉搜索树中的中序后继
LCR 054. 把二叉搜索树转换为累加树
LCR 055. 二叉搜索树迭代器
LCR 056. 两数之和 IV - 输入二叉搜索树
LCR 057. 存在重复元素 III
LCR 058. 我的日程安排表 I
LCR 059. 数据流中的第 K 大元素
LCR 060. 前 K 个高频元素
LCR 061. 查找和最小的 K 对数字
LCR 062. 实现 Trie (前缀树)
LCR 063. 单词替换
LCR 064. 实现一个魔法字典
LCR 065. 单词的压缩编码
LCR 066. 键值映射
LCR 067. 数组中两个数的最大异或值
LCR 068. 搜索插入位置
LCR 069. 山脉数组的峰顶索引
LCR 070. 有序数组中的单一元素
LCR 071. 按权重随机选择
LCR 072. x 的平方根
LCR 073. 爱吃香蕉的狒狒
LCR 074. 合并区间
LCR 075. 数组的相对排序
LCR 076. 数组中的第 K 个最大元素
LCR 077. 排序链表
LCR 078. 合并 K 个升序链表
LCR 079. 子集
LCR 080. 组合
LCR 081. 组合总和
LCR 082. 组合总和 II
LCR 083. 全排列
LCR 084. 全排列 II
LCR 085. 括号生成
LCR 086. 分割回文串
LCR 087. 复原 IP 地址
LCR 088. 使用最小花费爬楼梯
LCR 089. 打家劫舍
LCR 090. 打家劫舍 II
LCR 091. 粉刷房子
LCR 092. 将字符串翻转到单调递增
LCR 093. 最长的斐波那契子序列的长度
LCR 094. 分割回文串 II
LCR 095. 最长公共子序列
LCR 096. 交错字符串
LCR 097. 不同的子序列
LCR 098. 不同路径
LCR 099. 最小路径和
LCR 100. 三角形最小路径和
LCR 101. 分割等和子集
LCR 102. 目标和
LCR 103. 零钱兑换
LCR 104. 组合总和 Ⅳ
LCR 105. 岛屿的最大面积
LCR 106. 判断二分图
LCR 107. 01 矩阵
LCR 108. 单词接龙
LCR 109. 打开转盘锁
LCR 110. 所有可能的路径
LCR 111. 除法求值
LCR 112. 矩阵中的最长递增路径
LCR 113. 课程表 II
LCR 114. 火星词典
LCR 115. 序列重建
LCR 116. 省份数量
LCR 117. 相似字符串组
LCR 118. 冗余连接
LCR 119. 最长连续序列
LCR 120. 寻找文件副本
LCR 121. 寻找目标值 - 二维数组
LCR 122. 路径加密
LCR 123. 图书整理 I
LCR 124. 推理二叉树
LCR 125. 图书整理 II
LCR 126. 斐波那契数
LCR 127. 跳跃训练
LCR 128. 库存管理 I
LCR 129. 字母迷宫
LCR 130. 衣橱整理
LCR 131. 砍竹子 I
LCR 132. 砍竹子 II
LCR 133. 位 1 的个数
LCR 134. Pow(x, n)
LCR 135. 报数
LCR 136. 删除链表的节点
LCR 137. 模糊搜索验证
LCR 138. 有效数字
LCR 139. 训练计划 I
LCR 140. 训练计划 II
LCR 141. 训练计划 III
LCR 142. 训练计划 IV
LCR 143. 子结构判断
LCR 144. 翻转二叉树
LCR 145. 判断对称二叉树
LCR 146. 螺旋遍历二维数组
LCR 147. 最小栈
LCR 148. 验证图书取出顺序
LCR 149. 彩灯装饰记录 I
LCR 150. 彩灯装饰记录 II
LCR 151. 彩灯装饰记录 III
LCR 152. 验证二叉搜索树的后序遍历序列
LCR 153. 二叉树中和为目标值的路径
LCR 154. 复杂链表的复制
LCR 155. 将二叉搜索树转化为排序的双向链表
LCR 156. 序列化与反序列化二叉树
LCR 157. 套餐内商品的排列顺序
LCR 158. 库存管理 II
LCR 159. 库存管理 III
LCR 160. 数据流中的中位数
LCR 161. 连续天数的最高销售额
LCR 162. 数字 1 的个数
LCR 163. 找到第 k 位数字
LCR 164. 破解闯关密码
LCR 165. 解密数字
LCR 166. 珠宝的最高价值
LCR 167. 招式拆解 I
LCR 168. 丑数
LCR 169. 招式拆解 II
LCR 170. 交易逆序对的总数
LCR 171. 训练计划 V
LCR 172. 统计目标成绩的出现次数
LCR 173. 点名
LCR 174. 寻找二叉搜索树中的目标节点
LCR 175. 计算二叉树的深度
LCR 176. 判断是否为平衡二叉树
LCR 177. 撞色搭配
LCR 178. 训练计划 VI
LCR 179. 查找总价格为目标值的两个商品
LCR 180. 文件组合
LCR 182. 动态口令
LCR 181. 字符串中的单词反转
LCR 183. 望远镜中最高的海拔
LCR 184. 设计自助结算系统
LCR 185. 统计结果概率
LCR 186. 文物朝代判断
LCR 187. 破冰游戏
LCR 188. 买卖芯片的最佳时机
LCR 189. 设计机械累加器
LCR 190. 加密运算
LCR 191. 按规则计算统计结果
LCR 192. 把字符串转换成整数 (atoi)
LCR 193. 二叉搜索树的最近公共祖先
LCR 194. 二叉树的最近公共祖先

LCP

LCP 01. 猜数字
LCP 02. Deep Dark Fraction
LCP 10. 二叉树任务调度
LCP 24. 数字游戏
LCP 30. 魔塔游戏
LCP 39. 无人机方阵
LCP 40. 心算挑战
LCP 54. 夺回据点
LCP 61. 气温变化趋势

LCS

LCS 01. 下载插件
LCS 02. 完成一半题目
LCS 03. 主题空间

LCCI

面试题 01.01. Is Unique LCCI
面试题 01.02. Check Permutation LCCI
面试题 01.03. String to URL LCCI
面试题 01.04. Palindrome Permutation LCCI
面试题 01.05. One Away LCCI
面试题 01.06. Compress String LCCI