Aug
15
Leetcode刷題日記 - #26 Remove Duplicates from Sorted Array
題目請自行上Leetcode閱讀:https://leetcode.com/problems/remove-duplicates-from-sorted-array/
1. Sorted Array:只要講到Sorted Array就知道這跟問題應該跟2 pointer有關聯
2. Return Value, k:題目要求要把Array當中重複的數字移除,不直接宣告一個新的Array,在原本的Array裡面做,最後回傳移除後的Array長度k,
2 min read