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

Show parent comments

55

u/johnw188 May 08 '15

Yes, but mechanical engineers get questions about analyzing random nonsensical physical situations, much as software engineers get questions about random nonsensical software tasks.

For example, I interviewed with Apple as a meche a few years back. Got asked the following: Take a glass of water and place it on a record player, then start the player spinning. Does the water spill out of the glass before the glass tips over?

13

u/Tysonzero May 08 '15

Is the answer: "it depends on the water level"?

18

u/johnw188 May 08 '15

The answer is it depends on everything. I ended up deriving a set of equations that relate all of the parameters to each other, so a general solution to the problem given any set of inputs.

1

u/[deleted] May 09 '15

Did you get the job?

→ More replies (1)