Sliding Window Stories
12 stories from the epics
Maximum Sum Subarray of Size K
Ramayana — Sugriva's Scout Patrol — The Window of K Warriors Sweeping Lanka's Shore · Easy
Permutation in a String
Mahabharata — Vyasa's Secret Cipher — The Anagram Hidden in the Scroll of Kings · Hard
String Anagrams
Ramayana — Valmiki's Hidden Verses — Finding All Anagrammatic Shlokas in the Great Epic · Hard
Words Concatenation
Ramayana — Valmiki's Saptakanda — Finding All Windows Where Sacred Word-Groups Are Concatenated · Hard
Smallest Subarray with a Given Sum
Mahabharata — Draupadi's Akshaya Patra — The Minimum Feast That Satisfies a Sage's Wrath · Easy
Longest Substring with K Distinct Characters
Ramayana — Hanuman's Council — The Longest Unbroken Treaty Among K Kingdoms · Medium
Fruits into Baskets
Ramayana — Hanuman in Ashoka Vatika — Two Baskets, Maximum Harvest · Medium
No-repeat Substring
Mahabharata — Yudhisthira's Truth Vow — The Longest Unbroken Chain of Unique Truthful Statements · Hard
Longest Substring with Same Letters after Replacement
Mahabharata — Drona's Arrow Formation — Converting K Soldiers to Create the Longest Uniform Regiment · Hard
Longest Subarray with Ones after Replacement
Mahabharata — Bhima's Phalanx — The Longest Unbroken Line of Warriors With K Cowards Replaced · Hard
Minimum Size Subarray Sum
Mahabharata — Karna's Kavach-Kundal — The Smallest Regiment Whose Combined Valor Defeats Indra · Easy
Minimum Window Substring
Mahabharata — Draupadi's Swayamvara — Finding the Shortest Proclamation That Names All Required Suitors · Hard