Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
fb_series
#include <iostream> using namespace std; int fib(int n) { if (n<=1) { return n; } return fib(n-1)+fib(n-2); } int main () { int n; cout<<"Enter a number : "<<endl; cin>>n; int sum=fib(n); cout<<"Element at position "<<n<<" is : "<<sum<<endl; system("pause"); }
run
|
edit
|
history
|
help
0
-Wall -std=c++14 -O0 -o a.out source_file.cpp
Merge problem
Microsoft Question - MaxEmployeeAttendence (any repititions are allowed)
ContainerVector
completeBubbleSort
HI
Memory_test
Treap (making range queries(that are not possible on seg_Trees) possible with no effort) : (863D)
collection Hetero
QuickDoubly