mirror of
https://github.com/youngyangyang04/leetcode-master.git
synced 2025-07-08 08:50:15 +08:00
Merge pull request #2336 from DanielChungYi/patch-1
[typo fix]: Update kama54.替换数字
This commit is contained in:
@ -46,7 +46,7 @@
|
||||
|
||||
从前向后填充就是O(n^2)的算法了,因为每次添加元素都要将添加元素之后的所有元素整体向后移动。
|
||||
|
||||
**其实很多数组填充类的问题,其做饭都是先预先给数组扩容带填充后的大小,然后在从后向前进行操作。**
|
||||
**其实很多数组填充类的问题,其做法都是先预先给数组扩容带填充后的大小,然后在从后向前进行操作。**
|
||||
|
||||
这么做有两个好处:
|
||||
|
||||
|
Reference in New Issue
Block a user