r/programming • • May 08 '15

Five programming problems every Software Engineer should be able to solve in less than 1 hour

https://blog.svpino.com/2015/05/07/five-programming-problems-every-software-engineer-should-be-able-to-solve-in-less-than-1-hour
2.5k Upvotes

2.1k comments sorted by

View all comments

334

u/vital_chaos May 08 '15

Yeah I write Fibonacci sequences all the time. It's my hobby. /s Why do people think that writing short test functions in an interview has anything to do with actually delivering products? Sure some ditch digger might fail at these, but does it tell you anything about how well they build actual apps?

0

u/[deleted] May 08 '15

[deleted]

11

u/creepy_doll May 08 '15

Based on the descriptions of the other problems I doubt that the provided list would be so large as to cause issues with a naive recursive function

-1

u/rocky_whoof May 08 '15

Why guessing?

A naive approach calculates that entire binary tree. If its height is a hundred then it has 2101 nodes. I'd be wary of any programmer that even attepts this without realizing this is unfeasible no matter what hardware you have.

Realistically the computer will run out of memory way sooner and that limit is harder to asses, but nonetheless, even if you had infinite O(1) access memory, 2100 calculations is out of the question.

1

u/creepy_doll May 08 '15

Will you people damn well read the following responses.

I assumed he was referring to the question that explicitly referred to recursion

Even reading one comment thread beyond would have made that apparent.

1

u/rocky_whoof May 08 '15

What do you mean "you people"?

Op specifically talked about the Fibonachi question... You can't blame other people for not understanding what you meant, when you are the one who clearly didn't bother to read the comments you actually replied to.

Either edit your comment to explain you misread, or don't take it to heart when people correct you.

→ More replies (3)