javascript-datastructures-algorithms icon indicating copy to clipboard operation
javascript-datastructures-algorithms copied to clipboard

A minor mistake in Chapter 5

Open richardmyu opened this issue 7 years ago • 3 comments

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 { ... } } }

richardmyu avatar Apr 28 '18 22:04 richardmyu

Thanks @richardmyu - this has been fixed in the newest edition of the book. Source code is available at the master branch

loiane avatar May 01 '18 13:05 loiane

@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!

easyandme avatar Jun 21 '18 22:06 easyandme

@maxim-xu You are correct, let me review the code to prevent this behavior. Thanks for pointing it out!

loiane avatar Jun 26 '18 15:06 loiane