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)