Recursion Problems
and How to Spot Them
CodeStory tags 34 problems as Recursion, and 12 of them are Hard. Define a problem through a smaller version of itself, then solve the ten most asked.
Begin with 100 AI credits on a free account, and watch 100 more arrive monthly.
How the Recursion Pattern Works
CodeStory covers the tell, the base case mechanism and the skipped base case mistake.
Spot the tell. Your problem is defined in terms of a smaller version of itself.
Learn the mechanism. Write the base case first, then the step that makes the problem smaller, and trust the call. Call stacks handle the bookkeeping you would otherwise write by hand.
Avoid the mistake. Base cases the step can skip past never stop the calls, and the stack overflows. Practise safe exits in CodeStory's backtracking problems.
Most Asked Recursion Problems
CodeStory ranks these by company count, and Regular Expression Matching leads.
- Regular Expression MatchingHard22 companies
- Reorder ListMedium5 companies
- Special Binary StringHard4 companies
- Predict the WinnerMedium3 companies
- Basic Calculator IVHard2 companies
- Parse Lisp ExpressionHard2 companies
- Split BSTMedium1 company
- Ternary Expression ParserMedium1 company
- Remove Linked List ElementsEasy1 company
- Minimum Non-Zero Product of the Array ElementsMedium1 company
Study, Watch and Solve Recursion Problems
Follow CodeStory's order to make recursive thinking stick.
More to Practise Inside the App
CodeStory pairs patterns with interviews and career tools. Swipe for more.
Technique Drills
Drill one technique before you move to the next.
352 problemsOpenHiring Company Sets
Practise what a named company asks.
463 companiesOpenLive Coding Interview
Choose a role and code while questions arrive.
scored reportOpenVoice Interview Rounds
Speak your answers and meet follow ups.
32 topicsOpenDBMS Viva Prep
Face index, join and normalisation questions.
in Core CSOpenOOP Viva Prep
Defend your inheritance and polymorphism answers.
in Core CSOpenSystem Design Chapters
Study how systems get built, layer by layer.
27 chaptersOpenSQL Challenges
Query real tables and check every row.
39 questionsOpenAptitude Tests
Quant, logic, verbal and DI under a timer.
280 questionsOpenTimed Coding Assessments
Practise with marks and hidden tests.
37 papersOpenAlgorithm Animations
Follow every step on input you choose.
26 algorithmsOpenGuided AI Hints
Reveal hints gradually before you ask for review.
100 free creditsOpenResume Maker
Build your resume beside your practice record.
in the appOpenReadiness Score
See one score and your weakest area.
tracked dailyOpen
Sign up to collect 100 AI credits, then 100 more monthly. Start free in the app
Recursion Problems FAQs
Start free with no card, or ask a mentor on a free call.
Start Practising RecursionHow do I know a problem is a Recursion problem?
CodeStory looks for one sign. Your problem is defined in terms of a smaller version of itself.
How many Recursion problems should I solve?
CodeStory suggests moving on once hints stop helping, which comes after a handful of problems from every level. CodeStory shows all 34 tagged problems, split 8 Easy, 14 Medium and 12 Hard, so begin with an Easy problem.
Which mistake costs the most in Recursion problems?
Skipping past the base case. Calls never stop, and the stack overflows.
What does the call stack do in a Recursion problem?
Call stacks handle the bookkeeping you would otherwise write by hand. You write the base case and the smaller step, then trust the call.
Is practising by pattern better than a problem sheet?
Yes. Sheets give a flat list, while CodeStory's patterns group problems by the idea behind them, and that idea carries over to problems you have not seen.
Which Recursion problems do companies ask most?
Regular Expression Matching leads, asked at 22 companies in CodeStory's catalogue. Reorder List follows at 5 companies, and Special Binary String at 4.
Is Recursion practice free to start?
Yes. CodeStory asks for no card, and a free account opens with 100 AI credits plus 100 more monthly.
Want Guided Recursion Practice? Get a Free Callback
Give CodeStory your dream job title, and a mentor shapes your first steps.
- 1CodeStory charts your level, from first base case to interview ready.
- 2CodeStory clarifies online and campus batches, with timings that fit your weekdays.
- 3You decide. No pressure, no payment on the call.