Content-->Convert the function to a non-recursive function using the simulating recursion method using stack. int F(int n) { if(n<=1) return 1; int a=n+F(n-1); int b=n*F(n/2); int c=n-2-(a+b)%2; int d=F(c); return a+b+d; }
-
Notifications
You must be signed in to change notification settings - Fork 0
SondosEmara/Programming-Concept
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published