Skip to content

Conversation

@Yamiqu
Copy link
Contributor

@Yamiqu Yamiqu commented Jul 19, 2022

this.getElementAt(this.size());

this line is reading out of bounds, will get return of undefined . Instead of getting the last element in the linked list as we expected

I also checked the insert implementation of other linked lists in the project , and didn't find this error. I think Its may be a typo or sth.

@loiane loiane merged commit ac37528 into PacktPublishing:master Aug 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants