Skip to content

addAt function in linked-list #82

Closed

Description

@TheSTL

Linked-list addAt function not working properly.
File location linked-list

Please go through the Contribution Guide here https://github.com/knaxus/problem-solving-javascript#contribution-guide before going forward with this issue.

Thanks

Activity

  1. fluffynuts commented on Oct 13, 2019

    @fluffynuts

    This appears to be working correctly in master (there's a passing test too). What's the issue?

  2. TheSTL commented on Oct 13, 2019

    @TheSTL
    MemberAuthor

    @fluffynuts

    • Case 1:
      linkedList.addAt(0, 1);
      linkedList.addAt(0 ,2);
      output : { data: 1, next: Node { data: 2, next: null } }
    • Case 2:
      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

  3. ashu8912 commented on Oct 17, 2019

    @ashu8912

    Hey Can I take this issue.

  4. ashokdey commented on Oct 17, 2019

    @ashokdey
    Member

    ok

  5. ashu8912 commented on Oct 20, 2019

    @ashu8912
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions