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

code[10_listImpl]bug #1

Open
Yixin-Gong opened this issue Jan 12, 2023 · 1 comment
Open

code[10_listImpl]bug #1

Yixin-Gong opened this issue Jan 12, 2023 · 1 comment

Comments

@Yixin-Gong
Copy link

In code 10_listImpl ,Code running result is that every elem in list are equal to the latest value.Are there some thing wrong with function insert( ) or operator[ ]?

@Yixin-Gong
Copy link
Author

Yixin-Gong commented Jan 12, 2023

I fix it now,we should change ##const T & data##in ListNode to
##T data##

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

1 participant