employer cover photo
employer logo
employer logo

Rackspace Technology

Is this your company?

Rackspace Technology interview question

Can you write the code to generate the Fibonacci sequence?

Interview Answers

Anonymous

28 Mar 2012

HI, Thank you so much for posting this. I am going to have interview with Rack space for Linux system administrator Position. Can you please provide some question that has been asked by them so it will help me prepare for the interview. Thanks, Vishal

Anonymous

4 Sept 2012

My impulse is to use a temporary value holder as well, but I've seen a more elegant solution (in python). It's so pretty... l = 0 n = 1 print l for i in range(100): print n n = n + l l = n - l

Anonymous

17 Nov 2013

the best way is to use recursive call.. but if i was asked..i will probably end up with this def fab(): x = 0 y = 1 while y < 100: print x print y x += y y += x fab()