0080. Remove Duplicates from Sorted Array II
我相信看好題目原本是什麼意思,並且要求自己在給出code的時候,先提出正確的版本是基本共識。(最起碼要能過LeetCode的submit這樣合理吧?)
"Given a sorted array nums, remove the duplicates in-place such that duplicates appeared at most twice and return the new length."
如果您對於題目不清楚,容我幫您翻譯一次:
給定一個已排序的陣列nums,將其中重複出現...
desolve.hashnode.dev1 min read