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
1
u/egg1st May 09 '15
Falls down if you have a set like [5, 53, 50, 4, 9], because the concatenation of 5 & 4 will give you a higher number than 53. This code gives you 9535054, but the correct answer is 9545350.