Latest Articles

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

LeetCode 3689: Maximum Total Subarray Value I – Java Greedy Solution Explained

LeetCode 3689: Maximum Total Subarray Value I – Java Greedy Solution Explained

Learn how to solve LeetCode 3689 using an efficient greedy approach in Java. Understand the intuition, dry run, complexity analysis, and why the maximum subarray value can be reused k times for the optimal solution.

Krishna Shrivastava
Jun 9, 2026
LeetCodeJavaMediumSubarray
Read More
LeetCode 2161: Partition Array According to Given Pivot – Java Easy Stable Partition Solution

LeetCode 2161: Partition Array According to Given Pivot – Java Easy Stable Partition Solution

Learn how to solve LeetCode 2161 Partition Array According to Given Pivot using Java. Includes intuition, stable partition logic, dry run, optimized solution, and time complexity analysis.

Krishna Shrivastava
Jun 8, 2026
LeetCodeJavaMediumArrayArray PartitionPivot
Read More
LeetCode 2196: Create Binary Tree From Descriptions – Java HashMap & Tree Construction Solution

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.

Krishna Shrivastava
Jun 7, 2026
LeetCodeJavaTreeHashMapHashSetBinary TreeMedium
Read More
LeetCode 3751: Total Waviness of Numbers in Range I – Java Solution with Dry Run and Explanation

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.

Krishna Shrivastava
Jun 4, 2026
LeetCodeJavaStringPeaks and ValleysBrute Force SolutionDigit ProblemsMediumArray
Read More
LeetCode 450: Delete Node in a BST – Java Optimized Recursive Solution with Dry Run

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.

Krishna Shrivastava
Jun 1, 2026
BSTJavaBinary Search TreeLeetCodeTreeRecursionMedium
Read More
Inorder Successor in BST – Java Optimized BST Solution with Dry Run

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.

Krishna Shrivastava
Jun 1, 2026
BSTGFGTreeBinary Search TreeJavaTree TraversalRecursionEasy
Read More
Floor in BST – Java Recursive Binary Search Tree Solution with Dry Run

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.

Krishna Shrivastava
Jun 1, 2026
BSTBinary Search TreeJavaGFGRecursionTree Data StructureEasy
Read More
Ceil in BST – Java Recursive Binary Search Tree Solution with Dry Run

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.

Krishna Shrivastava
Jun 1, 2026
Binary Search TreeBSTJavaRecursionGFGMedium
Read More
LeetCode 98: Validate Binary Search Tree – Java DFS Recursive Solution Explained

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.

Krishna Shrivastava
Jun 1, 2026
LeetCodeBinary Search TreeBSTJavaDFS TraversalBinary TreeRecursionMedium
Read More
Page 2 of 18157 articles total
Ai Assistant Kas