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

2

u/matthieum May 08 '15

There is a slight trick to number 4, in that you are interested not in the magnitude of the number per se, but its decimal representation.

Thus, you can either arrange the numbers and then convert to string, or convert to string and then arrange the strings. I suspect you've only tried the former ;)