Two Pointers Stories
12 stories from the epics
Pair with Target Sum
Mahabharata — The Gambling Hall of Hastinapura · Easy
Quadruple Sum to Target
Mahabharata — The Four Pillars — Balancing the Sacred Yagna Fire · Medium
Comparing Strings containing Backspaces
Mahabharata — Ganesha Transcribing the Mahabharata — Erasing Mistakes from Both Ends · Medium
Minimum Window Sort
Mahabharata — Drona Arranges the Army — Finding the Disordered Regiment · Medium
Rearrange 0 and 1
Ramayana — The Bridge to Lanka — Separating the Boulders · Medium
Remove Duplicates
Mahabharata — The Pandava Spies — Eliminating Redundant Reports · Easy
Squaring a Sorted Array
Mahabharata — The Archery Contest — Measuring Arrow Distances · Easy
Triplet Sum to Zero
Mahabharata — The Three Debts of Karma — Balancing Past, Present, and Future · Medium
Triplet Sum Close to Target
Ramayana — The Perfect Arrow — Rama's Aim for the Eye of the Fish · Medium
Triplets with Smaller Sum
Mahabharata — The Weight of Soldiers — Counting Battle Formations · Medium
Subarrays with Product Less than a Target
Mahabharata — The Garden of Multiplication — Shakuni's Dice Game · Medium
Dutch National Flag Problem
Mahabharata — The Three Armies — Sorting Pandava, Kaurava, and Neutral Forces · Medium