Last active
August 29, 2015 14:11
-
-
Save tmn/49bf6adf5403b3d3dba7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
console.time('luke9'); | |
loop1: | |
for (var i = 203; i < 498; i++) { | |
for (var j = 987; j > 501; j--) { | |
if (('' + i + j + (i+j)).split('').sort().join('') === '0123456789') { | |
console.log(Math.min(i, j)) | |
break loop1 | |
} | |
} | |
} | |
console.timeEnd('luke9'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment