javascript-algorithms/src/data-structures
Seymur 53781db275
Null Reference Exception (#817)
When `n.next = tail` is true, we assign `n` to `tail` and `null` to `tail.next`, so `n.next` also becomes `null`. Then we assign `n.next.next` (because now `n.next` is `null`), we try to get `next` of `null`. That is why we should add an `else` case to check if `n.next` is not equal to `tail`.

Co-authored-by: Oleksii Trekhleb <trehleb@gmail.com>
2022-01-22 10:19:14 +01:00
..
bloom-filter Fix a grammar mistake (#396) 2020-12-20 20:09:09 +01:00
disjoint-set Upgrade dependencies and fix ESLint issues. 2020-07-26 13:06:15 +02:00
doubly-linked-list Add link to Spanish translation in Doubly-Linked list README. 2021-05-06 07:05:27 +02:00
graph Upgrade dependencies and fix ESLint issues. 2020-07-26 13:06:15 +02:00
hash-table Add getValues() method to HashTable and update LinkedList READMEs. 2020-12-11 09:14:48 +01:00
heap docs: add README.tr-TR.md (#833) 2022-01-22 10:05:55 +01:00
linked-list Null Reference Exception (#817) 2022-01-22 10:19:14 +01:00
priority-queue Add french translation for some chapters (#520) 2020-08-09 14:10:15 +02:00
queue update desc (#371) 2020-12-17 09:48:19 +01:00
stack Add french translation for some chapters (#520) 2020-08-09 14:10:15 +02:00
tree Fix typo in comment (#540) 2020-12-09 08:13:05 +01:00
trie Fix typo (#459) 2020-12-11 08:51:13 +01:00