Latest Articles

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

LeetCode 1980: Find Unique Binary String – Multiple Ways to Generate a Missing Binary Combination

LeetCode 1980: Find Unique Binary String – Multiple Ways to Generate a Missing Binary Combination

A Complete Guide to Solving “Find Unique Binary String” Using Hashing, Brute Force Thinking, and Cantor’s Diagonalization

Krishna Shrivastava
Mar 8, 2026
Binary StringsHashingCantor DiagonalizationLeetCodeMedium
Read More
LeetCode 875: Koko Eating Bananas – Find the Minimum Eating Speed Using Binary Search

LeetCode 875: Koko Eating Bananas – Find the Minimum Eating Speed Using Binary Search

Step-by-Step Explanation of the Koko Eating Bananas Problem with Intuition, Dry Run, and Java Implementation

Krishna Shrivastava
Mar 7, 2026
Binary SearchBinary Search on AnswerArraysLeetCodeMediumJava
Read More
Peak Index in a Mountain Array – Brute Force to Binary Search (LeetCode 852)

Peak Index in a Mountain Array – Brute Force to Binary Search (LeetCode 852)

Learn how to find the peak index in a mountain array using multiple approaches including brute force, linear scan, and an optimized binary search solution with O(log n) time complexity.

Krishna Shrivastava
Mar 7, 2026
LeetCodeBinary SearchMountain ArrayMediumJava
Read More
Find Peak Element – Binary Search Explained with Java Solution (LeetCode 162)

Find Peak Element – Binary Search Explained with Java Solution (LeetCode 162)

Learn how to efficiently find a peak element in an array using binary search. This guide explains the problem clearly, builds intuition step-by-step, and walks through multiple approaches with a clean O(log n) solution.

Krishna Shrivastava
Mar 7, 2026
LeetCodeBinary SearchMediumJava
Read More
Search in Rotated Sorted Array II – Binary Search with Duplicates Explained (LeetCode 81)

Search in Rotated Sorted Array II – Binary Search with Duplicates Explained (LeetCode 81)

Learn how to search an element in a rotated sorted array that may contain duplicate values. This guide explains the intuition, challenges caused by duplicates, and a clean Java solution using modified binary search.

Krishna Shrivastava
Mar 6, 2026
LeetCodeBinary SearchRotated Sorted ArrayJavaMedium
Read More
Search in Rotated Sorted Array – Binary Search Explained with Java Solution (LeetCode 33)

Search in Rotated Sorted Array – Binary Search Explained with Java Solution (LeetCode 33)

Learn how to efficiently search for an element in a rotated sorted array using binary search. This guide explains the intuition, multiple strategies, and a clean Java implementation that achieves O(log n) time complexity.

Krishna Shrivastava
Mar 6, 2026
Binary SearchJavaRotated Sorted ArrayLeetCodeMedium
Read More
Check if Binary String Has at Most One Segment of Ones – Java Solution (LeetCode 1784)

Check if Binary String Has at Most One Segment of Ones – Java Solution (LeetCode 1784)

Learn how to determine whether a binary string contains only one continuous group of 1s. This article explains the problem clearly, builds the intuition step-by-step, and walks through a clean Java solution with time complexity analysis.

Krishna Shrivastava
Mar 6, 2026
LeetCodeJavaString ProblemsBinary StringsEasy
Read More
Roman to Integer – Easy Explanation with Java Solution (LeetCode 13)

Roman to Integer – Easy Explanation with Java Solution (LeetCode 13)

Learn how to convert Roman numerals into integers using a simple algorithm. This guide explains the intuition, rules of Roman numerals, and a step-by-step Java solution for the popular LeetCode problem.

Krishna Shrivastava
Mar 5, 2026
LeetCodeJavaString ProblemsEasyRoman Numerals
Read More
Minimum Changes to Make Alternating Binary String – LeetCode 1758 Explained

Minimum Changes to Make Alternating Binary String – LeetCode 1758 Explained

Understand how to convert a binary string into an alternating pattern with the minimum number of flips using a simple greedy approach.

Krishna Shrivastava
Mar 5, 2026
LeetCodeBinary StringGreedy AlgorithmJavaEasy
Read More
Page 2 of 763 articles total

Ai Assistant Kas