π― Interview Questions β Index
Parent: Array Index
Easy
| # | Question | Technique | Tags |
|---|---|---|---|
| Q1 | Find All Duplicates | Index negation | FB |
| Q2 | Missing Number | Sum / XOR | FB |
| Q3 | Single Number | XOR | FB |
| Q4 | Plus One | Carry | β |
| Q5 | Array Intersection | Hash Map | β |
Medium
| # | Question | Technique | Tags |
|---|---|---|---|
| Q6 | Best Time to Buy Stock | Min tracking | FB |
| Q7 | Numbers Disappeared | Index negation | β |
| Q8 | Majority Element | Boyer-Moore | FB |
| Q9 | Next Permutation | Reverse trick | FB |
| Q10 | Jump Game | Greedy | FB |
| Q11 | Spiral Matrix | Boundary shrink | β |
| Q12 | Rotate Matrix | Transpose+reverse | FB |
| Q13 | Longest Consecutive | Hash Set | FB |
| Q14 | Merge Intervals | Sort + merge | FB, Laravel |
| Q15 | Group Anagrams | Sort key | FB |
Hard
| # | Question | Technique | Tags |
|---|---|---|---|
| Q16 | First Missing Positive | Cyclic sort | FB |
| Q17 | Median Two Sorted Arrays | Binary search | FB |
Laravel Specific
| # | Question | Context |
|---|---|---|
| Q18 | Batch Processing | chunk() / lazy() |
| Q19 | Collection Pipeline | API response |
| Q20 | Equal 0s and 1s | Prefix + Hash |