You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Queue.js peek returns the last element added, not the earliest still in the queue.
In the test for Queue.js the contents are listed backwards in the test, so after enqueueing 1 and 2, the contents should be 2,1 not 1,2.
In Stack.js, the tests expect, and solution code returns undefined for peek on an empty stack rather than null.
In LinkedList.js tail is not set correctly in InsertAfter.
In LinkedList the ReadMe says "The delete method removes the first node with the specified value." but the code deletes all nodes with the given value.
The text was updated successfully, but these errors were encountered:
tomcostello
added a commit
to tomcostello/algorithms
that referenced
this issue
Jul 4, 2019
In Queue.js peek returns the last element added, not the earliest still in the queue.
In the test for Queue.js the contents are listed backwards in the test, so after enqueueing 1 and 2, the contents should be 2,1 not 1,2.
In Stack.js, the tests expect, and solution code returns undefined for peek on an empty stack rather than null.
In LinkedList.js tail is not set correctly in InsertAfter.
In LinkedList the ReadMe says "The delete method removes the first node with the specified value." but the code deletes all nodes with the given value.
The text was updated successfully, but these errors were encountered: