javascript-datastructures-algorithms
javascript-datastructures-algorithms copied to clipboard
A minor mistake in Chapter 5
Thanks for the excellent book! I found a minor mistake in chapter05/03-DoublyLinkedList2.js :
insert(){ if () { if () { ... } else if (position === this.size()) { //error current = tail; //ok current = this.getTail(); } else { ... } } }
Thanks @richardmyu - this has been fixed in the newest edition of the book. Source code is available at the master branch
@loiane Hi Loiane. Thank you for this great book!
it seems that in the current Graph implementation, one can add duplicate edges to the adjacency list - is this expected? Thank you!
@maxim-xu You are correct, let me review the code to prevent this behavior. Thanks for pointing it out!