Showing posts with label recursion. Show all posts
Showing posts with label recursion. Show all posts

Generating permutation of characters

Problem statement
Write a c program to print all the permutation of given set of number

Storing numbers in a link list in decreasing order

Problem statement
Write a c program to store numbers in link list in decreasing order,
your program should also print them

Scanning numbers in link list using recursion

Problem statement
Write a c program to recursively add element in a link list
your program should also print them recursively

Printing stack using recursion

Problem statement
Write a c program to print link list using recursion

Decimal to Binary conversion

Problem statement
Write a c program to convert a decimal number to binary number using recursion

Decimal to binary conversion using recursion of an integer

Problem statement
Write a c program to print binary equivalent of an integer number using recursion,your program should not store binary part in any kind of array

Reservation of train using recursion

 Problem statement
Write a c RECURSIVE program to maintain reservation list of a train using link list,your program should do the following it should take the name,age,sex as input of a passenger, there are 50 seats in the train,and you can take up to 20 waiting list.
[Click here for non recursive]

Equality of strings using recursion

Problem statement
Write a c program to check weather two given strings are equal or not using recursion

Printing combination of given size from given array


Problem statement
Write a c program to first take inputs from user, then print all the possible sub set of given size(the size will also be given by user)

Binary Search using Recursion

Problem Statement
Write a recursive c program to search an element using binary search

Reversing an array of numbers using Recursion

Problem Statement
Write a c program to reverse elements of an array of numbers using recursive function

Prime Number by Recursion


Problem Statement
Write a recursive c program to check weather a number is prime or not


Program to Print Power Set of Numbers

Problem Statement
Write a c program to print all the possible set of  numbers
you should take input from the user
If S is a set of n elements, the power set of S is the set of all possible subsets of S. For
example, if S = {a, b, c} , then power set(S) =  , {a} , {b} , {c} , {a, b} , {a, c }, {b, c} , {a, b, c }.
Write a recursive function to print the power set of a set of characters which are stored in
an array

Printing a String in Reverse order using recursion

Problem Statement
Write a c program to do the following
  1. scan a string of word
  2. print the words in reverse order by using recursion

Finding Maximum Number by Recursion

Problem Statement
Write a c program to take input from user and save them in an array
them calculate the maximum number using recursion

Sum of Digits of an Integer Using recursion

Problem Statement
write a recursive c program to calculating sum of digits of a number

x^n using Recursion

problem statement
write a c program which first scans two numbers x and n and then calculates xn using recursion

Value of Sine using Recursion (Taylor's theorem)

Problem Statement
Write a c program to calculate the value of sin using recursion
first scan the number x and then calculate the value of sine series(using Taylor's series)

Sum of Harmonic Series

Problem Statement
Write  a c program to calculate sum of a harmonic series using recursion
you should take the input from the user