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

3

u/entumba May 08 '15

I would just convert these all to strings, run every possible combination through a concatentator, then (INT) all the results and look for the largest. Super easy to code. It is a wasteful implementation, in terms of cycles, but for an interview, who cares?

2

u/0pyrophosphate0 May 08 '15

for an interview, who cares?

Not the interviewer, you hope.

1

u/goomyman May 08 '15

this is the fastest code to write that would be guaranteed.

I bet given an hour only about 10% of less of programmers here could solve all 5 on a computer let alone a white board with pressure.

And lets be honest you really only have 45 minutes after chatting and then you spend about 10 minutes clarifying the questions.