loveBabbar / CodeHelp-DSA-Busted-Series

This repo is creating providing students easy access to all the programs taught under Codehelp's DSA Busted Series.
3.28k stars 2.37k forks source link

fibonnaci series in recursion #455

Open ronnygaur opened 1 year ago

ronnygaur commented 1 year ago

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

SimranKumari93 commented 10 months ago

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); } };