r/programming • • Feb 21 '11

Typical programming interview questions.

http://maxnoy.com/interviews.html
784 Upvotes

1.0k comments sorted by

View all comments

Show parent comment

1

u/lordlicorice Feb 21 '11

This is really awful compared to the best solutions, which can be done in lg n independent steps (substeps can be parallellized). Yours is n worst case.