Latest Articles

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

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
LeetCode 2657: Find the Prefix Common Array of Two Arrays – Java Hashing Solution Explained

LeetCode 2657: Find the Prefix Common Array of Two Arrays – Java Hashing Solution Explained

Solve LeetCode 2657 (Prefix Common Array) in Java. Learn Brute Force, HashMap, HashSet, and frequency counting techniques. Includes optimized code, dry run, and interview tips.

Krishna Shrivastava
May 20, 2026
LeetCodePrefix Common ArrayJavaHashMapHashSetArrayPrefixArrayMedium
Read More
LeetCode 2784: Check if Array is Good – Java HashMap Solution Explained

LeetCode 2784: Check if Array is Good – Java HashMap Solution Explained

Learn how to solve LeetCode 2784 Check if Array is Good using HashMap and counting techniques in Java. Includes brute force intuition, optimized approach, dry run, complexity analysis, interview explanation, and common mistakes.

Krishna Shrivastava
May 19, 2026
LeetCodeJavaHashMapArrayFrequency CountEasy
Read More
LeetCode 102: Binary Tree Level Order Traversal – Java BFS Solution Explained

LeetCode 102: Binary Tree Level Order Traversal – Java BFS Solution Explained

Learn how to solve LeetCode 102 Binary Tree Level Order Traversal using BFS and Queue in Java. Includes brute force intuition, optimized level order traversal, dry run, complexity analysis, interview explanation, and common mistakes.

Krishna Shrivastava
May 17, 2026
LeetCodeBinary Tree Level Order TraversalBFSQueueBinary TreeJavaTree TraversalMedium
Read More
LeetCode 1306: Jump Game III – Java DFS & Graph Traversal Solution Explained

LeetCode 1306: Jump Game III – Java DFS & Graph Traversal Solution Explained

Learn how to solve LeetCode 1306 Jump Game III using DFS and graph traversal in Java. Includes brute force intuition, optimized recursive solution, BFS approach, dry run, complexity analysis, interview explanation, and common mistakes.

Krishna Shrivastava
May 17, 2026
LeetCodeMediumDFSBFSGraph TraversalJavaRecursion
Read More
Page 4 of 18157 articles total
Ai Assistant Kas