Linked-list addAt function not working properly. File location [linked-list](https://github.com/knaxus/problem-solving-javascript/blob/master/src/_DataStructures_/LinkedList/index.js) Please go through the Contribution Guide here [https://github.com/knaxus/problem-solving-javascript#contribution-guide](https://github.com/knaxus/problem-solving-javascript#contribution-guide) before going forward with this issue. Thanks
Activity
fluffynuts commentedon Oct 13, 2019
This appears to be working correctly in
master(there's a passing test too). What's the issue?TheSTL commentedon Oct 13, 2019
@fluffynuts
linkedList.addAt(0, 1);
linkedList.addAt(0 ,2);
output :
{ data: 1, next: Node { data: 2, next: null } }linkedList.addAt(0, 1);
linkedList.addAt(0 ,2);
linkedList.addAt(2 ,3);
output:
{ data: 1, next: Node { data: 3, next: null } }There can be more cases where it can fail
ashu8912 commentedon Oct 17, 2019
Hey Can I take this issue.
ashokdey commentedon Oct 17, 2019
ok
ashu8912 commentedon Oct 20, 2019
#103