TechJengaHub
TechJengaHub @techjengahub ·
#CodingPatterns Two Pointers: When to use: • Array is sorted or needs scanning from both ends. • Problems like removing duplicates, reversing in-place, or checking palindromes. Tip: Use two indices moving inward or at different paces to reduce time complexity from O(n²) to O(n). #LeetCode
1
39