此題要求將輸入的已排序陣列移除重複的項目,必須在同一陣列下操作,最後回傳陣列之長度。
Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.
此題要求將輸入的已排序陣列移除重複的項目,必須在同一陣列下操作,最後回傳陣列之長度。
Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.