LeetCode Tags
Following is a list of relevant tags:
Adobe
Amazon
- 1062. Longest Repeating Substring
- 15. 3Sum
- 1832. Check if the Sentence Is Pangram
- 489. Robot Room Cleaner
Array
- 1. Two Sum
- 1039. Minimum Score Triangulation of Polygon
- 105. Construct Binary Tree from Preorder and Inorder Traversal
- 1091. Shortest Path in Binary Matrix
- 11. Container With Most Water
- 1101. The Earliest Moment When Everyone Become Friends
- 1150. Check If a Number Is Majority Element in a Sorted Array
- 1202. Smallest String With Swaps
- 121. Best Time to Buy and Sell Stock
- 122. Best Time to Buy and Sell Stock II
- 128. Longest Consecutive Sequence
- 130. Surrounded Regions
- 1331. Rank Transform of an Array
- 134. Gas Station
- 135. Candy
- 136. Single Number
- 139. Word Break
- 15. 3Sum
- 150. Evaluate Reverse Polish Notation
- 152. Maximum Product Subarray
- 153. Find Minimum in Rotated Sorted Array
- 1584. Min Cost to Connect All Points
- 16. 3Sum Closest
- 162. Find Peak Element
- 163. Missing Ranges
- 1631. Path With Minimum Effort
- 167. Two Sum II - Input Array Is Sorted
- 169. Majority Element
- 18. 4Sum
- 1823. Find the Winner of the Circular Game
- 1851. Minimum Interval to Include Each Query
- 188. Best Time to Buy and Sell Stock IV
- 1899. Merge Triplets to Form Target Triplet
- 198. House Robber
- 200. Number of Islands
- 2013. Detect Squares
- 202 Kth Smallest In Two Sorted Arrays (Lai)
- 202 Kth Smallest In Two Sorted Arrays (Lai)
- 2059. Minimum Operations to Convert Number
- 209. Minimum Size Subarray Sum
- 212 Word Search II
- 212. Word Search II
- 213. House Robber II
- 2148. Count Elements With Strictly Smaller and Greater Elements
- 2148. Count Elements With Strictly Smaller and Greater Elements
- 215 Kth Largest Element in an Array
- 215. Kth Largest Element in an Array
- 216. Combination Sum III
- 217. Contains Duplicate ✅
- 2246. Longest Path With Different Adjacent Characters
- 2271. Maximum White Tiles Covered by a Carpet
- 2275. Largest Combination With Bitwise AND Greater Than Zero
- 238. Product of Array Except Self ✅
- 239 Sliding Window Maximum
- 239. Sliding Window Maximum
- 247. Strobogrammatic Number II
- 252. Meeting Rooms
- 2540. Minimum Common Value
- 26. Remove Duplicates from Sorted Array
- 268 Missing Number
- 268. Missing Number
- 269. Alien Dictionary
- 27. Remove Element
- 271. Encode and Decode Strings
- 2812. Find the Safest Path in a Grid
- 286. Walls and Gates
- 287. Find the Duplicate Number
- 2996 Smallest Missing Integer Greater Than Sequential Prefix Sum
- 2997 Minimum Number of Operations to Make Array XOR Equal to K
- 300. Longest Increasing Subsequence
- 300. Longest Increasing Subsequence
- 3005. Count Elements With Maximum Frequency ✅
- 307. Range Sum Query - Mutable
- 309. Best Time to Buy and Sell Stock with Cooldown
- 31. Next Permutation
- 315 Count of Smaller Numbers After Self
- 315. Count of Smaller Numbers After Self
- 3217. Delete Nodes From Linked List Present in Array
- 3218. Minimum Cost for Cutting Cake I
- 3219. Minimum Cost for Cutting Cake II
- 322. Coin Change ❤️🔥
- 3224. Minimum Array Changes to Make Differences Equal
- 3225. Maximum Score From Grid Operations
- 33. Search in Rotated Sorted Array
- 34. Find First and Last Position of Element in Sorted Array
- 34. Find First and Last Position of Element in Sorted Array
- 346. Moving Average from Data Stream
- 347. Top K Frequent Elements
- 348. Design Tic-Tac-Toe
- 349. Intersection of Two Arrays
- 362. Design Hit Counter
- 377. Combination Sum IV
- 378. Kth Smallest Element in a Sorted Matrix
- 380. Insert Delete GetRandom O(1)
- 39. Combination Sum
- 399. Evaluate Division
- 4. Median of Two Sorted Arrays
- 40. Combination Sum II
- 41. First Missing Positive
- 410. Split Array Largest Sum
- 414. Third Maximum Number
- 417. Pacific Atlantic Water Flow
- 42. Trapping Rain Water
- 425. Word Squares
- 435. Non-overlapping Intervals
- 442. Find All Duplicates in an Array
- 45. Jump Game II
- 46. Permutations
- 48. Rotate Image
- 49 Group Anagrams
- 49. Group Anagrams
- 494. Target Sum
- 496 Next Greater Element I
- 496 Next Greater Element I
- 503 Next Greater Element II
- 503 Next Greater Element II
- 51. N-Queens
- 518. Coin Change II
- 54. Spiral Matrix
- 542. 01 Matrix
- 55. Jump Game
- 56. Merge Intervals
- 560 Subarray Sum Equals K
- 560 Subarray Sum Equals K
- 562. Longest Line of Consecutive One in Matrix
- 57. Insert Interval
- 621. Task Scheduler
- 64. Minimum Path Sum
- 66. Plus One
- 675. Cut Off Trees for Golf Event
- 695. Max Area of Island
- 704 Binary Search
- 704. Binary Search
- 713 Subarray Product Less Than K
- 713. Subarray Product Less Than K
- 720. Longest Word in Dictionary
- 733. Flood Fill
- 739. Daily Temperatures
- 74. Search a 2D Matrix
- 778. Swim in Rising Water
- 78. Subsets
- 79 Word Search
- 79. Word Search
- 80. Remove Duplicates from Sorted Array II
- 809. Expressive Words
- 819. Most Common Word
- 833. Find And Replace in String
- 84 Largest Rectangle in Histogram
- 84. Largest Rectangle in Histogram
- 846. Hand of Straights
- 849. Maximize Distance to Closest Person
- 853. Car Fleet
- 857. Minimum Cost to Hire K Workers
- 875. Koko Eating Bananas
- 88. Merge Sorted Array
- 90. Subsets II
- 904. Fruit Into Baskets
- 929. Unique Email Addresses
- 930. Binary Subarrays With Sum
- 937. Reorder Data in Log Files
- 939. Minimum Area Rectangle
- 973. K Closest Points to Origin
- 975. Odd Even Jump
- 994. Rotting Oranges
- ✅ 1046. Last Stone Weight
Backtracking
- 126. Word Ladder II
- 131 Palindrome Partitioning
- 131. Palindrome Partitioning131. Palindrome Partitioning
- 17. Letter Combinations of a Phone Number
- 212 Word Search II
- 212. Word Search II
- 216. Combination Sum III
- 22. Generate Parentheses
- 2375. Construct Smallest Number From DI String
- 351. Android Unlock Patterns
- 39. Combination Sum
- 40. Combination Sum II
- 425. Word Squares
- 46. Permutations
- 489. Robot Room Cleaner
- 494. Target Sum
- 51. N-Queens
- 681. Next Closest Time
- 681. Next Closest Time
- 77. Combinations
- 78. Subsets
- 79 Word Search
- 79. Word Search
- 797. All Paths From Source to Target
- 90. Subsets II
BeaconFire
Binary Indexed Tree
- 307. Range Sum Query - Mutable
- 315 Count of Smaller Numbers After Self
- 315. Count of Smaller Numbers After Self
Binary Search
- 1062. Longest Repeating Substring
- 1150. Check If a Number Is Majority Element in a Sorted Array
- 153. Find Minimum in Rotated Sorted Array
- 162. Find Peak Element
- 1631. Path With Minimum Effort
- 167. Two Sum II - Input Array Is Sorted
- 1851. Minimum Interval to Include Each Query
- 202 Kth Smallest In Two Sorted Arrays (Lai)
- 202 Kth Smallest In Two Sorted Arrays (Lai)
- 209. Minimum Size Subarray Sum
- 222. Count Complete Tree Nodes
- 2271. Maximum White Tiles Covered by a Carpet
- 2540. Minimum Common Value
- 268 Missing Number
- 268. Missing Number
- 2812. Find the Safest Path in a Grid
- 287. Find the Duplicate Number
- 300. Longest Increasing Subsequence
- 300. Longest Increasing Subsequence
- 315 Count of Smaller Numbers After Self
- 315. Count of Smaller Numbers After Self
- 3296. Minimum Number of Seconds to Make Mountain Height Zero
- 33. Search in Rotated Sorted Array
- 34. Find First and Last Position of Element in Sorted Array
- 34. Find First and Last Position of Element in Sorted Array
- 3419. Minimize the Maximum Edge Weight of Graph
- 349. Intersection of Two Arrays
- 362. Design Hit Counter
- 374 Guess Number Higher or Lower
- 374 Guess Number Higher or Lower
- 378. Kth Smallest Element in a Sorted Matrix
- 4. Median of Two Sorted Arrays
- 410. Split Array Largest Sum
- 704 Binary Search
- 704. Binary Search
- 74. Search a 2D Matrix
- 778. Swim in Rising Water
- 875. Koko Eating Bananas
- 981. Time Based Key-Value Store
Binary Search 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
- 703. Kth Largest Element in a Stream
- 98. Validate Binary Search Tree
Binary Tree
- 100. Same Tree
- 101. Symmetric Tree
- 102 Binary Tree Level Order Traversal
- 102. Binary Tree Level Order Traversal
- 103 Binary Tree Zigzag Level Order Traversal
- 103 Binary Tree Zigzag Level Order Traversal
- 104. Maximum Depth of Binary Tree
- 105. Construct Binary Tree from Preorder and Inorder Traversal
- 110. Balanced Binary Tree
- 116. Populating Next Right Pointers in Each Node
- 124. Binary Tree Maximum Path Sum
- 1302. Deepest Leaves Sum
- 1448. Count Good Nodes in Binary Tree
- 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
- 297. Serialize and Deserialize Binary Tree
- 337. House Robber III
- 513. Find Bottom Left Tree Value
- 543. Diameter of Binary Tree
- 572. Subtree of Another Tree
- 703. Kth Largest Element in a Stream
- 951. Flip Equivalent Binary Trees
- 968. Binary Tree Cameras
- 98. Validate Binary Search Tree
Bit Manipulation
- 136. Single Number
- 190. Reverse Bits
- 222. Count Complete Tree Nodes
- 2220. Minimum Bit Flips to Convert Number
- 2275. Largest Combination With Bitwise AND Greater Than Zero
- 268 Missing Number
- 268. Missing Number
- 287. Find the Duplicate Number
- 2997 Minimum Number of Operations to Make Array XOR Equal to K
- 3211. Generate Binary Strings Without Adjacent Zeros
- 3226. Number of Bit Changes to Make Two Integers Equal
- 3370. Smallest Number With All Set Bits
- 338. Counting Bits
- 351. Android Unlock Patterns
- 371. Sum of Two Integers
- 464 Can I Win
- 78. Subsets
- 90. Subsets II
Bit manipulation
Bitmask
Bloomberg
Brainteaser
Breadth-First Search
- 100. Same Tree
- 101. Symmetric Tree
- 102 Binary Tree Level Order Traversal
- 102. Binary Tree Level Order Traversal
- 103 Binary Tree Zigzag Level Order Traversal
- 103 Binary Tree Zigzag Level Order Traversal
- 104. Maximum Depth of Binary Tree
- 1091. Shortest Path in Binary Matrix
- 116. Populating Next Right Pointers in Each Node
- 1202. Smallest String With Swaps
- 126. Word Ladder II
- 127. Word Ladder
- 130. Surrounded Regions
- 1302. Deepest Leaves Sum
- 133. Clone Graph
- 1448. Count Good Nodes in Binary Tree
- 1631. Path With Minimum Effort
- 1971. Find if Path Exists in Graph
- 199. Binary Tree Right Side View
- 200. Number of Islands
- 2059. Minimum Operations to Convert Number
- 207. Course Schedule
- 210. Course Schedule II
- 226. Invert Binary Tree
- 261. Graph Valid Tree
- 269. Alien Dictionary
- 2812. Find the Safest Path in a Grid
- 286. Walls and Gates
- 297. Serialize and Deserialize Binary Tree
- 322. Coin Change ❤️🔥
- 323. Number of Connected Components in an Undirected Graph
- 399. Evaluate Division
- 417. Pacific Atlantic Water Flow
- 428. Serialize and Deserialize N-ary Tree
- 429. N-ary Tree Level Order Traversal
- 513. Find Bottom Left Tree Value
- 542. 01 Matrix
- 547. Number of Provinces
- 675. Cut Off Trees for Golf Event
- 684. Redundant Connection
- 694. Number of Distinct Islands
- 695. Max Area of Island
- 711. Number of Distinct Islands II
- 733. Flood Fill
- 743. Network Delay Time
- 778. Swim in Rising Water
- 787. Cheapest Flights Within K Stops
- 797. All Paths From Source to Target
- 994. Rotting Oranges
Bucket Sort
Citadel
Counting
- 1603. Design Parking System
- 169. Majority Element
- 2013. Detect Squares
- 2275. Largest Combination With Bitwise AND Greater Than Zero
- 3005. Count Elements With Maximum Frequency ✅
- 3228. Maximum Number of Operations to Move Ones to the End
- 3228. Maximum Number of Operations to Move Ones to the End
- 347. Top K Frequent Elements
- 387. First Unique Character in a String
- 621. Task Scheduler
- 819. Most Common Word
Cruise
Data Stream
- 295. Find Median from Data Stream
- 346. Moving Average from Data Stream
- 359. Logger Rate Limiter
- 362. Design Hit Counter
- 642. Design Search Autocomplete System
- 703. Kth Largest Element in a Stream
Database
- 1757. Recyclable and Low Fat Products
- 181. Employees Earning More Than Their Managers
- 184. Department Highest Salary
Depth-First Search
- 100. Same Tree
- 101. Symmetric Tree
- 104. Maximum Depth of Binary Tree
- 110. Balanced Binary Tree
- 116. Populating Next Right Pointers in Each Node
- 1202. Smallest String With Swaps
- 124. Binary Tree Maximum Path Sum
- 130. Surrounded Regions
- 1302. Deepest Leaves Sum
- 133. Clone Graph
- 1448. Count Good Nodes in Binary Tree
- 1522. Diameter of N-Ary Tree
- 1631. Path With Minimum Effort
- 1971. Find if Path Exists in Graph
- 199. Binary Tree Right Side View
- 200. Number of Islands
- 207. Course Schedule
- 210. Course Schedule II
- 211. Design Add and Search Words Data Structure
- 2246. Longest Path With Different Adjacent Characters
- 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
- 261. Graph Valid Tree
- 269. Alien Dictionary
- 297. Serialize and Deserialize Binary Tree
- 323. Number of Connected Components in an Undirected Graph
- 332. Reconstruct Itinerary
- 337. House Robber III
- 399. Evaluate Division
- 417. Pacific Atlantic Water Flow
- 428. Serialize and Deserialize N-ary Tree
- 513. Find Bottom Left Tree Value
- 543. Diameter of Binary Tree
- 547. Number of Provinces
- 572. Subtree of Another Tree
- 642. Design Search Autocomplete System
- 684. Redundant Connection
- 694. Number of Distinct Islands
- 695. Max Area of Island
- 711. Number of Distinct Islands II
- 733. Flood Fill
- 743. Network Delay Time
- 778. Swim in Rising Water
- 787. Cheapest Flights Within K Stops
- 797. All Paths From Source to Target
- 947. Most Stones Removed with Same Row or Column
- 951. Flip Equivalent Binary Trees
- 968. Binary Tree Cameras
- 98. Validate Binary Search Tree
Design
- 146 LRU Cache
- 146. LRU Cache
- 155. Min Stack
- 1603. Design Parking System
- 2013. Detect Squares
- 208. Implement Trie (Prefix Tree)
- 211. Design Add and Search Words Data Structure
- 271. Encode and Decode Strings
- 295. Find Median from Data Stream
- 297. Serialize and Deserialize Binary Tree
- 307. Range Sum Query - Mutable
- 346. Moving Average from Data Stream
- 348. Design Tic-Tac-Toe
- 355. Design Twitter
- 359. Logger Rate Limiter
- 362. Design Hit Counter
- 380. Insert Delete GetRandom O(1)
- 642. Design Search Autocomplete System
- 677. Map Sum Pairs
- 703. Kth Largest Element in a Stream
- 895. Maximum Frequency Stack
- 981. Time Based Key-Value Store
Dijkstra
Divide And Conquer
Divide and Conquer
- 105. Construct Binary Tree from Preorder and Inorder Traversal
- 169. Majority Element
- 190. Reverse Bits
- 215 Kth Largest Element in an Array
- 215. Kth Largest Element in an Array
- 23. Merge k Sorted Lists
- 315 Count of Smaller Numbers After Self
- 315. Count of Smaller Numbers After Self
- 4. Median of Two Sorted Arrays
- 973. K Closest Points to Origin
Doubly-Linked List
Dynamic Programming
- 1039. Minimum Score Triangulation of Polygon
- 1062. Longest Repeating Substring
- 1143. Longest Common Subsequence
- 121. Best Time to Buy and Sell Stock
- 1216. Valid Palindrome III
- 122. Best Time to Buy and Sell Stock II
- 124. Binary Tree Maximum Path Sum
- 131 Palindrome Partitioning
- 131. Palindrome Partitioning131. Palindrome Partitioning
- 139. Word Break
- 152. Maximum Product Subarray
- 188. Best Time to Buy and Sell Stock IV
- 198. House Robber
- 213. House Robber II
- 22. Generate Parentheses
- 2998 Minimum Number of Operations to Make X and Y Equal
- 2999 Count the Number of Powerful Integers
- 300. Longest Increasing Subsequence
- 300. Longest Increasing Subsequence
- 309. Best Time to Buy and Sell Stock with Cooldown
- 3218. Minimum Cost for Cutting Cake I
- 322. Coin Change ❤️🔥
- 3225. Maximum Score From Grid Operations
- 337. House Robber III
- 338. Counting Bits
- 351. Android Unlock Patterns
- 375 Guess Number Higher or Lower II
- 375 Guess Number Higher or Lower II
- 377. Combination Sum IV
- 410. Split Array Largest Sum
- 42. Trapping Rain Water
- 435. Non-overlapping Intervals
- 45. Jump Game II
- 464 Can I Win
- 464 Can I Win
- 494. Target Sum
- 5. Longest Palindromic Substring
- 516. Longest Palindromic Subsequence
- 518. Coin Change II
- 542. 01 Matrix
- 55. Jump Game
- 562. Longest Line of Consecutive One in Matrix
- 64. Minimum Path Sum
- 647. Palindromic Substrings
- 678. Valid Parenthesis String
- 70. Climbing Stairs
- 72. Edit Distance
- 787. Cheapest Flights Within K Stops
- 91. Decode Ways
- 940. Distinct Subsequences II
- 968. Binary Tree Cameras
- 97. Interleaving String
- 975. Odd Even Jump
Enumeration
Eulerian Circuit
Game Theory
- 3222. Find the Winning Player in Coin Game
- 3223. Minimum Length of String After Operations
- 3227. Vowels Game in a String
- 375 Guess Number Higher or Lower II
- 375 Guess Number Higher or Lower II
- 464 Can I Win
- 464 Can I Win
Geometry
Goldman Sachs
- 1062. Longest Repeating Substring
- 1832. Check if the Sentence Is Pangram
- 42. Trapping Rain Water
- 562. Longest Line of Consecutive One in Matrix
- 564. Find the Closest Palindrome
Goldman Sachs VO
Goldman SachsString
- 1062. Longest Repeating Substring
- 1631. Path With Minimum Effort
- 1832. Check if the Sentence Is Pangram
- 212. Word Search II
- 2220. Minimum Bit Flips to Convert Number
- 224. Basic Calculator
- 269. Alien Dictionary
- 39. Combination Sum
- 410. Split Array Largest Sum
- 42. Trapping Rain Water
- 425. Word Squares
- 482. License Key Formatting
- 489. Robot Room Cleaner
- 562. Longest Line of Consecutive One in Matrix
- 904. Fruit Into Baskets
- 929. Unique Email Addresses
Graph
- 1168. Optimize Water Distribution in a Village
- 133. Clone Graph
- 1584. Min Cost to Connect All Points
- 1971. Find if Path Exists in Graph
- 207. Course Schedule
- 210. Course Schedule II
- 2246. Longest Path With Different Adjacent Characters
- 261. Graph Valid Tree
- 269. Alien Dictionary
- 323. Number of Connected Components in an Undirected Graph
- 3310. Remove Methods From Project
- 332. Reconstruct Itinerary
- 399. Evaluate Division
- 547. Number of Provinces
- 684. Redundant Connection
- 743. Network Delay Time
- 787. Cheapest Flights Within K Stops
- 797. All Paths From Source to Target
- 947. Most Stones Removed with Same Row or Column
Greedy
- 11. Container With Most Water
- 122. Best Time to Buy and Sell Stock II
- 134. Gas Station
- 135. Candy
- 1899. Merge Triplets to Form Target Triplet
- 2271. Maximum White Tiles Covered by a Carpet
- 2375. Construct Smallest Number From DI String
- 3216. Lexicographically Smallest String After a Swap
- 3218. Minimum Cost for Cutting Cake I
- 3219. Minimum Cost for Cutting Cake II
- 3228. Maximum Number of Operations to Move Ones to the End
- 3228. Maximum Number of Operations to Move Ones to the End
- 3397. Maximum Number of Distinct Elements After Operations
- 3403. Find the Lexicographically Largest String From the Box I
- 410. Split Array Largest Sum
- 435. Non-overlapping Intervals
- 45. Jump Game II
- 55. Jump Game
- 621. Task Scheduler
- 678. Valid Parenthesis String
- 763. Partition Labels
- 846. Hand of Straights
- 857. Minimum Cost to Hire K Workers
Hash Function
- 1062. Longest Repeating Substring
- 572. Subtree of Another Tree
- 694. Number of Distinct Islands
- 711. Number of Distinct Islands II
Hash Table
- 1. Two Sum
- 105. Construct Binary Tree from Preorder and Inorder Traversal
- 1100 Find K-Length Substrings With No Repeated Characters
- 1100 Find K-Length Substrings With No Repeated Characters
- 12. Integer to Roman
- 1202. Smallest String With Swaps
- 126. Word Ladder II
- 127. Word Ladder
- 128. Longest Consecutive Sequence
- 133. Clone Graph
- 1331. Rank Transform of an Array
- 138. Copy List with Random Pointer
- 139. Word Break
- 141. Linked List Cycle
- 142. Linked List Cycle II
- 146 LRU Cache
- 146. LRU Cache
- 160. Intersection of Two Linked Lists
- 166. Fraction to Recurring Decimal
- 169. Majority Element
- 17. Letter Combinations of a Phone Number
- 1832. Check if the Sentence Is Pangram
- 2013. Detect Squares
- 202. Happy Number
- 205. Isomorphic Strings
- 208. Implement Trie (Prefix Tree)
- 217. Contains Duplicate ✅
- 2275. Largest Combination With Bitwise AND Greater Than Zero
- 242. Valid Anagram ✅
- 246. Strobogrammatic Number
- 2540. Minimum Common Value
- 268 Missing Number
- 268. Missing Number
- 2996 Smallest Missing Integer Greater Than Sequential Prefix Sum
- 3 Longest Substring Without Repeating Characters
- 3. Longest Substring Without Repeating Characters
- 3005. Count Elements With Maximum Frequency ✅
- 3217. Delete Nodes From Linked List Present in Array
- 3224. Minimum Array Changes to Make Differences Equal
- 347. Top K Frequent Elements
- 348. Design Tic-Tac-Toe
- 349. Intersection of Two Arrays
- 355. Design Twitter
- 359. Logger Rate Limiter
- 380. Insert Delete GetRandom O(1)
- 387. First Unique Character in a String
- 41. First Missing Positive
- 424. Longest Repeating Character Replacement
- 438 Find All Anagrams in a String
- 438 Find All Anagrams in a String
- 438 Find All Anagrams in a String
- 442. Find All Duplicates in an Array
- 49 Group Anagrams
- 49. Group Anagrams
- 496 Next Greater Element I
- 496 Next Greater Element I
- 560 Subarray Sum Equals K
- 560 Subarray Sum Equals K
- 567. Permutation in String
- 621. Task Scheduler
- 677. Map Sum Pairs
- 681. Next Closest Time
- 681. Next Closest Time
- 694. Number of Distinct Islands
- 711. Number of Distinct Islands II
- 720. Longest Word in Dictionary
- 76. Minimum Window Substring
- 763. Partition Labels
- 771. Jewels and Stones
- 819. Most Common Word
- 833. Find And Replace in String
- 846. Hand of Straights
- 895. Maximum Frequency Stack
- 904. Fruit Into Baskets
- 929. Unique Email Addresses
- 930. Binary Subarrays With Sum
- 939. Minimum Area Rectangle
- 947. Most Stones Removed with Same Row or Column
- 981. Time Based Key-Value Store
Heap (Priority Queue)
- 1168. Optimize Water Distribution in a Village
- 1631. Path With Minimum Effort
- 1851. Minimum Interval to Include Each Query
- 215 Kth Largest Element in an Array
- 215. Kth Largest Element in an Array
- 23. Merge k Sorted Lists
- 239 Sliding Window Maximum
- 239. Sliding Window Maximum
- 295. Find Median from Data Stream
- 347. Top K Frequent Elements
- 355. Design Twitter
- 378. Kth Smallest Element in a Sorted Matrix
- 621. Task Scheduler
- 642. Design Search Autocomplete System
- 675. Cut Off Trees for Golf Event
- 703. Kth Largest Element in a Stream
- 743. Network Delay Time
- 778. Swim in Rising Water
- 787. Cheapest Flights Within K Stops
- 857. Minimum Cost to Hire K Workers
- 973. K Closest Points to Origin
- ✅ 1046. Last Stone Weight
Interactive
Interview
Line Sweep
Linked List
- 116. Populating Next Right Pointers in Each Node
- 138. Copy List with Random Pointer
- 141. Linked List Cycle
- 142. Linked List Cycle II
- 143. Reorder List
- 146 LRU Cache
- 146. LRU Cache
- 160. Intersection of Two Linked Lists
- 19. Remove Nth Node From End of List ✅
- 2. Add Two Numbers
- 203 Remove Linked List Elements
- 203 Remove Linked List Elements
- 206. Reverse Linked List
- 21. Merge Two Sorted Lists ✅
- 23. Merge k Sorted Lists
- 25. Reverse Nodes in k-Group
- 3217. Delete Nodes From Linked List Present in Array
- 355. Design Twitter
Math
- 1185. Day of the Week
- 12. Integer to Roman
- 150. Evaluate Reverse Polish Notation
- 166. Fraction to Recurring Decimal
- 1823. Find the Winner of the Circular Game
- 2. Add Two Numbers
- 202. Happy Number
- 224. Basic Calculator
- 2485. Find the Pivot Integer
- 258. Add Digits
- 263. Ugly Number
- 268 Missing Number
- 268. Missing Number
- 273. Integer to English Words
- 2999 Count the Number of Powerful Integers
- 3222. Find the Winning Player in Coin Game
- 3223. Minimum Length of String After Operations
- 3227. Vowels Game in a String
- 371. Sum of Two Integers
- 375 Guess Number Higher or Lower II
- 375 Guess Number Higher or Lower II
- 380. Insert Delete GetRandom O(1)
- 43. Multiply Strings
- 464 Can I Win
- 464 Can I Win
- 48. Rotate Image
- 50. Pow(x, n)
- 556 Next Greater Element III
- 556 Next Greater Element III
- 564. Find the Closest Palindrome
- 66. Plus One
- 7. Reverse Integer
- 70. Climbing Stairs
- 772. Basic Calculator III
- 939. Minimum Area Rectangle
- 973. K Closest Points to Origin
Matrix
- 1091. Shortest Path in Binary Matrix
- 130. Surrounded Regions
- 1631. Path With Minimum Effort
- 200. Number of Islands
- 212 Word Search II
- 212. Word Search II
- 2812. Find the Safest Path in a Grid
- 286. Walls and Gates
- 3225. Maximum Score From Grid Operations
- 348. Design Tic-Tac-Toe
- 378. Kth Smallest Element in a Sorted Matrix
- 417. Pacific Atlantic Water Flow
- 48. Rotate Image
- 54. Spiral Matrix
- 542. 01 Matrix
- 562. Longest Line of Consecutive One in Matrix
- 64. Minimum Path Sum
- 675. Cut Off Trees for Golf Event
- 695. Max Area of Island
- 733. Flood Fill
- 74. Search a 2D Matrix
- 778. Swim in Rising Water
- 79 Word Search
- 79. Word Search
- 994. Rotting Oranges
Memoization
Merge Sort
- 23. Merge k Sorted Lists
- 315 Count of Smaller Numbers After Self
- 315. Count of Smaller Numbers After Self
Meta
Microsoft
Minimum Spanning Tree
Monotonic Queue
Monotonic Stack
- 42. Trapping Rain Water
- 496 Next Greater Element I
- 496 Next Greater Element I
- 503 Next Greater Element II
- 503 Next Greater Element II
- 739. Daily Temperatures
- 84 Largest Rectangle in Histogram
- 84. Largest Rectangle in Histogram
- 853. Car Fleet
- 975. Odd Even Jump
Number Theory
Ordered Set
- 315 Count of Smaller Numbers After Self
- 315. Count of Smaller Numbers After Self
- 895. Maximum Frequency Stack
- 975. Odd Even Jump
Prefix Sum
- 209. Minimum Size Subarray Sum
- 2271. Maximum White Tiles Covered by a Carpet
- 238. Product of Array Except Self ✅
- 2485. Find the Pivot Integer
- 3224. Minimum Array Changes to Make Differences Equal
- 3225. Maximum Score From Grid Operations
- 410. Split Array Largest Sum
- 560 Subarray Sum Equals K
- 560 Subarray Sum Equals K
- 930. Binary Subarrays With Sum
Queue
- 1823. Find the Winner of the Circular Game
- 239 Sliding Window Maximum
- 239. Sliding Window Maximum
- 346. Moving Average from Data Stream
- 362. Design Hit Counter
- 387. First Unique Character in a String
Quickselect
- 215 Kth Largest Element in an Array
- 215. Kth Largest Element in an Array
- 347. Top K Frequent Elements
- 973. K Closest Points to Origin
Randomized
Recursion
- 143. Reorder List
- 1823. Find the Winner of the Circular Game
- 2. Add Two Numbers
- 203 Remove Linked List Elements
- 203 Remove Linked List Elements
- 206. Reverse Linked List
- 21. Merge Two Sorted Lists ✅
- 247. Strobogrammatic Number II
- 25. Reverse Nodes in k-Group
- 273. Integer to English Words
- 3211. Generate Binary Strings Without Adjacent Zeros
- 394. Decode String
- 50. Pow(x, n)
- 772. Basic Calculator III
Remember
Rolling Hash
Segment Tree
- 307. Range Sum Query - Mutable
- 315 Count of Smaller Numbers After Self
- 315. Count of Smaller Numbers After Self
Shortest Path
Simulation
- 1603. Design Parking System
- 1823. Find the Winner of the Circular Game
- 258. Add Digits
- 3222. Find the Winning Player in Coin Game
- 3223. Minimum Length of String After Operations
- 348. Design Tic-Tac-Toe
- 43. Multiply Strings
- 54. Spiral Matrix
Sliding Window
- 1100 Find K-Length Substrings With No Repeated Characters
- 1100 Find K-Length Substrings With No Repeated Characters
- 209. Minimum Size Subarray Sum
- 239 Sliding Window Maximum
- 239. Sliding Window Maximum
- 3 Longest Substring Without Repeating Characters
- 3. Longest Substring Without Repeating Characters
- 424. Longest Repeating Character Replacement
- 438 Find All Anagrams in a String
- 438 Find All Anagrams in a String
- 438 Find All Anagrams in a String
- 567. Permutation in String
- 713 Subarray Product Less Than K
- 713. Subarray Product Less Than K
- 76. Minimum Window Substring
- 904. Fruit Into Baskets
- 930. Binary Subarrays With Sum
Sorting
- 1101. The Earliest Moment When Everyone Become Friends
- 1202. Smallest String With Swaps
- 1331. Rank Transform of an Array
- 15. 3Sum
- 16. 3Sum Closest
- 169. Majority Element
- 18. 4Sum
- 1851. Minimum Interval to Include Each Query
- 2148. Count Elements With Strictly Smaller and Greater Elements
- 2148. Count Elements With Strictly Smaller and Greater Elements
- 215 Kth Largest Element in an Array
- 215. Kth Largest Element in an Array
- 217. Contains Duplicate ✅
- 2271. Maximum White Tiles Covered by a Carpet
- 242. Valid Anagram ✅
- 252. Meeting Rooms
- 268 Missing Number
- 268. Missing Number
- 295. Find Median from Data Stream
- 2996 Smallest Missing Integer Greater Than Sequential Prefix Sum
- 3218. Minimum Cost for Cutting Cake I
- 3219. Minimum Cost for Cutting Cake II
- 347. Top K Frequent Elements
- 349. Intersection of Two Arrays
- 378. Kth Smallest Element in a Sorted Matrix
- 414. Third Maximum Number
- 435. Non-overlapping Intervals
- 49 Group Anagrams
- 49. Group Anagrams
- 56. Merge Intervals
- 621. Task Scheduler
- 642. Design Search Autocomplete System
- 720. Longest Word in Dictionary
- 833. Find And Replace in String
- 846. Hand of Straights
- 853. Car Fleet
- 857. Minimum Cost to Hire K Workers
- 88. Merge Sorted Array
- 937. Reorder Data in Log Files
- 939. Minimum Area Rectangle
- 973. K Closest Points to Origin
Stack
- 143. Reorder List
- 150. Evaluate Reverse Polish Notation
- 155. Min Stack
- 20. Valid Parentheses
- 224. Basic Calculator
- 2375. Construct Smallest Number From DI String
- 394. Decode String
- 42. Trapping Rain Water
- 496 Next Greater Element I
- 496 Next Greater Element I
- 503 Next Greater Element II
- 503 Next Greater Element II
- 678. Valid Parenthesis String
- 739. Daily Temperatures
- 772. Basic Calculator III
- 84 Largest Rectangle in Histogram
- 84. Largest Rectangle in Histogram
- 853. Car Fleet
- 895. Maximum Frequency Stack
- 975. Odd Even Jump
String
- 1062. Longest Repeating Substring
- 1100 Find K-Length Substrings With No Repeated Characters
- 1100 Find K-Length Substrings With No Repeated Characters
- 1143. Longest Common Subsequence
- 12. Integer to Roman
- 1202. Smallest String With Swaps
- 1216. Valid Palindrome III
- 125. Valid Palindrome
- 126. Word Ladder II
- 127. Word Ladder
- 131 Palindrome Partitioning
- 131. Palindrome Partitioning131. Palindrome Partitioning
- 139. Word Break
- 165. Compare Version Numbers
- 166. Fraction to Recurring Decimal
- 17. Letter Combinations of a Phone Number
- 1750. Minimum Length of String After Deleting Similar Ends
- 1832. Check if the Sentence Is Pangram
- 1957. Delete Characters to Make Fancy String
- 20. Valid Parentheses
- 205. Isomorphic Strings
- 208. Implement Trie (Prefix Tree)
- 211. Design Add and Search Words Data Structure
- 212 Word Search II
- 212. Word Search II
- 22. Generate Parentheses
- 224. Basic Calculator
- 2246. Longest Path With Different Adjacent Characters
- 2375. Construct Smallest Number From DI String
- 242. Valid Anagram ✅
- 246. Strobogrammatic Number
- 247. Strobogrammatic Number II
- 2490. Circular Sentence
- 269. Alien Dictionary
- 271. Encode and Decode Strings
- 273. Integer to English Words
- 28. Find the Index of the First Occurrence in a String
- 2914. Minimum Number of Changes to Make Binary String Beautiful
- 297. Serialize and Deserialize Binary Tree
- 2999 Count the Number of Powerful Integers
- 3 Longest Substring Without Repeating Characters
- 3. Longest Substring Without Repeating Characters
- 3210. Find the Encrypted String
- 3211. Generate Binary Strings Without Adjacent Zeros
- 3216. Lexicographically Smallest String After a Swap
- 3227. Vowels Game in a String
- 3228. Maximum Number of Operations to Move Ones to the End
- 3228. Maximum Number of Operations to Move Ones to the End
- 344. Reverse String
- 387. First Unique Character in a String
- 394. Decode String
- 399. Evaluate Division
- 424. Longest Repeating Character Replacement
- 425. Word Squares
- 428. Serialize and Deserialize N-ary Tree
- 43. Multiply Strings
- 438 Find All Anagrams in a String
- 438 Find All Anagrams in a String
- 438 Find All Anagrams in a String
- 482. License Key Formatting
- 49 Group Anagrams
- 49. Group Anagrams
- 5. Longest Palindromic Substring
- 516. Longest Palindromic Subsequence
- 556 Next Greater Element III
- 556 Next Greater Element III
- 564. Find the Closest Palindrome
- 567. Permutation in String
- 647. Palindromic Substrings
- 677. Map Sum Pairs
- 678. Valid Parenthesis String
- 681. Next Closest Time
- 681. Next Closest Time
- 72. Edit Distance
- 720. Longest Word in Dictionary
- 76. Minimum Window Substring
- 763. Partition Labels
- 771. Jewels and Stones
- 772. Basic Calculator III
- 8. String to Integer (atoi)
- 809. Expressive Words
- 819. Most Common Word
- 833. Find And Replace in String
- 91. Decode Ways
- 929. Unique Email Addresses
- 937. Reorder Data in Log Files
- 940. Distinct Subsequences II
- 97. Interleaving String
- 981. Time Based Key-Value Store
String Matching
Suffix Array
TikTok
- 1062. Longest Repeating Substring
- 489. Robot Room Cleaner
- 562. Longest Line of Consecutive One in Matrix
Topological Sort
- 207. Course Schedule
- 210. Course Schedule II
- 2246. Longest Path With Different Adjacent Characters
- 269. Alien Dictionary
Tree
- 100. Same Tree
- 101. Symmetric Tree
- 102 Binary Tree Level Order Traversal
- 102. Binary Tree Level Order Traversal
- 103 Binary Tree Zigzag Level Order Traversal
- 103 Binary Tree Zigzag Level Order Traversal
- 104. Maximum Depth of Binary Tree
- 105. Construct Binary Tree from Preorder and Inorder Traversal
- 110. Balanced Binary Tree
- 116. Populating Next Right Pointers in Each Node
- 124. Binary Tree Maximum Path Sum
- 1302. Deepest Leaves Sum
- 1448. Count Good Nodes in Binary Tree
- 1522. Diameter of N-Ary Tree
- 199. Binary Tree Right Side View
- 222. Count Complete Tree Nodes
- 2246. Longest Path With Different Adjacent Characters
- 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
- 297. Serialize and Deserialize Binary Tree
- 337. House Robber III
- 428. Serialize and Deserialize N-ary Tree
- 429. N-ary Tree Level Order Traversal
- 513. Find Bottom Left Tree Value
- 543. Diameter of Binary Tree
- 572. Subtree of Another Tree
- 703. Kth Largest Element in a Stream
- 951. Flip Equivalent Binary Trees
- 968. Binary Tree Cameras
- 98. Validate Binary Search Tree
Trie
- 139. Word Break
- 208. Implement Trie (Prefix Tree)
- 211. Design Add and Search Words Data Structure
- 212 Word Search II
- 212. Word Search II
- 425. Word Squares
- 642. Design Search Autocomplete System
- 677. Map Sum Pairs
- 720. Longest Word in Dictionary
Two Pointers
- 11. Container With Most Water
- 125. Valid Palindrome
- 141. Linked List Cycle
- 142. Linked List Cycle II
- 143. Reorder List
- 15. 3Sum
- 16. 3Sum Closest
- 160. Intersection of Two Linked Lists
- 165. Compare Version Numbers
- 167. Two Sum II - Input Array Is Sorted
- 1750. Minimum Length of String After Deleting Similar Ends
- 18. 4Sum
- 19. Remove Nth Node From End of List ✅
- 202. Happy Number
- 246. Strobogrammatic Number
- 2540. Minimum Common Value
- 26. Remove Duplicates from Sorted Array
- 27. Remove Element
- 28. Find the Index of the First Occurrence in a String
- 287. Find the Duplicate Number
- 295. Find Median from Data Stream
- 31. Next Permutation
- 344. Reverse String
- 349. Intersection of Two Arrays
- 42. Trapping Rain Water
- 5. Longest Palindromic Substring
- 556 Next Greater Element III
- 556 Next Greater Element III
- 567. Permutation in String
- 647. Palindromic Substrings
- 763. Partition Labels
- 80. Remove Duplicates from Sorted Array II
- 809. Expressive Words
- 88. Merge Sorted Array
Union Find
- 1101. The Earliest Moment When Everyone Become Friends
- 1168. Optimize Water Distribution in a Village
- 1202. Smallest String With Swaps
- 128. Longest Consecutive Sequence
- 130. Surrounded Regions
- 1584. Min Cost to Connect All Points
- 1631. Path With Minimum Effort
- 1971. Find if Path Exists in Graph
- 200. Number of Islands
- 261. Graph Valid Tree
- 2812. Find the Safest Path in a Grid
- 323. Number of Connected Components in an Undirected Graph
- 399. Evaluate Division
- 547. Number of Provinces
- 684. Redundant Connection
- 694. Number of Distinct Islands
- 695. Max Area of Island
- 711. Number of Distinct Islands II
- 778. Swim in Rising Water
- 947. Most Stones Removed with Same Row or Column