educative.io

Grokking the Coding Interview: Patterns for Coding Questions (Design Gurus)


Pattern: Tree Depth First Search - Solution Review: Problem Challenge 1 Have questions about Solution Review: Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6157673714155520). Pattern: Two Heaps - Sliding Window Median (hard) Have questions about Sliding Window Median (hard)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6296665940033536). Pattern : 0/1 Knapsack (Dynamic Programming) - Solution Review: Problem Challenge 2 Have questions about Solution Review: Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6711007000920064). Introduction - Course Overview Have questions about Course Overview? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5319226778714112). Pattern: Modified Binary Search - Search in Rotated Array (medium) Have questions about Pattern: Modified Binary Search - Search in Rotated Array (medium)? Go for it! Pattern: Topological Sort (Graph) - Problem Challenge 2 Have questions about Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6545337986580480). Pattern: Modified Binary Search - Problem Challenge 3 Have questions about Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6063579138621440). Pattern: Two Pointers - Problem Challenge 3 Have questions about Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5312042204397568). Pattern: Topological Sort (Graph) - Topological Sort (medium) Have questions about Topological Sort (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6010387461832704). Pattern: Tree Breadth First Search - Introduction Have questions about Introduction? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6191934605361152). Pattern: Topological Sort (Graph) - Tasks Scheduling (medium) Have questions about Tasks Scheduling (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5590021564268544). Pattern: Tree Depth First Search - Introduction Have questions about Introduction? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5507327153143808). Pattern: Sliding Window - Problem Challenge 2 Have questions about Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6005911854252032). Pattern: Two Pointers - Problem Challenge 2 Have questions about Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6265122324480000). Pattern: Tree Breadth First Search - Problem Challenge 1 Have questions about Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5722467590995968). Pattern: Merge Intervals - Problem Challenge 1 Have questions about Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5710239819104256). Pattern: Merge Intervals - Merge Intervals (medium) Have questions about Merge Intervals (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5652017242439680). Pattern: Fast & Slow pointers - Start of LinkedList Cycle (medium) Have questions about Start of LinkedList Cycle (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6360082440781824). Pattern: Two Heaps - Introduction Have questions about Introduction? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5244149726969856). Pattern: Two Heaps - Maximize Capital (hard) Have questions about Maximize Capital (hard)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4891120511221760). Pattern: Two Pointers - Problem Challenge 4 Have questions about Problem Challenge 4? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5619753626370048). Pattern: Top 'K' Elements - Sum of Elements (medium) Have questions about Sum of Elements (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5648269346603008). Pattern: Merge Intervals - Solution Review: Problem Challenge 3 Have questions about Solution Review: Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5118951610646528). Pattern: Tree Breadth First Search - Zigzag Traversal (medium) Have questions about Zigzag Traversal (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5706163895140352). Pattern: Tree Breadth First Search - Problem Challenge 2 Have questions about Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5682747733442560). Pattern: Sliding Window - No-repeat Substring (hard) Have questions about No-repeat Substring (hard)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5485010335301632). Pattern: Tree Depth First Search - Sum of Path Numbers (medium) Have questions about Sum of Path Numbers (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5675214360805376). Pattern: Modified Binary Search - Search in a Sorted Infinite Array (medium) Have questions about Search in a Sorted Infinite Array (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6613137585340416). Pattern: Modified Binary Search - Problem Challenge 1 Have questions about Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5114837707259904). Pattern: Top 'K' Elements - Frequency Sort (medium) Have questions about Frequency Sort (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5630239073894400). Pattern: Top 'K' Elements - Kth Largest Number in a Stream (medium) Have questions about Kth Largest Number in a Stream (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5708235679989760). Pattern: Top 'K' Elements - Introduction Have questions about Introduction? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4666613074755584). Pattern: Sliding Window - Problem Challenge 4 Have questions about Problem Challenge 4? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4559641746866176). Pattern: Topological Sort (Graph) - Alien Dictionary (hard) Have questions about Alien Dictionary (hard)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6610306698575872). Pattern: Two Heaps - Problem Challenge 1 Have questions about Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5068726468608000). Pattern: Topological Sort (Graph) - Problem Challenge 1 Have questions about Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5792384199688192). Pattern: Tree Breadth First Search - Connect Level Order Siblings (medium) Have questions about Connect Level Order Siblings (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5649521866440704). Pattern: Merge Intervals - Problem Challenge 2 Have questions about Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5681034041491456). Pattern: Cyclic Sort - Introduction Have questions about Introduction? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6734200734482432). Pattern: Topological Sort (Graph) - Solution Review: Problem Challenge 2 Have questions about Solution Review: Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5717310448861184). Pattern: Top 'K' Elements - Connect Ropes (easy) Have questions about Connect Ropes (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5668515822436352). Pattern: Fast & Slow pointers - Problem Challenge 2 Have questions about Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5941609818488832). Pattern: Top 'K' Elements - Maximum Distinct Elements (medium) Have questions about Maximum Distinct Elements (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5741384237580288). Conclusions - Where to Go from Here Have questions about Where to Go from Here? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6021896313241600). Pattern: Top 'K' Elements - Kth Smallest Number (easy) Have questions about Kth Smallest Number (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5696381570252800). Pattern: Tree Breadth First Search - Reverse Level Order Traversal (easy) Have questions about Reverse Level Order Traversal (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5765606242516992). Pattern : 0/1 Knapsack (Dynamic Programming) - Introduction Have questions about Introduction? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6356896447463424). Pattern : 0/1 Knapsack (Dynamic Programming) - Problem Challenge 1 Have questions about Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4874044023242752). Pattern: Topological Sort (Graph) - Tasks Scheduling Order (medium) Have questions about Tasks Scheduling Order (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5066018374287360). Pattern: Tree Breadth First Search - Minimum Depth of a Binary Tree (easy) Have questions about Minimum Depth of a Binary Tree (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5666083260334080). Pattern: Merge Intervals - Insert Interval (medium) Have questions about Insert Interval (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5718314357620736). Pattern: Cyclic Sort - Solution Review: Problem Challenge 3 Have questions about Solution Review: Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4513413935923200). Pattern: Tree Breadth First Search - Binary Tree Level Order Traversal (easy) Have questions about Binary Tree Level Order Traversal (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5726607939469312). Pattern: Cyclic Sort - Find the Duplicate Number (easy) Have questions about Find the Duplicate Number (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4522012447866880). Pattern: Subsets - Balanced Parentheses (hard) Have questions about Balanced Parentheses (hard)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5753264117121024). Pattern: Cyclic Sort - Find all Missing Numbers (easy) Have questions about Find all Missing Numbers (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4893412715134976). Pattern: Two Pointers - Introduction Have questions about Introduction? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5440275650445312). Pattern: Two Pointers - Subarrays with Product Less than a Target (medium) Have questions about Subarrays with Product Less than a Target (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5902703286812672). Pattern: Modified Binary Search - Problem Challenge 2 Have questions about Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5141325911425024). Pattern: Sliding Window - Solution Review: Problem Challenge 2 Have questions about Solution Review: Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5039394455027712). Pattern : 0/1 Knapsack (Dynamic Programming) - Minimum Subset Sum Difference (hard) Have questions about Minimum Subset Sum Difference (hard)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5390739594805248). Pattern: Modified Binary Search - Solution Review: Problem Challenge 3 Have questions about Solution Review: Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4691515123171328). Pattern: In-place Reversal of a LinkedList - Solution Review: Problem Challenge 1 Have questions about Solution Review: Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5031773807312896). Pattern: Modified Binary Search - Solution Review: Problem Challenge 2 Have questions about Solution Review: Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5655120966582272). Pattern: Modified Binary Search - Solution Review: Problem Challenge 1 Have questions about Solution Review: Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5585107094077440). Pattern: Cyclic Sort - Problem Challenge 3 Have questions about Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5144878352695296). Pattern: K-way merge - Smallest Number Range (Hard) Have questions about Smallest Number Range (Hard)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5553519291531264). Pattern: Modified Binary Search - Introduction Have questions about Introduction? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4901522552913920). Pattern: Tree Depth First Search - Count Paths for a Sum (medium) Have questions about Count Paths for a Sum (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5658962204557312). Pattern: Merge Intervals - Conflicting Appointments (medium) Have questions about Conflicting Appointments (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5690964005879808). Pattern: Merge Intervals - Problem Challenge 3 Have questions about Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5660980839186432). Pattern: Fast & Slow pointers - Problem Challenge 1 Have questions about Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6278770187042816). Pattern: Cyclic Sort - Find all Duplicate Numbers (easy) Have questions about Find all Duplicate Numbers (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5115834240335872). Pattern: Subsets - Subsets With Duplicates (easy) Have questions about Subsets With Duplicates (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5654100301578240). Pattern: Two Pointers - Solution Review: Problem Challenge 2 Have questions about Solution Review: Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6063823578464256). Pattern: Two Pointers - Solution Review: Problem Challenge 3 Have questions about Solution Review: Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5612925563699200). Pattern: Top 'K' Elements - Solution Review: Problem Challenge 1 Have questions about Solution Review: Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6244851517489152). Pattern : 0/1 Knapsack (Dynamic Programming) - Equal Subset Sum Partition (medium) Have questions about Equal Subset Sum Partition (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6336012772966400). Pattern : 0/1 Knapsack (Dynamic Programming) - Subset Sum (medium) Have questions about Subset Sum (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6126968124735488). Pattern: Two Pointers - Pair with Target Sum (easy) Have questions about Pair with Target Sum (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6618310940557312). Pattern: Subsets - Problem Challenge 2 Have questions about Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5679974795182080). Pattern: Fast & Slow pointers - Solution Review: Problem Challenge 1 Have questions about Solution Review: Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6490214644056064). Pattern: Cyclic Sort - Solution Review: Problem Challenge 1 Have questions about Solution Review: Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6738825470541824). Pattern: Subsets - String Permutations by changing case (medium) Have questions about String Permutations by changing case (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5686812383117312). Pattern: K-way merge - Problem Challenge 1 Have questions about Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6588270395785216). Pattern: K-way merge - Solution Review: Problem Challenge 1 Have questions about Solution Review: Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6521584850305024). Pattern: Topological Sort (Graph) - Introduction Have questions about Introduction? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4529109747105792). Pattern: Subsets - Subsets (easy) Have questions about Subsets (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5670249378611200). Pattern : 0/1 Knapsack (Dynamic Programming) - 0/1 Knapsack (medium) Have questions about 0/1 Knapsack (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5008218180812800). Pattern: Tree Breadth First Search - Solution Review: Problem Challenge 1 Have questions about Solution Review: Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5588868243914752). Pattern: Subsets - Introduction Have questions about Introduction? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6489524165148672). Pattern: Tree Breadth First Search - Solution Review: Problem Challenge 2 Have questions about Solution Review: Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5838045066559488). Pattern: Tree Depth First Search - Solution Review: Problem Challenge 2 Have questions about Solution Review: Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6134959242739712). Pattern: Subsets - Problem Challenge 1 Have questions about Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5712272949248000). Pattern: Subsets - Unique Generalized Abbreviations (hard) Have questions about Unique Generalized Abbreviations (hard)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5646748928180224). Pattern: Top 'K' Elements - Problem Challenge 1 Have questions about Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5684793748488192). Pattern: Sliding Window - Maximum Sum Subarray of Size K (easy) Have questions about Maximum Sum Subarray of Size K (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5177043027230720). Pattern: Two Pointers - Dutch National Flag Problem (medium) Have questions about Dutch National Flag Problem (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5784530449334272). Pattern: Two Pointers - Triplet Sum Close to Target (medium) Have questions about Triplet Sum Close to Target (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6210874538721280). Pattern: Merge Intervals - Solution Review: Problem Challenge 2 Have questions about Solution Review: Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6564181731966976). Pattern: Cyclic Sort - Problem Challenge 1 Have questions about Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5084962401288192). Pattern: Merge Intervals - Introduction Have questions about Introduction? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6381223947534336). Pattern: Tree Depth First Search - All Paths for a Sum (medium) Have questions about All Paths for a Sum (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5714315743068160). Pattern: Tree Breadth First Search - Level Averages in a Binary Tree (easy) Have questions about Level Averages in a Binary Tree (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5632908932939776). Pattern: Sliding Window - Longest Substring with K Distinct Characters (medium) Have questions about Longest Substring with K Distinct Characters (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5698217712812032). Pattern: Sliding Window - Problem Challenge 3 Have questions about Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4739274459054080). Pattern: Two Pointers - Squaring a Sorted Array (easy) Have questions about Squaring a Sorted Array (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4873047792156672). Pattern: Two Pointers - Problem Challenge 1 Have questions about Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5796496094003200). Pattern: Two Pointers - Solution Review: Problem Challenge 1 Have questions about Solution Review: Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4556001657225216). Pattern: Modified Binary Search - Number Range (medium) Have questions about Number Range (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4544356394467328). Pattern: Sliding Window - Solution Review: Problem Challenge 4 Have questions about Solution Review: Problem Challenge 4? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5223876420173824). Pattern: In-place Reversal of a LinkedList - Problem Challenge 1 Have questions about Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5649553887854592). Pattern: Two Heaps - Solution Review: Problem Challenge 1 Have questions about Solution Review: Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5028748841713664). Pattern: Tree Depth First Search - Problem Challenge 1 Have questions about Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5691878833913856). Pattern: In-place Reversal of a LinkedList - Reverse a Sub-list (medium) Have questions about Reverse a Sub-list (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5714632037629952). Pattern: Cyclic Sort - Solution Review: Problem Challenge 2 Have questions about Solution Review: Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4739950945763328). Pattern: Top 'K' Elements - Top 'K' Numbers (easy) Have questions about Top 'K' Numbers (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5728885882748928). Pattern: Modified Binary Search - Ceiling of a Number (medium) Have questions about Ceiling of a Number (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6447997434986496). Pattern: In-place Reversal of a LinkedList - Solution Review: Problem Challenge 2 Have questions about Solution Review: Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5497500834201600). Pattern: Tree Depth First Search - Problem Challenge 2 Have questions about Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5769720821186560). Pattern: Tree Breadth First Search - Solution Review: Problem Challenge 3 Have questions about Solution Review: Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5639313842765824). Pattern: Top 'K' Elements - Rearrange String (hard) Have questions about Rearrange String (hard)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5724822843686912). Pattern: Cyclic Sort - Find the Missing Number (easy) Have questions about Find the Missing Number (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5319932059320320). Pattern: Top 'K' Elements - Top 'K' Frequent Numbers (medium) Have questions about Top 'K' Frequent Numbers (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5761493274460160). Pattern: Fast & Slow pointers - LinkedList Cycle (easy) Have questions about LinkedList Cycle (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6556337280385024). Pattern: Two Heaps - Find the Median of a Number Stream (medium) Have questions about Find the Median of a Number Stream (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6308926461050880). Pattern: Merge Intervals - Intervals Intersection (medium) Have questions about Intervals Intersection (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6518042546667520). Pattern: Merge Intervals - Solution Review: Problem Challenge 1 Have questions about Solution Review: Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4712145159716864). Pattern: Modified Binary Search - Order-agnostic Binary Search (easy) Have questions about Order-agnostic Binary Search (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6304110192099328). Pattern: Cyclic Sort - Cyclic Sort (easy) Have questions about Cyclic Sort (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6003980930908160). Pattern: Tree Breadth First Search - Level Order Successor (easy) Have questions about Level Order Successor (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5742636757417984). Pattern: In-place Reversal of a LinkedList - Reverse a LinkedList (easy) Have questions about Reverse a LinkedList (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4519653420302336). Pattern: K-way merge - Kth Smallest Number in a Sorted Matrix (Hard) Have questions about Kth Smallest Number in a Sorted Matrix (Hard)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4605334997958656). Pattern: Fast & Slow pointers - Middle of the LinkedList (easy) Have questions about Middle of the LinkedList (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6033606055034880). Pattern: Sliding Window - Longest Subarray with Ones after Replacement (hard) Have questions about Longest Subarray with Ones after Replacement (hard)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4867522786492416). Pattern: Sliding Window - Solution Review: Problem Challenge 3 Have questions about Solution Review: Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6424718540275712). Pattern: Sliding Window - Solution Review: Problem Challenge 1 Have questions about Solution Review: Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4679331609575424). Pattern: Two Pointers - Triplet Sum to Zero (medium) Have questions about Triplet Sum to Zero (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5679549973004288). Pattern: In-place Reversal of a LinkedList - Reverse every K-element Sub-list (medium) Have questions about Reverse every K-element Sub-list (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6119318955753472). Pattern: In-place Reversal of a LinkedList - Problem Challenge 2 Have questions about Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5461559008559104). Pattern: Sliding Window - Smallest Subarray with a given sum (easy) Have questions about Smallest Subarray with a given sum (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4578892830474240). Pattern: Tree Depth First Search - Path With Given Sequence (medium) Have questions about Path With Given Sequence (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5750943224168448). Pattern: Modified Binary Search - Bitonic Array Maximum (easy) Have questions about Bitonic Array Maximum (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5941411948003328). Pattern: Top 'K' Elements - 'K' Closest Points to the Origin (easy) Have questions about 'K' Closest Points to the Origin (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6528376640634880). Pattern: K-way merge - Introduction Have questions about Introduction? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4973849063981056). Pattern: Sliding Window - Introduction Have questions about Introduction? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6658855733821440). Pattern: Top 'K' Elements - Solution Review: Problem Challenge 2 Have questions about Solution Review: Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6209895416201216). Pattern: Top 'K' Elements - Problem Challenge 2 Have questions about Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6005247778488320). Pattern: Cyclic Sort - Problem Challenge 2 Have questions about Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5753318183796736). Pattern : 0/1 Knapsack (Dynamic Programming) - Solution Review: Problem Challenge 1 Have questions about Solution Review: Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4802520532647936). Pattern: K-way merge - Merge K Sorted Lists (medium) Have questions about Merge K Sorted Lists (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4611799594827776). Pattern: Modified Binary Search - Next Letter (medium) Have questions about Next Letter (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4850551927865344). Pattern: Topological Sort (Graph) - All Tasks Scheduling Orders (hard) Have questions about All Tasks Scheduling Orders (hard)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4994209155121152). Pattern: Sliding Window - Longest Substring with Same Letters after Replacement (hard) Have questions about Longest Substring with Same Letters after Replacement (hard)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6497958910492672). Pattern: K-way merge - Kth Smallest Number in M Sorted Lists (Medium) Have questions about Kth Smallest Number in M Sorted Lists (Medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4890648534581248). Miscellaneous - Kth Smallest Number (hard) Have questions about Kth Smallest Number (hard)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4817079184130048). Pattern: Fast & Slow pointers - Introduction Have questions about Introduction? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6356512433766400). Pattern: Tree Breadth First Search - Problem Challenge 3 Have questions about Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5760744339537920). Pattern: Modified Binary Search - Minimum Difference Element (medium) Have questions about Minimum Difference Element (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4717486123515904). Pattern: Subsets - Solution Review: Problem Challenge 3 Have questions about Solution Review: Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5786527202279424). Introduction - Who should take this course? Have questions about Who should take this course?? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5936484630659072). Pattern: In-place Reversal of a LinkedList - Introduction Have questions about Introduction? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6263050405412864). Pattern: Subsets - Permutations (medium) Have questions about Permutations (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5720758194012160). Pattern: Subsets - Solution Review: Problem Challenge 1 Have questions about Solution Review: Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4942401443463168). Pattern: Subsets - Problem Challenge 3 Have questions about Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5745189578604544). Pattern: Sliding Window - Fruits into Baskets (medium) Have questions about Fruits into Baskets (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5239377766645760). Pattern : 0/1 Knapsack (Dynamic Programming) - Problem Challenge 2 Have questions about Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4686075182186496). Pattern: Two Pointers - Triplets with Smaller Sum (medium) Have questions about Triplets with Smaller Sum (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5554621957275648). Pattern: Sliding Window - Problem Challenge 1 Have questions about Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5401934796161024). Pattern: Two Pointers - Remove Duplicates (easy) Have questions about Remove Duplicates (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5070198568648704). Pattern: Top 'K' Elements - 'K' Closest Numbers (medium) Have questions about 'K' Closest Numbers (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5474975244877824). Pattern: Two Pointers - Solution Review: Problem Challenge 4 Have questions about Solution Review: Problem Challenge 4? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5232329553346560). Pattern: Fast & Slow pointers - Happy Number (medium) Have questions about Happy Number (medium)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5315930441646080). Pattern: Fast & Slow pointers - Problem Challenge 3 Have questions about Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5709799343783936). Pattern: Fast & Slow pointers - Solution Review: Problem Challenge 2 Have questions about Solution Review: Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6429532024209408). Pattern: Topological Sort (Graph) - Solution Review: Problem Challenge 1 Have questions about Solution Review: Problem Challenge 1? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6460939912085504). Pattern: Top 'K' Elements - Solution Review: Problem Challenge 3 Have questions about Solution Review: Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6223867750121472). Pattern: Fast & Slow pointers - Solution Review: Problem Challenge 3 Have questions about Solution Review: Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5903672166842368). Pattern: Tree Depth First Search - Binary Tree Path Sum (easy) Have questions about Binary Tree Path Sum (easy)? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/5642684278505472). Pattern: Top 'K' Elements - Problem Challenge 3 Have questions about Problem Challenge 3? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/4868698198245376). Pattern: Subsets - Solution Review: Problem Challenge 2 Have questions about Solution Review: Problem Challenge 2? Go for it! View the lesson [here](https://www.educative.io/collection/page/5668639101419520/5671464854355968/6144747909414912).
About the Grokking the Coding Interview: Patterns for Coding Questions (Design Gurus) category [Grokking the Coding Interview: Patterns for Coding Questions (Design Gurus)] (1)
Bug Report: Sliding Window - Smallest Subarray with a given sum [Pattern: Sliding Window - Smallest Subarray with a given sum (easy)] (3)
Why is the Time Complexity O(N) for smallest sub array? [Pattern: Sliding Window - Smallest Subarray with a given sum (easy)] (2)
Can I use If instead of While as the results seems to be the same? [Pattern: Sliding Window - Longest Substring with K Distinct Characters (medium)] (1)
Are all the examples OK here? [Pattern: Top 'K' Elements - Problem Challenge 1] (1)
Is the Example 2 wrong? [Pattern: In-place Reversal of a LinkedList - Problem Challenge 2] (1)
Can somebody explain the calculation of Time Complexity in better words? [Pattern: Fast & Slow pointers - Happy Number (medium)] (4)
Why use heaps here? [Pattern: Two Heaps - Sliding Window Median (hard)] (3)
Diameter of a tree is between two leaf nodes and not any two nodes [Pattern: Tree Depth First Search - Solution Review: Problem Challenge 1] (1)
Typo for the practice answer print [Pattern: Tree Breadth First Search - Problem Challenge 3] (1)
Time Complexity of cyclic sort [Pattern: Cyclic Sort - Problem Challenge 2] (3)
Typo in print_level_order [Pattern: Tree Breadth First Search - Connect Level Order Siblings (medium)] (2)
In the binarysearch sample codes: why return low -1 when low >0 [Pattern: Top 'K' Elements - 'K' Closest Numbers (medium)] (1)
Why not check mid+1 within bounds? [Pattern: Modified Binary Search - Bitonic Array Maximum (easy)] (1)
Why start is the ceiling of the number? [Pattern: Modified Binary Search - Ceiling of a Number (medium)] (1)
Question Regarding Solutions [Pattern: Sliding Window - Maximum Sum Subarray of Size K (easy)] (2)
Top 'K' Frequent Numbers - sample code not correct [Pattern: Top 'K' Elements - Top 'K' Frequent Numbers (medium)] (2)
Cant we use the same Sliding window pattern to find the maxSubArrayLen with the given sum? [Pattern: Sliding Window - Smallest Subarray with a given sum (easy)] (1)
The for loop makes no sense [Pattern: Sliding Window - Solution Review: Problem Challenge 4] (1)
Output for example 1 seems to be wrong [Pattern: Two Pointers - Problem Challenge 4] (3)
Wrong Solution for "foxcati" [Pattern: Sliding Window - Solution Review: Problem Challenge 4] (2)
Find all conflicting appointments? [Pattern: Merge Intervals - Conflicting Appointments (medium)] (2)
Permutation with duplicates [Pattern: Subsets - Permutations (medium)] (1)
Solution does not work when the input list does not contain duplicates [Pattern: Cyclic Sort - Find all Missing Numbers (easy)] (2)
Please delete this thread [Pattern: Fast & Slow pointers - Problem Challenge 3] (1)
Need some help on Time Complexity of Building Heap [Pattern: Top 'K' Elements - Connect Ropes (easy)] (4)
No need for hashMap, space complexity can be O(v) [Pattern: Topological Sort (Graph) - Topological Sort (medium)] (1)
Why are we inserting -num to the maxHeap? [Pattern: Two Heaps - Find the Median of a Number Stream (medium)] (3)
0/1 Knapsack (Dynamic Programming) - Subset Sum (medium) [Pattern : 0/1 Knapsack (Dynamic Programming) - Subset Sum (medium)] (1)
Code of solution with searching for non-negative number [Pattern: Two Pointers - Squaring a Sorted Array (easy)] (1)