Latest Articles

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

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
Mastering the Linux Infrastructure: A Comprehensive Guide to Raw Deployment

Mastering the Linux Infrastructure: A Comprehensive Guide to Raw Deployment

From Local Development to Global Environments

Krishna Shrivastava
Jan 26, 2026
LinuxWebDevelopmentDevOpsDeploymentServerManagementSystemAdministration
Read More
Building an AI Art Detective: From Kaggle Data to Deployed Vision Transformer (ViT)

Building an AI Art Detective: From Kaggle Data to Deployed Vision Transformer (ViT)

How I used a 2.5GB Kaggle dataset, PyTorch, and a Vision Transformer to build a live detector for AI-generated imagery.

Krishna Shrivastava
Jan 21, 2026
MachineLearningComputerVisionNextJSPythonAIVisionTransformer
Read More
Left and Right Sum Differences

Left and Right Sum Differences

LeetCode 2574 Easy

Krishna Shrivastava
Jan 17, 2026
LeetCodePrefixSuffix
Read More
Range Sum Query - Immutable

Range Sum Query - Immutable

LeetCode Question 303

Krishna Shrivastava
Jan 16, 2026
LeetCodeEasyPrefix Sum
Read More
Equilibrium Point

Equilibrium Point

GeeksForGeeks question based on prefix sum.

Krishna Shrivastava
Jan 16, 2026
GeeksforGeeksPrefix SumEasy
Read More
Page 5 of 763 articles total

Ai Assistant Kas