We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9559dec commit af750c0Copy full SHA for af750c0
1 file changed
Sprint-1/fix/median.js
@@ -24,7 +24,7 @@ function calculateMedian(list) {
24
return null;
25
}
26
27
- const sorted = [...numbers].sort((a, b) => a - b);
+ const sorted = numbers.sort((a, b) => a - b);
28
29
const middle = Math.floor(sorted.length / 2);
30
0 commit comments