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 ca43c00 commit d64601aCopy full SHA for d64601a
19_pascal/solution/pascal-solution.js
@@ -20,7 +20,7 @@ const pascal = function (counter, currentLine = [1]) {
20
21
// If a given line of the pascal's triangle has an even amount of elements, two things are true:
22
// - the next line will have an odd amount of elements
23
- // - the two elements in the middle will always be the same. So we are save to remove one
+ // - the two elements in the middle will always be the same. So it's safe to remove one
24
if (currentLine.length % 2 === 0) {
25
joined.splice(joined.length / 2, 1);
26
}
0 commit comments