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
I'm following your course (thanks for it, it's helping me a lot), and I'm following the implementations along and, while doing the pop() method for the Stack class, I got stuck with the proposed implementation and, I came up with this implementation instead, that passed your tests:
had a similar issue, though your code did not work for me
actually rolled back to version seen in the proposed implementation
then found the issue actually came from the pushing part where I was missing the correct node.prev udpate
as the tests are not independant (ie they push elements then check if they popped out in the right order) you might get undefined wrongly for elements that should have been defined in the previous tests
I'm following your course (thanks for it, it's helping me a lot), and I'm following the implementations along and, while doing the pop() method for the Stack class, I got stuck with the proposed implementation and, I came up with this implementation instead, that passed your tests:
What would be the difference with yours? Am I missing something? Thank you :)
The text was updated successfully, but these errors were encountered: