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

readme 改进建议 #1

Open
yydcool opened this issue Jan 29, 2017 · 0 comments
Open

readme 改进建议 #1

yydcool opened this issue Jan 29, 2017 · 0 comments

Comments

@yydcool
Copy link

yydcool commented Jan 29, 2017

  1. 最好一开始说一下这个算法产生的输出是什么, N个人选1个?还是产生一个排名?

看最后一句话猜,感觉是要产生一个排序是吗?
“对比每个人的 secretNumber 与 luckyNumber 的差值,按照差值排序,即为抽奖的结果。”

  1. 先写一个简单版(算法A),然后说算法A为什么不好,问题在哪里。然后才说你的改进,加入hashsalt等等,这样得到算法B.
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