README.md
December 5, 2022 ยท View on GitHub
Description
Some functions to show the use of recursion in programming. This contains Fibonacci,Towers of Hanoi,Ackermann function
More Info
| Submitted On | |
| By | Callens Bob |
| Level | Beginner |
| User Rating | 4.0 (8 globes from 2 users) |
| Compatibility | C, C++ (general) |
| Category | Math |
| World | C / C++ |
| Archive File |
Source Code
//Towers of Hanoi
//example: you have 4 disks and have to move all disks from 1 to 3. solve(4,1,3,2);
void solve(int disks, int src,int dest, int stack)
{
else {
}
//Fibonacci numbers
int fab(int n)
{
}
//ackermann function
int ack(int m,int n)
{
}