Twitter Interview Question
32 Interview Reviews |
Back to all Twitter Interview Questions & Reviews
Interview questions and reviews posted anonymously by interview candidates
Interview Question for Software Engineer at Twitter:
Create an iterative version of a recursive algorithm that uses as little extra space as possible.
Helpful Question?
Yes |
No
Inappropriate?
1 of 1 people found this helpful
by Ja:
If the recursive algorithm is more complex, you can usually simulate how recursion works by creating a stack data structure to push the updated values in each time around the loop.