ziyitony
Results
4
issues of
ziyitony
校正一处翻译, 原翻译有出入
修改 typo.
使用 range 关键字, 将 `current.isPathEnd = true` 移到循环外, 避免判断.
* 使用两个 for 循环来更新该函数, 没有增加时间复杂度/空间复杂度, 但是更容易理解. * 使用短赋值语句来减少变量声明. * `left` 总小于等于 `position`, 故去掉判断.