# 0442 | Find All Duplicates in an Array | View | Medium ||| 1437 | Check If All 1's Are at Least Length K Places Away | View | Medium | 0706 | Design Hash Map | View | Easy ||| 0705 | Design Hash Set | View | Easy ||| 1475 | Final Prices With a Special Discount in a Shop | View | Easy ||| 1277 | Count Square Submatrices with All Ones | View | Medium ||| 1475 | Final Prices With a Special Discount in a Shop | View | Easy ||| 0287 | Find the Duplicate Number | View | Medium ||| 1481 | Least Number of Unique Integers after K Removals | View | Medium ||| 0004 | Median of Two Sorted Arrays | View | Hard ||| 0918 | Maximum Sum Circular Subarray | View | Medium ||| 0496 | Next Greater Element I | View | Easy ||| 0503 | Next Greater Element II | View | Medium ||| 0556 | Next Greater Element III | View | Medium ||| 1338 | Reduce Array Size to The Half | View | Medium ||| 0905 | Sort Array By Parity | View | Easy ||| 0922 | Sort Array By Parity II | View | Easy ||| 1476 | Subrectangle Queries | View | Medium ||| 1471 | The k Strongest Values in an Array | View | Medium ||| 0941 | Valid Mountain Array | View | Medium |||
ID | Title | Solution | Difficulty | Similar Questions |
---|---|---|---|---|
#0102 | Binary Tree Level Order Traversal | View | Medium | Zigzag Level Traversal, Level Order Traversal II, Vertical Order Traversal, N-ary Level Order Traversal |
#0126 | Word Ladder II | View | Hard | Word Ladder |
#0127 | Word Ladder | View | Medium | Word Ladder II, Minimum Genetic Mutation |
#0200 | Number of Islands | View | Medium | Surrounded Regions, Walls and Gates, Number of Islands II, Number of Connected Components in an Undirected Graph, Number of Distinct Islands, Max Area of Island |
#0286 | Walls and Gates | View | Medium | Surrounded Regions, Number of Islands, Shortest Distance from All Buildings, Robot Room Cleaner, Rotting Oranges |
#0433 | Minimum Genetic Mutation | View | Medium | Word Ladder |
#0505 | The Maze II | View | Medium | The Maze, The Maze III |
#0515 | Find Largest Value in Each Tree Row | View | Medium | |
#0733 | Flood Fill | View | Easy | Island Perimeter |
#0818 | Race Car | View | Hard | |
#0994 | Rotting Oranges | View | Medium | Walls and Gates |
1482 | Minimum Number of Days to Make m Bouquets | View | Medium ||| 1300 | Sum of Mutated Array Closest to Target | View | Medium |||
ID | Title | Solution | Difficulty | Similar Questions |
---|---|---|---|---|
#0037 | Sudoku Solver | View | Hard | Valid Sudoku, Unique Paths III |
#0130 | Surrounded Regions | View | Medium | Number of Islands, Walls and Gates |
#0200 | Number of Islands | View | Medium | Surrounded Regions, Walls and Gates, Number of Islands II, Number of Connected Components in an Undirected Graph, Number of Distinct Islands, Max Area of Island |
#0490 | The Maze | View | Medium | The Maze II, The Maze III |
#0529 | Minesweeper | View | Medium | |
1020 | Number of Enclaves | View | Medium |
ID | Title | Solution | Difficulty | Similar Questions |
---|---|---|---|---|
#0315 | Count of Smaller Numbers After Self | View | Hard | Count of Range Sum, Queue Reconstruction by Height, Reverse Pairs, How Many Numbers Are Smaller Than the Current Number |
#0327 | Count of Range Sum | View | Hard | Count of Smaller Numbers After Self, Reverse Pairs |
#0493 | Reverse Pairs | View | Hard | Count of Smaller Numbers After Self, Count of Range Sum |
ID | Title | Solution | Difficulty | Similar Questions |
---|---|---|---|---|
#0012 | Integer to Roman | View | Medium | Roman to Integer, Integer to English Words |
#0045 | Jump Game II | View | Hard | Jump Game, Jump Game III |
#0055 | Jump Game | View | Medium | Jump Game II, Jump Game III |
#0121 | Best Time to Buy and Sell Stock | View | Easy | Maximum Subarray, Best Time to Buy and Sell Stock II, Best Time to Buy and Sell Stock III, Best Time to Buy and Sell Stock IV, Best Time to Buy and Sell Stock with Cooldown |
#0122 | Best Time to Buy and Sell Stock II | View | Easy | |
#0455 | Assign Cookies | View | Easy | |
#0860 | Lemonade Change | View | Easy | Best Time to Buy and Sell Stock, Best Time to Buy and Sell Stock III, Best Time to Buy and Sell Stock IV, Best Time to Buy and Sell Stock with Cooldown, Best Time to Buy and Sell Stock with Transaction Fee |
#0874 | Walking Robot Simulation | View | Easy |
ID | Title | Solution | Difficulty | Similar Questions |
---|---|---|---|---|
#0036 | Valid Sudoku | View | Medium | Sudoku Solver |
#0049 | Group Anagrams | View | Medium | Valid Anagram, Group Shifted Strings |
#0242 | Valid Anagram | View | Easy | Group Anagrams, Palindrome Permutation, Find All Anagrams in a String |
ID | Title | Solution | Difficulty | Similar Questions |
---|---|---|---|---|
#0023 | Merge k Sorted Lists | View | Hard | Merge Two Sorted Lists, Ugly Number II |
#0621 | Task Scheduler | View | Medium | Rearrange String k Distance Apart, Reorganize String |
#0675 | Cut Off Trees for Golf Event | View | Hard | |
#1244 | Design A Leaderboard | View | Meidum |
ID | Title | Solution | Difficulty | Similar Questions |
---|---|---|---|---|
#0017 | Letter Combinations of a Phone Number | View | Medium | Generate Parentheses, Combination Sum, Binary Watch |
#0022 | Generate Parentheses | View | Medium | Letter Combinations of a Phone Number, Valid Parentheses |
#0050 | Pow(x, n) | View | Medium | Sqrt(x), Super Pow |
#0079 | Word Search | View | Medium | Word Search II |
# | Title | Solution | Difficulty | Similar Questions |
---|---|---|---|---|
#0076 | Minimum Window Substring | View | Hard | Substring with Concatenation of All Words, Minimum Size Subarray Sum, Sliding Window Maximum, Permutation in String, Smallest Range Covering Elements from K Lists, Minimum Window Subsequence |
#0713 | Subarray Product Less Than K | View | Medium | Maximum Product Subarray, Maximum Size Subarray Sum Equals k, Subarray Sum Equals K, Two Sum Less Than K |
#1004 | Max Consecutive Ones III | View | Medium | Longest Substring with At Most K Distinct Characters, Longest Repeating Character Replacement, Max Consecutive Ones, Max Consecutive Ones II |
#1248 | Count Number of Nice Subarrays | View | Medium | |
0904 | Fruit Into Baskets | View | Medium | |
1052 | Grumpy Bookstore Owner | View | Medium | |
1358 | Number of Substrings Containing All Three Characters | View | Medium | |
1234 | Replace the Substring for Balanced String | View | Medium |
ID | Title | Solution | Difficulty | Similar Questions |
---|---|---|---|---|
#0056 | Merge Intervals | View | Medium | Insert Interval, Meeting Rooms, Meeting Rooms II, Teemo Attacking, Add Bold Tag in String, Range Module, Employee Free Time, Partition Labels, Interval List Intersections |
#0207 | Course Schedule | View | Medium | Course Schedule II, Graph Valid Tree, Minimum Height Trees, Course Schedule III |
#0210 | Course Schedule II | View | Medium | Course Schedule, Alien Dictionary, Minimum Height Trees, Sequence Reconstruction, Course Schedule III |
#0215 | Kth Largest Element in an Array | View | Medium | Wiggle Sort II, Top K Frequent Elements, Third Maximum Number, Kth Largest Element in a Stream, K Closest Points to Origin |
#1122 | Relative Sort Array | View | Easy |
ID | Title | Solution | Difficulty | Similar Questions |
---|---|---|---|---|
#0020 | Valid Parentheses | View | Easy | Generate Parentheses, Longest Valid Parentheses, Remove Invalid Parentheses, Check If Word Is Valid After Substitutions |
#0032 | Longest Valid Parentheses | View | Hard | Valid Parentheses |
#0042 | Trapping Rain Water | View | Hard | Container With Most Water, Product of Array Except Self, Trapping Rain Water II, Pour Water |
1381 | Design a Stack With Increment Operation | View | Medium | |
0146 | LRU Cache | View | Medium | |
0232 | Implement Queue using Stacks | View | Easy | |
0155 | Min Stack | View | Easy |
ID | Title | Solution | Difficulty | Similar Questions |
---|---|---|---|---|
#0208 | Implement Trie (Prefix Tree) | View | Medium | Add and Search Word - Data structure design, Design Search Autocomplete System, Replace Words, Implement Magic Dictionary |
#0212 | Word Search II | View | Hard | Word Search, Unique Paths III |
ID | Title | Solution | Difficulty | Similar Questions |
---|---|---|---|---|
#0130 | Surrounded Regions | View | Medium | Number of Islands, Walls and Gates |
#0200 | Number of Islands | View | Medium | Surrounded Regions, Walls and Gates, Number of Islands II, Number of Connected Components in an Undirected Graph, Number of Distinct Islands, Max Area of Island |
#0547 | Friend Circles | View | Medium | Number of Connected Components in an Undirected Graph, Robot Return to Origin, Sentence Similarity, Sentence Similarity II, The Earliest Moment When Everyone Become Friends |
1319 | Number of Operations to Make Network Connected | View | Medium | |
0684 | Redundant Connection | View | Medium | |
0990 | Satisfiability of Equality Equations | View | Medium |