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

更新 Validate() 函数 #15

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

更新 Validate() 函数 #15

wants to merge 1 commit into from

Conversation

ziyitony
Copy link

@ziyitony ziyitony commented Apr 16, 2020

  • 使用两个 for 循环来更新该函数, 没有增加时间复杂度/空间复杂度, 但是更容易理解.

  • 使用短赋值语句来减少变量声明.

  • left 总小于等于 position, 故去掉判断.

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.

1 participant