Valid Anagram — Sorting, HashMap Counting, and the 26-Slot Array Optimisation
Two Sum traded space for time with a HashMap. Buy & Sell Stock tracked a running minimum. Valid Anagram teaches the third must-know pattern: counting....
All posts / Category
Data Structures and Algorithms made practical for Android developers. Step-by-step walkthroughs of coding interview problems — brute force, optimisation, complexity analysis, and the exact conversation interviewers want to hear. Kotlin solutions with full traces, edge cases, and follow-up questions. Built for devs preparing for FAANG, Flipkart, Swiggy, Razorpay, and senior Android roles.
Two Sum traded space for time with a HashMap. Buy & Sell Stock tracked a running minimum. Valid Anagram teaches the third must-know pattern: counting....
Two Sum taught us to trade space for time with a HashMap. This problem teaches the opposite — sometimes you just remember the right one thing as you w...
If you're an Android dev prepping for interviews, the first DSA round usually starts with one problem: Two Sum. It's the warm-up every interviewer rea...