DSA - Nth Fibonacci no with memoization, Find duplicate node in Linked list, Binary tree DSA questions, Project based tech questions, OOPS, Puzzle

AnswerBot
2y
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
11mo
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 & answers
A Software Engineer was asked 1mo agoQ. How can you design a REST API that allows for concurrent read and write access?
A Software Engineer was asked 1mo agoQ. What are the best practices for managing secrets in code?
A Software Engineer was asked Q. Given an array of numbers, find the second largest number.
Popular interview questions of Software Engineer
A Software Engineer was asked 1mo agoQ1. How can you design a REST API that allows for concurrent read and write access?
A Software Engineer was asked 1mo agoQ2. What are the best practices for managing secrets in code?
A Software Engineer was asked Q3. Given an array of numbers, find the second largest number.
Stay ahead in your career. Get AmbitionBox app


Trusted by over 1.5 Crore job seekers to find their right fit company
80 L+
Reviews
10L+
Interviews
4 Cr+
Salaries
1.5 Cr+
Users
Contribute to help millions
AmbitionBox Awards
Get AmbitionBox app

