Coding Interview
125. Valid Palindrome
Jason Yang · 31 Mar, 2026
Valid Palindrome (LeetCode 125): the two-pointer O(n) check that skips non-alphanumerics in place, why it beats building a cleaned string, and the edge cases.
Showing Posts From
Coding Interview
Jason Yang · 31 Mar, 2026
Valid Palindrome (LeetCode 125): the two-pointer O(n) check that skips non-alphanumerics in place, why it beats building a cleaned string, and the edge cases.
Coding Interview
Jason Yang · 27 Nov, 2025
Contains Duplicate (LeetCode 217): compare the brute-force, sorting, and hash-set approaches — and why 'just use a hash set' isn't always the right reflex.
Coding Interview
Jason Yang · 26 Nov, 2025
Best Time to Buy and Sell Stock (LeetCode 121): the single-pass O(n) solution that tracks the lowest price so far, with an interactive step-by-step visual.