π DSA Interview Preparation β Master Index
Target Role: PHP Laravel Developer
Last Updated: April 2026
ποΈ Topics Covered
| # | Topic | Files | Status |
|---|---|---|---|
| 1 | π’ Array | 8 subtopics | β Complete |
π How to Use This Guide
- Read the topic index first β each folder has an
index.md - Study concept β then patterns β then questions
- For each question: read "Way of Thinking" before looking at code
- Practice in PHP β all examples are Laravel/PHP friendly
π§ Study Order (Recommended)
Array Basics
β PHP Array Functions (Laravel context)
β Sorting Algorithms
β Searching (Linear & Binary)
β Two Pointers Technique
β Sliding Window Technique
β Prefix Sum Technique
β Interview Questions (Mixed)
β‘ Quick Reference β When to Use What
| Situation | Technique |
|---|---|
| Find pair/duplicate in array | Two Pointers |
| Max/min subarray of size k | Sliding Window |
| Range sum queries | Prefix Sum |
| Find element in sorted array | Binary Search |
| Sort nearly sorted data | Insertion Sort |
| General sort, large dataset | Quick Sort / Merge Sort |
| Integer range 0β100 | Counting Sort |
| Large numbers, IDs | Radix Sort |
π·οΈ Tags Legend
[E]Easy[M]Medium[H]Hard[L]Laravel/PHP specific[FB]Frequently asked in interviews