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

习题6.1有错误 #6

Open
sanbeichahegongheguo opened this issue Jan 18, 2022 · 0 comments
Open

习题6.1有错误 #6

sanbeichahegongheguo opened this issue Jan 18, 2022 · 0 comments

Comments

@sanbeichahegongheguo
Copy link

Describe the bug
A clear and concise description of what the bug is.

Demos/gop_homework/ch6/homework/test6.1/main.go

func (i *IntSet) Len() int {
return len(i.words)
}

这里 len(i.words) 是 bits 的长度,而不是需要的长度。不知道你的测试是如何通过的。

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