SarvamStack

    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

    Read →

    Permutation in a String

    Mahabharata — Vyasa's Secret Cipher — The Anagram Hidden in the Scroll of Kings · Hard

    Read →

    String Anagrams

    Ramayana — Valmiki's Hidden Verses — Finding All Anagrammatic Shlokas in the Great Epic · Hard

    Read →

    Words Concatenation

    Ramayana — Valmiki's Saptakanda — Finding All Windows Where Sacred Word-Groups Are Concatenated · Hard

    Read →

    Smallest Subarray with a Given Sum

    Mahabharata — Draupadi's Akshaya Patra — The Minimum Feast That Satisfies a Sage's Wrath · Easy

    Read →

    Longest Substring with K Distinct Characters

    Ramayana — Hanuman's Council — The Longest Unbroken Treaty Among K Kingdoms · Medium

    Read →

    Fruits into Baskets

    Ramayana — Hanuman in Ashoka Vatika — Two Baskets, Maximum Harvest · Medium

    Read →

    No-repeat Substring

    Mahabharata — Yudhisthira's Truth Vow — The Longest Unbroken Chain of Unique Truthful Statements · Hard

    Read →

    Longest Substring with Same Letters after Replacement

    Mahabharata — Drona's Arrow Formation — Converting K Soldiers to Create the Longest Uniform Regiment · Hard

    Read →

    Longest Subarray with Ones after Replacement

    Mahabharata — Bhima's Phalanx — The Longest Unbroken Line of Warriors With K Cowards Replaced · Hard

    Read →

    Minimum Size Subarray Sum

    Mahabharata — Karna's Kavach-Kundal — The Smallest Regiment Whose Combined Valor Defeats Indra · Easy

    Read →

    Minimum Window Substring

    Mahabharata — Draupadi's Swayamvara — Finding the Shortest Proclamation That Names All Required Suitors · Hard

    Read →