Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

list.add seems to have a minor mistake #5

Open
Rui-L opened this issue Jan 19, 2017 · 2 comments
Open

list.add seems to have a minor mistake #5

Rui-L opened this issue Jan 19, 2017 · 2 comments

Comments

@Rui-L
Copy link

Rui-L commented Jan 19, 2017

I think this should be if l.Len() == index {
https://github.com/arnauddri/algorithms/blob/master/data-structures/linked-list/linked_list.go#L82

@shengzhch
Copy link

if i.Len() <= index better?

@Mohammadjafari80
Copy link

I actually corrected it. here is my pull request #21

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants