Closed alisherbek-rakhimov closed 2 years ago
btree-js doesn't seem to like "0" 🤣 because when I try to insert "0" it says "Please enter a valid integer."
for the time, you can open the developer console then go to sources and edit the seed function in btree.js and replace it with your code (using this.insert(my_value, true);
to insert your desired numbers)
if any of your numbers is a "0" you will need to make the following changes in btree-node.js
(I made a pull request)
i believe fixed in https://github.com/yangez/btree-js/pull/4
When i seed with 0 random numbers, numbers are not added (I enter a number and click "add" button, but nothing happens).