Last active
May 10, 2021 14:19
-
-
Save RahmatSaeedi/b2c1abf77dba99646b6cb83ec6243e7e to your computer and use it in GitHub Desktop.
CodeSignal - Arcade - Intro - JS - Make Array Consecutive 2
This file contains 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
function makeArrayConsecutive2(statues) { | |
return Math.max(...statues) - Math.min(...statues) - statues.length +1; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment