Microsoft Interview Question
1,268 Interview Reviews |
Back to all Microsoft Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Development Engineer In Test (SDET) II at Microsoft:
Given the definition of a Fibonacci sequence, write a function to give the n-th term of the sequence.
| Tags: | algorithm, fibonacci See more , See less 8 |
See more for this Microsoft Software Development Engineer In Test (SDET) II Interview
Helpful Question?
Yes |
No
Inappropriate?
Answers & Comments (2)
0 of 2 people found this helpful
{
int n1=0;
int n2=1;
int x=0;
for(int i=2;i<=n;i++)
{
x= n1 + n2;
n1 = n2;
n2 = x;
}
return x;
}
Helpful Answer?
Yes |
No
Inappropriate?
To comment on this
question,
Sign In with Facebook or
Sign Up



0 of 1 people found this helpful
by Interview Candidate: