Skip to content

Update bag_adt.py #12

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

Merged
merged 1 commit into from
Jul 25, 2018
Merged

Update bag_adt.py #12

merged 1 commit into from
Jul 25, 2018

Conversation

DA-southampton
Copy link
Contributor

我感觉在Update bag_adt.py 文件中 add 函数中对长度的判断有点问题。应该是在长度等于maxsize的时候就不应该再往里面添加元素了。

@PegasusWang PegasusWang merged commit 45924b8 into PegasusWang:master Jul 25, 2018
@PegasusWang
Copy link
Owner

感谢指出,确实是的,后边针对 maxsize 的判断都是 大于等于。

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

Successfully merging this pull request may close these issues.

2 participants