arrow_back
返回选关
chevron_left
上一关
lock
下一关
Ch.2 · Level 09
顺序表去重
在有序顺序表中原地删除重复元素,保持表唯一且紧凑,空间复杂度 O(1)。
arrow_back
返回关卡库
顺序表去重
初始数组:[1, 1, 2, 2, 2, 3, 4, 4, 5]。点击运行,观察快慢指针协同前进、覆盖重复元素的过程。
1
⌘ + Enter to run
play_arrow
运行代码
guest@aq-shell:~ (bash)
terminal
skip_previous
play_arrow
skip_next
0 / 0
dock_to_left
terminal
1x