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

百度3.4.8 #74

Open
kywvane opened this issue Mar 18, 2020 · 0 comments
Open

百度3.4.8 #74

kywvane opened this issue Mar 18, 2020 · 0 comments

Comments

@kywvane
Copy link

kywvane commented Mar 18, 2020

1.建立一个键值对
2.遍历数组
3.每次读到一个数
3.1如键值对为空,则填入这个数及值1
3.2如数与键相同,则值加1
3.3如键与数不同,则值减1,当值为0时清除键
4.可运行到数组结尾,也可判断当值大于等于数组剩余未遍历元素个数的二分之一时退出

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