Latest Articles

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

Search in a Binary Search Tree (LeetCode 700) Java Solution with Explanation and Dry Run

Search in a Binary Search Tree (LeetCode 700) Java Solution with Explanation and Dry Run

Learn how to efficiently search for a value in a Binary Search Tree using Java with step-by-step explanation, intuition, recursion approach, dry run, and complexity analysis.

Krishna Shrivastava
May 30, 2026
LeetCodeBinary Search TreeJavaBSTEasyTreeRecursion
Read More
LeetCode 3121: Count the Number of Special Characters II – Java HashMap Solution Explained

LeetCode 3121: Count the Number of Special Characters II – Java HashMap Solution Explained

Learn how to solve LeetCode 3121 Count the Number of Special Characters II using HashMap in Java. Includes intuition, brute force approach, optimized solution, dry run, complexity analysis, interview explanation, and common mistakes.

Krishna Shrivastava
May 27, 2026
LeetCodeJavaHashMapStringMedium
Read More
LeetCode 387: First Unique Character in a String – Java HashMap Solution Explained

LeetCode 387: First Unique Character in a String – Java HashMap Solution Explained

Learn how to solve LeetCode 387 First Unique Character in a String using HashMap in Java. Includes brute force approach, optimized solution, intuition, dry run, complexity analysis, interview explanation, and common mistakes.

Krishna Shrivastava
May 27, 2026
LeetCodeJavaHashMapStringEasy
Read More
LeetCode 3120: Count the Number of Special Characters I – Java HashSet Solution Explained

LeetCode 3120: Count the Number of Special Characters I – Java HashSet Solution Explained

Learn how to solve LeetCode 3120 Count the Number of Special Characters I using HashSet in Java. Includes intuition, brute force approach, optimized solution, dry run, complexity analysis, interview explanation, and common mistakes.

Krishna Shrivastava
May 27, 2026
LeetCodeJavaHashSetStringEasy
Read More
LeetCode 124: Binary Tree Maximum Path Sum – Java DFS Solution Explained

LeetCode 124: Binary Tree Maximum Path Sum – Java DFS Solution Explained

Learn how to solve LeetCode 124 Binary Tree Maximum Path Sum using optimized DFS recursion in Java. Includes intuition, brute force approach, optimized solution, dry run, complexity analysis, interview explanation, and common mistakes.

Krishna Shrivastava
May 23, 2026
LeetCodeBinary Tree Maximum Path SumJavaBinary TreeDFSTreeRecursionDynamic Programming on TreesHard
Read More
LeetCode 543: Diameter of Binary Tree – Java DFS Solution Explained

LeetCode 543: Diameter of Binary Tree – Java DFS Solution Explained

Learn how to solve LeetCode 543 Diameter of Binary Tree using optimized DFS recursion in Java. Includes brute force approach, optimized solution, intuition, dry run, complexity analysis, interview explanation, and common mistakes.

Krishna Shrivastava
May 23, 2026
LeetCodeDiameter of Binary TreeJavaBinary TreeDFSTreeRecursionEasy
Read More
LeetCode 110: Balanced Binary Tree – Java Optimized DFS Solution Explained

LeetCode 110: Balanced Binary Tree – Java Optimized DFS Solution Explained

Learn how to solve LeetCode 110 Balanced Binary Tree using optimized DFS and height calculation in Java. Includes brute force approach, optimized recursive solution, intuition, dry run, complexity analysis, interview explanation, and common mistakes.

Krishna Shrivastava
May 23, 2026
LeetCodeBalanced Binary TreeJavaBinary TreeDFSTree HeightRecursionTree
Read More
LeetCode 104: Maximum Depth of Binary Tree – Java Recursive Solution Explained

LeetCode 104: Maximum Depth of Binary Tree – Java Recursive Solution Explained

Learn how to solve LeetCode 104 Maximum Depth of Binary Tree using recursion and DFS in Java. Includes brute force intuition, optimized recursive approach, BFS solution, dry run, complexity analysis, interview explanation, and common mistakes.

Krishna Shrivastava
May 23, 2026
LeetCodeDepth of Binary TreeJavaBinary TreeDFSBFSRecursionTreeEasy
Read More
LeetCode 1752: Check if Array Is Sorted and Rotated – Java Solution Explained

LeetCode 1752: Check if Array Is Sorted and Rotated – Java Solution Explained

Learn how to solve LeetCode 1752 Check if Array Is Sorted and Rotated using rotation logic and array traversal in Java. Includes brute force approach, optimized solution, intuition, dry run, complexity analysis, interview explanation, and common mistakes.

Krishna Shrivastava
May 23, 2026
LeetCodeJavaArrayRotation ProblemsSortingEasy
Read More
Page 6 of 20 • 179 articles total
Ai Assistant Kas