Karan PatelL1 Seed
Loading your feed…
LeetCode, Codeforces, CodeChef and the patterns behind the problems.
I can solve DP problems when I know they're DP, but in contests I don't recognise them. Any signals?
Both techniques use two pointers (left and right) on arrays or strings. What is the fundamental test to decide whether a problem is Sliding Window or Two Pointers?
When an interviewer gives you a DP problem, jumping straight into a 2D table usually causes brain-freeze. Use this 4-step framework out loud: 1. Step 1: Identify State & Parameters: Ask yourself: "Wha
Two pointers · Sliding window · Fast & slow pointers · Merge intervals · Cyclic sort · In-place linked list reversal · BFS · DFS · Two heaps · Subsets · Modified binary search · Top K elements · K-way