if(~last[a[i]]){
nxt[last[a[i]]] = i;
}
你好 请问第65行这里的代码是否可以直接写为
nxt[last[a[i]]] = i;
因为 last[] 数组的初值是0 不会取到-1