Technical Blog

Recent posts

Move Zeroes in Java (Stable In-Place)

3 minute read

DSA Java

This is a clean array-compaction problem. The important requirement is not just “put zeroes at the end” but “keep the non-zero elements in the same order.”

Maximum Depth of Binary Tree in Java

3 minute read

DSA Java

This is a foundational tree problem because it can be solved cleanly in both DFS and BFS style. The recursive DFS version is the most compact, while BFS make...