r/programming • u/SilasX • 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
r/programming • u/SilasX • May 09 '15
3
u/Dank_801 May 09 '15
Couldn't you solve this very easily by looping through every possible arrangement of values given by said numbers? Then at the end of every loop you could just check to see if the new number was greater than the old (previously biggest) number?
I mean sure it wouldn't be efficient at all. but its a simple way to solve the problem...