chore: update spelling mistakes (#1790)

* chore: update spelling mistakes

* chore: add spellignore

* chore: update sp mistakes
This commit is contained in:
Ridge Kimani
2025-09-04 07:02:03 +03:00
committed by GitHub
parent 19ecb18f0a
commit 08d8c6b674
21 changed files with 29 additions and 27 deletions

View File

@@ -21,7 +21,7 @@ function UnionFind(n, key) {
}
let cnt, length
// init Union Find with number of distinct groups. Each group will be referred to as index of the array of size 'size' starting at 0.
// Provide an optional key function that maps these indices. I.e. for the groups starting with 1 provide function(a){return a-1;}. The default value is function(a){return a;}.
// Provide an optional key function that maps these indices. I.e., for the groups starting with 1 provide function(a){return a-1;}. The default value is function(a){return a;}.
key =
key ||
function (a) {