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...
Incedo Software Engineer Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
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

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter