Courses/Coding patterns
LEARNING TRACK

Coding patterns.

Practice data structures and algorithms for your SWE coding interview. Solve 3Sum with two pointers, clone a graph and work through dynamic programming problems.

Lesson index

28 lessons
01Two PointersValid Palindrome · 3Sum · Remove Nth Node from End of List100 min↗02Fast and Slow PointersHappy Number · Linked List Cycle · Middle of the Linked List32 min↗03Sliding WindowRepeated DNA Sequences · Sliding Window Maximum · Minimum Window Subsequence68 min↗04IntervalsMerge Intervals · Insert Interval · Interval List Intersections32 min↗05In-Place Manipulation of a Linked ListReverse Linked List · Reverse Nodes in k-Group · Reverse Linked List II42 min↗06HeapsIPO · Find Median from Data Stream · Sliding Window Median39 min↗07K-way MergeMerge Sorted Array · Kth Smallest Number in M Sorted Lists · Find K Pairs with Smallest Sums22 min↗08Top K ElementsKth Largest Element in a Stream · Reorganize String · K Closest Points to Origin59 min↗09Modified Binary SearchBinary Search · Search in Rotated Sorted Array · First Bad Version72 min↗10SubsetsSubsets · Permutations · Letter Combinations of a Phone Number26 min↗11Greedy TechniquesJump Game · Boats to Save People · Gas Station73 min↗12BacktrackingN-Queens II · Word Search · House Robber III62 min↗13Dynamic Programming0/1 Knapsack · Coin Change · N-th Tribonacci Number123 min↗14Cyclic SortCyclic Sort · Missing Number · First Missing Positive20 min↗15Topological SortCompilation Order · Alien Dictionary · Verifying an Alien Dictionary38 min↗16Sort and SearchFind the Distance Value Between Two Arrays · Longest Subsequence With Limited Sum · Find Target Indices After Sorting Array57 min↗17MatricesSet Matrix Zeroes · Rotate Image · Spiral Matrix62 min↗18StacksBasic Calculator · Remove All Adjacent Duplicates In String · Minimum Remove to Make Valid Parentheses62 min↗19GraphsNetwork Delay Time · Paths in Maze That Lead to Same Room · Clone Graph57 min↗20Tree Depth-First SearchFlatten Binary Tree to Linked List · Diameter of Binary Tree · Serialize and Deserialize Binary Tree67 min↗21Tree Breadth-First SearchBinary Tree Level Order Traversal · Binary Tree Zigzag Level Order Traversal · Populating Next Right Pointers in Each Node43 min↗22TrieImplement Trie (Prefix Tree) · Search Suggestions System · Replace Words44 min↗23Hash MapsDesign HashMap · Fraction to Recurring Decimal · Logger Rate Limiter99 min↗24Knowing What to TrackPalindrome Permutation · Valid Anagram · Design Tic-Tac-Toe74 min↗25Union FindRedundant Connection · Number of Islands · Most Stones Removed with Same Row or Column42 min↗26Custom Data StructuresSnapshot Array · Time Based Key-Value Store · LRU Cache49 min↗27Bitwise ManipulationFind the Difference · Complement of Base 10 Integer · Flipping an Image53 min↗28Math and GeometryCheck If It Is a Straight Line · Minimum Cuts to Divide a Circle · Rectangle Overlap129 min↗