r/programming • • May 09 '15

"Real programmers can do these problems easily"; author posts invalid solution to #4

https://blog.svpino.com/2015/05/08/solution-to-problem-4
3.1k Upvotes

1.3k comments sorted by

View all comments

1

u/[deleted] May 10 '15

The author mentions padding solutions, but not the actual correct one. If you pad the strings with the most significant digit instead of the least, you can qsort to victory.

Hokey C solution I just crufted together in a couple minutes. You can pass n values in as arguments on the command-line and you'll get the biggest number.

→ More replies (4)