Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fibonnaci series in recursion #455

Open
ronnygaur opened this issue Jun 23, 2023 · 1 comment
Open

fibonnaci series in recursion #455

ronnygaur opened this issue Jun 23, 2023 · 1 comment

Comments

@ronnygaur
Copy link

the code in cpp of fibonnaci problem is blank is code love babbar sir , please push that code in the recursion list

@SimranKumari93
Copy link

the code in cpp of fibonnaci problem is blank is code love babbar sir , please push that code in the recursion list

class Solution {
public:
int fib(int n) {
if(n ==0 || n== 1)
return n;
return fib(n-1) + fib(n-2);
}
};

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants