0
点赞
收藏
分享

微信扫一扫

leetcode-26-Remove Duplicates from Sorted Array

爱奔跑的读书者 2023-08-23 阅读 44


Use something like two pointer, a pointer to indicate current position, another to indicate next append position of the new array. Since do not need to actually decrease the length of vector, we just need to told the length of the vector then it will get the length of the vector.


举报

相关推荐

0 条评论