Closed Yamiqu closed 2 years ago
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
undefined
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.
insert
this line is reading out of bounds, will get return of
undefined
. Instead of getting the last element in the linked list as we expectedI 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.