Skip to content
geeksforgeeks
  • Courses
    • DSA to Development
    • Get IBM Certification
    • Newly Launched!
      • Master Django Framework
      • Become AWS Certified
    • For Working Professionals
      • Interview 101: DSA & System Design
      • Data Science Training Program
      • JAVA Backend Development (Live)
      • DevOps Engineering (LIVE)
      • Data Structures & Algorithms in Python
    • For Students
      • Placement Preparation Course
      • Data Science (Live)
      • Data Structure & Algorithm-Self Paced (C++/JAVA)
      • Master Competitive Programming (Live)
      • Full Stack Development with React & Node JS (Live)
    • Full Stack Development
    • Data Science Program
    • All Courses
  • Tutorials
    • Data Structures & Algorithms
    • ML & Data Science
    • Interview Corner
    • Programming Languages
    • Web Development
    • CS Subjects
    • DevOps And Linux
    • School Learning
  • Practice
    • Build your AI Agent
    • GfG 160
    • Problem of the Day
    • Practice Coding Problems
    • GfG SDE Sheet
  • Contests
    • Accenture Hackathon (Ending Soon!)
    • GfG Weekly [Rated Contest]
    • Job-A-Thon Hiring Challenge
    • All Contests and Events
  • DSA
  • Practice Problems
  • Python
  • C
  • C++
  • Java
  • Courses
  • Machine Learning
  • DevOps
  • Web Development
  • System Design
  • Aptitude
  • Projects
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.3k+ articles
Algorithms
2k+ articles
Dynamic Programming
1.5k+ articles
Tree
1.4k+ articles
DFS
340+ articles
Backtracking
230+ articles
  1. DSA
  2. >
  3. Algorithms
  4. >
  5. Recursion

Recursion

1k+ posts
Introduction to Backtracking
Last Updated: 24 June 2024
Backtracking is like trying different paths, and when you hit a dead end, you backtrack to the last choice and try a different route. In thi...read more
image
Backtracking
Branch and Bound
Recursion
Algorithms-Backtracking
Picked
DSA
Tutorials
DSA Tutorials
Recursive Practice Problems with Solutions
Last Updated: 06 February 2024
Basics - RecursionRecursive FunctionsTail RecursionStrings -Given a string, print all possible palindromic partitionsCheck if a number is Pa ...read more
Algorithms
Recursion
Data Structures
tail-recursion
DSA
Print all subsequences of a string
Last Updated: 18 October 2024
Given a string, we have to find out all its subsequences of it. A String is said to be a subsequence of another String, if it can be obtaine...read more
image
Strings
Java
subsequence
Recursion
DSA
Similar Topics
DSA
22.3k+ articles
Mathematical
7.7k+ articles
Arrays
6.4k+ articles
Strings
3.2k+ articles
Competitive Programming
2.3k+ articles
Algorithms
2k+ articles
Dynamic Programming
1.5k+ articles
Tree
1.4k+ articles
DFS
340+ articles
Backtracking
230+ articles
Introduction to Recursion
Last Updated: 24 April 2025
The process in which a function calls itself directly or indirectly is called recursion and the corresponding function is called a recursive...read more
image
Algorithms
Recursion
tail-recursion
DSA
DSA Tutorials
Program for Tower of Hanoi Algorithm
Last Updated: 17 February 2025
Tower of Hanoi is a mathematical puzzle where we have three rods (A, B, and C) and N disks. Initially, all the disks are stacked in decreasi...read more
image
Stack
Divide and Conquer
Recursion
DSA
Basic Coding Problems
Grid Unique Paths - Count Paths in matrix
Last Updated: 06 November 2024
Given an matrix of size m x n, the task is to find the count of all unique possible paths from top left to the bottom right with the constra ...read more
Microsoft
Amazon
Walmart
Paytm
Linkedin
Dynamic Programming
Mathematical
Matrix
Recursion
DSA
All combinations of size r from an array
Last Updated: 23 April 2025
You are given an array arr[] consisting of n elements. Your task is to generate and print all possible combinations of exactly r elements fr...read more
image
Mathematical
Recursion
DSA
Check if a number is Palindrome
Last Updated: 15 February 2025
Given an integer n, find whether the number is Palindrome or not. A number is a Palindrome if it remains the same when its digits are revers ...read more
Adobe
Oracle
Samsung
Zoho
Mathematical
palindrome
Recursion
DSA
Josephus Problem
Last Updated: 20 February 2025
There are N people standing in a circle waiting to be executed. The counting out begins at some point in the circle and proceeds around the ...read more
image
Bit Magic
Walmart
Mathematical
Recursion
DSA
Recursive Functions
Last Updated: 27 May 2024
A Recursive function can be defined as a routine that calls itself directly or indirectly.In other words, a recursive function is a function...read more
image
Recursion
DSA
How to Reverse a Stack using Recursion
Last Updated: 09 April 2025
Write a program to reverse a stack using recursion, without using any loop.Example:Input: elements present in stack from top to bottom 4 3 2...read more
image
Stack
Reverse
Recursion
DSA
Permutations of given String
Last Updated: 10 April 2025
Given a string s, the task is to return all permutations of a given string in lexicographically sorted order.Note: A permutation is the rear...read more
image
Strings
Amazon
Samsung
Walmart
Cisco
Citrix
Snapdeal
Accolite
MAQ Software
Greedy
Backtracking
Mathematical
Combinatorial
OYO
permutation
Recursion
Apple
strings
DSA
Write a program to reverse digits of a number
Last Updated: 19 March 2025
Given an Integer n, find the reverse of its digits.Examples:Input: n = 122Output: 221Explanation: By reversing the digits of number, number ...read more
MAQ Software
MakeMyTrip
Mathematical
number-digits
Modular Arithmetic
Recursion
DSA
Two Sum - Pair with given Sum
Last Updated: 21 December 2024
Given an array arr[] of n integers and a target value, the task is to find whether there is a pair of elements in the array whose sum is equ...read more
image
Arrays
Microsoft
Amazon
Morgan Stanley
Flipkart
Accolite
Zoho
Hike
SAP Labs
CarWale
FactSet
Infosys
Backtracking
Hash
Amazon-Question
CarWale-Question
ABCO
Recursion
Wipro
DSA
2Sum
Sum of Digits of a Number
Last Updated: 07 February 2025
Given a number n, find the sum of its digits.Examples :Input: n = 687Output: 21Explanation: The sum of its digits are: 6 + 8 + 7 = 21Input: ...read more
number-digits
cpp-puzzle
Recursion
DSA
1 2 3 4 5 6 7 8 >>
Last
1 2 3 4 5 6 >>
Last
1 2 3 4 >>
Last
geeksforgeeks-footer-logo
Corporate & Communications Address:
A-143, 7th Floor, Sovereign Corporate Tower, Sector- 136, Noida, Uttar Pradesh (201305)
Registered Address:
K 061, Tower K, Gulshan Vivante Apartment, Sector 137, Noida, Gautam Buddh Nagar, Uttar Pradesh, 201305
GFG App on Play Store GFG App on App Store
Advertise with us
  • Company
  • About Us
  • Legal
  • Privacy Policy
  • In Media
  • Contact Us
  • Advertise with us
  • GFG Corporate Solution
  • Placement Training Program
  • Languages
  • Python
  • Java
  • C++
  • PHP
  • GoLang
  • SQL
  • R Language
  • Android Tutorial
  • Tutorials Archive
  • DSA
  • Data Structures
  • Algorithms
  • DSA for Beginners
  • Basic DSA Problems
  • DSA Roadmap
  • Top 100 DSA Interview Problems
  • DSA Roadmap by Sandeep Jain
  • All Cheat Sheets
  • Data Science & ML
  • Data Science With Python
  • Data Science For Beginner
  • Machine Learning
  • ML Maths
  • Data Visualisation
  • Pandas
  • NumPy
  • NLP
  • Deep Learning
  • Web Technologies
  • HTML
  • CSS
  • JavaScript
  • TypeScript
  • ReactJS
  • NextJS
  • Bootstrap
  • Web Design
  • Python Tutorial
  • Python Programming Examples
  • Python Projects
  • Python Tkinter
  • Python Web Scraping
  • OpenCV Tutorial
  • Python Interview Question
  • Django
  • Computer Science
  • Operating Systems
  • Computer Network
  • Database Management System
  • Software Engineering
  • Digital Logic Design
  • Engineering Maths
  • Software Development
  • Software Testing
  • DevOps
  • Git
  • Linux
  • AWS
  • Docker
  • Kubernetes
  • Azure
  • GCP
  • DevOps Roadmap
  • System Design
  • High Level Design
  • Low Level Design
  • UML Diagrams
  • Interview Guide
  • Design Patterns
  • OOAD
  • System Design Bootcamp
  • Interview Questions
  • Inteview Preparation
  • Competitive Programming
  • Top DS or Algo for CP
  • Company-Wise Recruitment Process
  • Company-Wise Preparation
  • Aptitude Preparation
  • Puzzles
  • School Subjects
  • Mathematics
  • Physics
  • Chemistry
  • Biology
  • Social Science
  • English Grammar
  • Commerce
  • World GK
  • GeeksforGeeks Videos
  • DSA
  • Python
  • Java
  • C++
  • Web Development
  • Data Science
  • CS Subjects
@GeeksforGeeks, Sanchhaya Education Private Limited, All rights reserved
We use cookies to ensure you have the best browsing experience on our website. By using our site, you acknowledge that you have read and understood our Cookie Policy & Privacy Policy
Lightbox