Skip to content

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