LeetCode Note
Search
Ctrl + K
處理 Array 小撇步
知道 index 情況要塞值
Copy
var
result
=
[]
// good for Memory
result[i]
=
xx
// bad
result
.push
(xx)
Previous
Array Method
Next
String Method
Last updated
5 months ago