Technical Blog

Recent posts

Sort Array by Parity in Java

2 minute read

DSA Java

This is a partition problem, not a sorting problem. We do not care about the exact order inside the even group or the odd group, only that all even numbers c...

Valid Parentheses in Java

2 minute read

DSA Java

This is a classic stack-matching problem. The key idea is that every opening bracket creates a future expectation about which closing bracket must appear next.