Latest Articles

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

Mastering Binary Search – LeetCode 704 Explained

Mastering Binary Search – LeetCode 704 Explained

A Complete Guide with Code Walkthrough, Algorithm Explanation, and Practice Recommendations

Krishna Shrivastava
Feb 25, 2026
Binary SearchLeetCodeEasy
Read More
LeetCode 187 – Repeated DNA Sequences (Java Solution with Sliding Window and HashSet)

LeetCode 187 – Repeated DNA Sequences (Java Solution with Sliding Window and HashSet)

Step-by-Step Explanation with Optimized Approach and Time Complexity Analysis

Krishna Shrivastava
Feb 22, 2026
JavaSliding WindowMedium
Read More
Length of Longest Subarray With At Most K Frequency – Sliding Window Approach

Length of Longest Subarray With At Most K Frequency – Sliding Window Approach

Learn how to find the longest contiguous subarray where each element occurs at most K times using HashMap and sliding window.

Krishna Shrivastava
Feb 5, 2026
SlidingWindowHashMapLeetCodeMedium
Read More
Fruit Into Baskets – Sliding Window with Two Types

Fruit Into Baskets – Sliding Window with Two Types

Learn how to maximize the number of fruits you can collect with two baskets using a sliding window and HashMap.

Krishna Shrivastava
Feb 5, 2026
SlidingWindowHashMapLeetCodeMedium
Read More
Longest Subarray of 1's After Deleting One Element – Sliding Window Approach

Longest Subarray of 1's After Deleting One Element – Sliding Window Approach

Learn how to maximize consecutive 1's in a binary array by deleting exactly one element using an efficient sliding window technique.

Krishna Shrivastava
Feb 5, 2026
SlidingWindowBinaryArrayLeetCodeMedium
Read More
Max Consecutive Ones III – Sliding Window with Limited Flips

Max Consecutive Ones III – Sliding Window with Limited Flips

Learn how to maximize consecutive 1's in a binary array by flipping at most K zeros using an optimized sliding window approach.

Krishna Shrivastava
Feb 5, 2026
SlidingWindowBinaryArrayLeetCodeMedium
Read More
Longest Substring with K Unique Characters – Efficient Sliding Window Solution

Longest Substring with K Unique Characters – Efficient Sliding Window Solution

Master the sliding window technique using HashMap to find the longest substring with exactly K distinct characters.

Krishna Shrivastava
Feb 5, 2026
SlidingWindowHashMapStringsGFG
Read More
Count Subarrays of Size K with Average ≥ Threshold — Sliding Window Solution (LeetCode 1343)

Count Subarrays of Size K with Average ≥ Threshold — Sliding Window Solution (LeetCode 1343)

Efficiently counting qualifying subarrays using an O(n) sliding window approach

Krishna Shrivastava
Jan 30, 2026
LeetCodeSliding WindowMedium
Read More
Maximum Average Subarray I — Efficient Solution Using Sliding Window (LeetCode 643)

Maximum Average Subarray I — Efficient Solution Using Sliding Window (LeetCode 643)

How to optimize subarray average calculation from brute force to an O(n) sliding window approach

Krishna Shrivastava
Jan 30, 2026
LeetCodeSliding WindowEasy
Read More
Page 10 of 13112 articles total
Ai Assistant Kas