r/programming • u/svpino • 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
3
u/colechristensen May 08 '15 edited May 08 '15
5031 503 26 -> 503265031 ( B C A )526 5 27 -> 527526 ( B C A )
5031 503 14 -> 503150314 ( A B C )526 5 25 -> 526525 (A B C)
Lesson: You can't only sort by digits or length.
EDIT: Made a mistake, redone.