Rounak-chauhan / Recursion-Basics-to-Advanced

This repo contains all the questions and their solutions (in Java) which are discussed in the Recursion playlist of Striver

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Recursion Basics to Advanced

This repo contains all the questions and their solutions (in Java) which are discussed in the Recursion playlist of Striver

Q1 Print a name N times using Recursion

Solution

Q2 Print numbers from 1 to N using Recursion

Solution

Q3 Print numbers from N to 1 using Recursion

Solution

Q4 Print numbers from 1 to N using Backtracking

Solution

Q5 Print numbers from N to 1 using Backtracking

Solution

Q6 Print Sum of first N natural numbers

Solution

Q7 Print Product of first N natural numbers

Solution

Q8 Reverse an Array

Solution

Q9 Check if the given string is a palindrome or not

Solution

Q10 Print fibonacci number of the given index

Solution

Q11 Print all subsequences of the given array

Solution

Q12 Print all subsequences of an array having sum K

Solution

Q13 Print any one subsequence of an array having sum K

Solution

Q14 Count the subsequences of an array having sum K

Solution

More questions and their solutions will be added soon...

About

This repo contains all the questions and their solutions (in Java) which are discussed in the Recursion playlist of Striver

License:MIT License


Languages

Language:Java 100.0%