Search
Write a publication
Pull to refresh
-1
0
Send message

В методе isWord допущена ошибка. Должно быть:

...

while (word.length > 1) {
if (!node.keys.has(word[0])) {
return false
}

...

В методе remove класса BST допущена небольшая ошибка. Должно быть:

...

if (data < node.data) {
node.left = removeNode(node.left, data)
return node
} else {
node.right = removeNode(node.right, data)
return node
}

...

Спасибо за статью, было полезно! Ждём цикл статей по React)
Спасибо за статью! Как дальше планируете развивать проект и библиотеку?

Information

Rating
Does not participate
Registered
Activity