oday I focused on mastering the Two Pointer Pattern, a powerful technique to optimize brute-force solutions from O(n²) ā O(n).
š What I learned
When & where to use two pointers
Works best with arrays, strings & linear data structures
Helps write clean, efficient interview-ready code
š§ Problems Solved
ā
125. Valid Palindrome
ā
344. Reverse String
ā
977. Squares of a Sorted Array
ā
680. Valid Palindrome II


ā±ļø Most solutions achieved O(n) time & O(1) space
Key takeaway: Pattern recognition > memorizing solutions.
On to Day 3 šŖ
Top comments (0)