- Reorganize String (Roblox)
- Task Scheduler (Roblox, Snowflake)
- Top K Frequent Words (Adobe)
- Top K Frequent Elements (Adobe, Bloomberg)
- Maximum Number of Events That Can Be Attended (Snowflake)
- Find K Pairs with Smallest Sums (Linkedin, Google)
- Last Stone Weight (Nvidia)
- Find Median from Data Stream (Snowflake)
- Merge k Sorted Lists (Bloomberg, Snowflake, Nvidia, Microsoft)
- Stock Price Fluctuation (Google)
- Meeting Rooms III
Prefix Sum
- Subarray Product Less Than K (Airbnb)
- Max Consecutive Ones III (Microsoft, Expedia)
- Subarrays with K Different Integers (Expedia)
- Range Sum Query 2D - Immutable (Snowflake)
- Subarray Sum Equals K (Bloomberg)
- Product of Array Except Self (Bloomberg, Microsoft)
- Meeting Rooms II (Microsoft)
Trie
- Add and Search Word - Data structure design (Docusign, LinkedIn, Snowflake, Rubrik, Tiktok)
- Longest Common Prefix (Bloomberg)
- Find the Length of the Longest Common Prefix (Databricks)
- Implement Trie (Prefix Tree) (Snowflake)
- Design In-Memory File System (Snowflake)
- Remove Sub-Folders (Snowflake, Google)
- Search Suggestions System (Docusign, Amazon)
- Word Search II (Microsoft, Google, Airbnb)
Stack
- Basic Calculator II (Tesla)
- Max Stack (Linkedin)
- Nested List Weight Sum II (Linkedin)
- Valid Parentheses (Nvidia, Expedia)
- Evaluate Reverse Polish Notation (Microsoft)
- Basic Calculator (Microsoft)
- Valid Parentheses (Microsoft)
- Longest Valid Parentheses (Tiktok)
- Maximal Rectangle (Tiktok)
- Largest Rectangle in Histogram (Microsoft)
- Simplify Path (Snowflake, Tiktok)
- Remove Duplicate Letters (Expedia)
- Number of Visible People in a Queue (Expedia)
- Minimum Number of Swaps to Make the String Balanced (Expedia)
- Sum of Subarray Ranges (Tiktok)
Queue
- Design Circular Queue (Tesla, Cloudflare)
- Design Hit Counter (Snowflake, Cloudflare, Databricks)
- Longest Continuous Subarray With Absolute Diff Less Than or Equal to Limit (Google)
Common Mistakes
- Design Circular Queue (Tesla, Cloudflare)
Hash
- First Missing Positive (Tesla)
- Missing Number (Meta, Microsoft, Bloomberg)
Sort
- Kth Largest Element in an Array (Microsoft)
Sliding Window
- Max Consecutive Ones III (SAP, Salesforce, LinkedIn, Meta, Google)
- Longest Repeating Character Replacement (Adobe, Amazon, Bytedance, Bloomberg)
- Maximum Number of Occurrences of a Substring (Hubspot, Salesforce)
- Longest Substring with At Most Two Distinct Characters (Ebay, Google, Tiktok)
- Longest Substring with At Most K Distinct Characters (Microsoft)
- Subarray Product Less Than K (Paypal, Oracle, Salesforce)
- Smallest Range Covering Elements from K Lists (Lyft, Databricks)
- Number of Subarrays of Size K and Average Greater than or Equal to Threshold (LinkedIn)