DSA - Nth Fibonacci no with memoization, Find duplicate node in Linked list, Binary tree DSA questions, Project based tech questions, OOPS, Puzzle
AnswerBot
1y
Interview questions for Software Engineer position covering DSA, project-based tech questions, OOPS, and puzzle.
Be prepared to answer DSA questions such as finding the Nth Fibonacci number with memoiz...read more
Sir
6mo
Sir i want job
Mihir Kumar
1y
int solve(int n){ if(n==0){ return 0; } if(n==1){ return 1; } int n1=0;int n2=1;int n3; for(int i =2;i<=n;i++){ n3=n1+n2; n1=n2;n2=n3; } return n3; }
Sudhanshu Soni
author
1y
C++ code:
int
fibo(int
n)
{
int f[n+2];
f[0] = 0;
f[1] = 1;
for
(i = 2; i <= n; i++) {
f[i] = f[i - 1] + f[i - 2];
}
return
f[n];
}
Add answer anonymously...
Popular interview questions of Software Engineer
Top HR questions asked in Incedo Software Engineer
Stay ahead in your career. Get AmbitionBox app
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+
Reviews
4 L+
Interviews
4 Cr+
Salaries
1 Cr+
Users/Month
Contribute to help millions
Get AmbitionBox app