You are viewing a single comment's thread. Return to all comments →
for JS
let count = +readLine() let sortedNums = readLine().split(' ').map(i => +i).sort((a, b) => a - b) console.log(sortedNums[count - 1] - sortedNums[0])
Seems like cookies are disabled on this browser, please enable them to open this website
Day 14: Scope
You are viewing a single comment's thread. Return to all comments →
for JS