trekhleb / javascript-algorithms

📝 Algorithms and data structures implemented in JavaScript with explanations and links to further readings
MIT License
185.07k stars 29.85k forks source link

addressed issue 1033, changed while to if in LinkedList and add new b… #1037

Open tmichell13 opened 1 year ago

tmichell13 commented 1 year ago

This change resolves #1033 by changing the 'while' statement in src/data-structures/linked-list/LinkedLists.js delete() method to an 'if', and adding the 'new' keyword before initializing an Array in src/data-structures/hash-table/HashTable.js constructor() method.

Dawood3108 commented 10 months ago

.