Skip to content

Commit

Permalink
fixed a typo in the variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
Chiga2030 committed Jan 23, 2022
1 parent 6e0ee66 commit 20ede56
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions js/sprint0/c.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ function movingAverage(array, windowSize) {
function solve() {
const n = readInt();
const arr = readArray();
const windoSize = readInt();
process.stdout.write(`${movingAverage(arr, windoSize).join(' ')}`);
const windowSize = readInt();
process.stdout.write(`${movingAverage(arr, windowSize).join(' ')}`);
}

function readInt() {
Expand All @@ -34,4 +34,4 @@ function readArray() {
var arr = _inputLines[_curLine].trim(" ").split(" ").map(num => Number(num));
_curLine++;
return arr;
}
}

0 comments on commit 20ede56

Please sign in to comment.