Latest Articles

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

LeetCode 845: Longest Mountain in Array – Java Solution with Peak Expansion

LeetCode 845: Longest Mountain in Array – Java Solution with Peak Expansion

Learn how to identify mountain peaks, expand in both directions, and find the longest valid mountain subarray using O(n) time and O(1) extra space.

Krishna Shrivastava
Aug 12, 2026
LeetCodeJavaArraysTwo PointersMedium
Read More
LeetCode 41: First Missing Positive – O(n) Time and O(1) Space Java Solution

LeetCode 41: First Missing Positive – O(n) Time and O(1) Space Java Solution

A complete explanation of the cyclic placement technique for finding the smallest missing positive integer in an unsorted array.

Krishna Shrivastava
Aug 7, 2026
LeetCodeJavaArraysCyclic SortHardHashSet
Read More
LeetCode 55: Jump Game – Java Greedy Solution with Explanation and Dry Run

LeetCode 55: Jump Game – Java Greedy Solution with Explanation and Dry Run

Learn how to solve LeetCode 55 Jump Game using a simple greedy approach by tracking the farthest index reachable at every step.

Krishna Shrivastava
Aug 7, 2026
JavaLeetcodeArrayGreedy ApproachMedium
Read More
LeetCode 1189: Maximum Number of Balloons – Java HashMap and Frequency Counting Solution

LeetCode 1189: Maximum Number of Balloons – Java HashMap and Frequency Counting Solution

SEO Subtitle Learn Multiple Approaches, Frequency Analysis, Dry Run, Complexity Breakdown, and Interview Insights for This Popular String Counting Problem

Krishna Shrivastava
Jun 22, 2026
LeetcodeEasyJavaHashMapFrequency Count
Read More
LeetCode 1833: Maximum Ice Cream Bars – Java Greedy & Counting Sort Solution Explained

LeetCode 1833: Maximum Ice Cream Bars – Java Greedy & Counting Sort Solution Explained

Learn Greedy Algorithms, Counting Sort Optimization, Dry Runs, Complexity Analysis, and Interview Strategies Through This Classic Budget Allocation Problem

Krishna Shrivastava
Jun 21, 2026
LeetCodeMediumJavaSortingGreedy ApproachCounting Sort
Read More
LeetCode 1732: Find the Highest Altitude – Java Prefix Sum Solution Explained

LeetCode 1732: Find the Highest Altitude – Java Prefix Sum Solution Explained

Master Running Sum and Prefix Sum Techniques with Step-by-Step Explanation, Dry Run, Alternative Approaches, Complexity Analysis, and Interview Insights

Krishna Shrivastava
Jun 19, 2026
LeetcodeJavaEasyPrefix Sum
Read More
LeetCode 1344: Angle Between Hands of a Clock – Java Mathematical Solution Explained

LeetCode 1344: Angle Between Hands of a Clock – Java Mathematical Solution Explained

Master Clock Angle Problems with Mathematics, Geometry, Formula Derivation, Dry Run Examples, Complexity Analysis, and Interview Tips in Java

Krishna Shrivastava
Jun 18, 2026
LeetcodeJavaMediumClock AngleMaths
Read More
LeetCode 3612: Process String with Special Operations I – Java StringBuilder Solution Explained

LeetCode 3612: Process String with Special Operations I – Java StringBuilder Solution Explained

Learn how to solve LeetCode 3612 using StringBuilder, string simulation, reverse operations, duplication logic, dry run examples, complexity analysis, and interview insights.

Krishna Shrivastava
Jun 16, 2026
LeetcodeJavaStringString BuilderMedium
Read More
LeetCode 3838: Weighted Word Mapping – Java Solution Explained with Multiple Approaches

LeetCode 3838: Weighted Word Mapping – Java Solution Explained with Multiple Approaches

Learn How to Convert Weighted Words into Encoded Characters Using Hashing, Modular Arithmetic, and Optimized Character Mapping

Krishna Shrivastava
Jun 13, 2026
LeetCodeEasyArrayHashMapStringFrequencyJava
Read More
Page 1 of 18157 articles total
Ai Assistant Kas