Recursion & Backtracking Stories
10 stories from the epics
Fibonacci
Mahabharata — The Lineage of Kurus — Each Generation Built on the Two Before · Easy
Palindrome Partitioning
Mahabharata — Vyasa's Sacred Cuts — Partition the Verse into Palindromic Segments · Medium
Check if String is Palindrome
Mahabharata — The Mirror Verse — A Shloka That Reads the Same Forward and Backward · Easy
Check if Array is Sorted
Mahabharata — The Ordered Formation — Is Every Warrior Ranked Properly? · Easy
Sum of Digits of a Number
Mahabharata — The Census Tally — Adding One Digit at a Time · Easy
Remove Occurrences of a Character
Ramayana — Hanuman's Purge — Remove All Demons from the Sacred Path · Easy
Generate Parentheses
Mahabharata — Vyasa's Verses — All Valid Ways to Arrange n Pairs of Brackets · Medium
Letter Combinations of Phone Number
Mahabharata — The Cipher of Digits — All Words That Can Be Spelled from a Number · Medium
Permutations
Mahabharata — Every Battle Order — All Possible Arrangements of the Warriors · Medium
Combination Sum
Mahabharata — The War Council's Budget — All Ways to Spend Exactly target Using Unlimited Supplies · Medium