Algorithms

2 posts
2025

Remove Duplicates from a Sorted Array — The Two-Pointer Technique

Removing duplicates from a sorted array is one of those problems that sounds trivial until you add the constraint: do it in-place, without …
Read more

Solving LeetCode's Valid Parentheses Problem with a Stack in Java

Some LeetCode problems feel like busy work. The Valid Parentheses problem is not one of them. It’s a clean, well-defined problem that …
Read more