Skip to content

Instantly share code, notes, and snippets.

@RahmatSaeedi
Last active May 10, 2021 14:19
Show Gist options
  • Save RahmatSaeedi/b2c1abf77dba99646b6cb83ec6243e7e to your computer and use it in GitHub Desktop.
Save RahmatSaeedi/b2c1abf77dba99646b6cb83ec6243e7e to your computer and use it in GitHub Desktop.
CodeSignal - Arcade - Intro - JS - Make Array Consecutive 2
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