Skip to content
need
code
Search articles
Write
Learning track
DSA Patterns
Two pointers to dynamic programming: the patterns behind most interview problems.
01
Two pointers
Shrink the search space from both ends.
Featured:
Two pointers: shrink the search space from both ends · needcode team · 1 min read
02
Sliding window
Contiguous subarrays in linear time.
Featured:
Sliding window: one pattern, twelve LeetCode problems · Kabir Shah · 1 min read
03
Binary search
Search sorted data and monotonic answers.
No featured article yet. Write the first one.
04
LRU cache from scratch
A hash map plus a doubly linked list.
No featured article yet. Write the first one.
05
Shortest paths
BFS, Dijkstra and when to use which.
Featured:
Dijkstra without the fear · Meera Iyer · 1 min read
06
Dynamic programming
States, transitions and memoisation.
No featured article yet. Write the first one.
need
code
Search articles
Write
Sign in