Latest Articles
Discover our latest posts and insights from the Kode$word journey

LeetCode 2196: Create Binary Tree From Descriptions – Java HashMap & Tree Construction Solution
Learn how to solve LeetCode 2196 Create Binary Tree From Descriptions using Java HashMap and HashSet. Includes intuition, step-by-step explanation, dry run, optimized approach, and complexity analysis.

LeetCode 3751: Total Waviness of Numbers in Range I – Java Solution with Dry Run and Explanation
Learn how to solve LeetCode 3751 Total Waviness of Numbers in Range I using a clean Java brute force approach. Includes intuition, peak and valley logic, dry run, complexity analysis, and interview explanation.

LeetCode 450: Delete Node in a BST – Java Optimized Recursive Solution with Dry Run
Learn how to solve LeetCode 450 Delete Node in a BST using an optimized BST deletion approach in Java. Includes intuition, brute force approach, recursive BST logic, dry run, complexity analysis, interview explanation, and common mistakes.

Inorder Successor in BST – Java Optimized BST Solution with Dry Run
Learn how to solve the GFG Inorder Successor in BST problem using optimized BST traversal in Java. Includes brute force approach, recursive BST solution, intuition, dry run, complexity analysis, interview tips, and common mistakes.

Floor in BST – Java Recursive Binary Search Tree Solution with Dry Run
Learn how to solve the Floor in BST problem using an optimized recursive BST approach in Java. Includes intuition, brute force solution, optimized recursion, dry run, time complexity analysis, interview explanation, and common mistakes.

Ceil in BST – Java Recursive Binary Search Tree Solution with Dry Run
Learn how to solve the Ceil in BST problem using an optimized recursive BST approach in Java. Includes intuition, brute force method, optimized recursion, dry run, time complexity, interview explanation, and common mistakes.

LeetCode 98: Validate Binary Search Tree – Java DFS Recursive Solution Explained
Learn how to solve LeetCode 98 Validate Binary Search Tree using recursion and min/max bounds in Java. Includes BST intuition, brute force approach, optimized DFS solution, dry run, complexity analysis, interview explanation, and common mistakes.

LeetCode 2144: Minimum Cost of Buying Candies With Discount – Java Greedy Approach Explained
Learn how to solve LeetCode 2144 Minimum Cost of Buying Candies With Discount using a greedy sorting approach in Java. Includes intuition, brute force approach, optimized solution, dry run, complexity analysis, interview explanation, and common mistakes.

LeetCode 235: Lowest Common Ancestor of a Binary Search Tree – Java BST Solution with Dry Run
Master LeetCode 235: Lowest Common Ancestor in a BST using Java. This guide covers the core intuition, brute force method, and optimized recursive solution, plus a detailed dry run, complexity analysis, interview tips, and common pitfalls to avoid.