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

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.

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.

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.

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.

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.

Count Subarrays of Size K with Average ≥ Threshold — Sliding Window Solution (LeetCode 1343)
Efficiently counting qualifying subarrays using an O(n) sliding window approach

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

Mastering the Linux Infrastructure: A Comprehensive Guide to Raw Deployment
From Local Development to Global Environments

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.