Java

Sort Array by Parity in Java

1 minute read

DSA Java

This guide explains the intuition, optimized approach, and Java implementation for sort array by parity in java, with practical tips for interviews and produ...

Valid Parentheses in Java

1 minute read

DSA Java

Given a string containing only ()[]{}, return true if brackets are valid. A valid string must close in correct order and with correct bracket type.

Maximum Depth of Binary Tree in Java

1 minute read

DSA Java

This guide explains the intuition, optimized approach, and Java implementation for maximum depth of binary tree in java, with practical tips for interviews a...

First Missing Positive in Java

1 minute read

DSA Java

This guide explains the intuition, optimized approach, and Java implementation for first missing positive in java, with practical tips for interviews and pro...

Remove Linked List Elements in Java

1 minute read

DSA Java

This guide explains the intuition, optimized approach, and Java implementation for remove linked list elements in java, with practical tips for interviews an...

Create a Custom Lock in Java

2 minute read

Java Concurrency

This deep dive explains the problem model, concurrency contract, Java implementation, and real-world caveats you should know before using this pattern in pro...

Enum in Java

1 minute read

Java

Enums model a fixed set of constants with type safety and encapsulated behavior.