📅 21 Jul 2025
View on Github ↗| Problem | Pattern / Concept |
|---|---|
| Max in Array | Linear scan (compare & track) |
| Even/Odd | Use % 2 to check parity |
| Reverse Array | Two-pointer swap method |
| Prime Check | Loop till √n for efficiency |
| Fibonacci | Simple loop, track a and b |
| 2nd Max | Track max and second max separately |
| Palindrome | Two pointers inward comparison |
| Bubble Sort | Repeated swaps until sorted |
Each of these teaches classic logic + patterns like:
Solving DSA problems is great — but today I realized understanding the "why" and the "how" behind each approach is 10x more powerful. These core problems form the foundation for every complex question that comes later.