• 點部落
  • 首頁
  • RSS
    • 登入

Ben Huang's Blog

我們總是太高估自己短期能完成的事情,太低估長期能做到的事。 Ain't Nothing To It But To Do It

2020-02-10

LeetCode: Remove Duplicates from Sorted Array

  • 65
  • 0
  • LeetCode
  • 2020-02-20

此題要求將輸入的已排序陣列移除重複的項目,必須在同一陣列下操作,最後回傳陣列之長度。

Given a sorted array nums, remove the duplicates in-place such that each element appear only once and return the new length.

...繼續閱讀 »
  • array
  • In-Place
  • 1

系列文章

標籤雲

  • 服務規範
  • 聯絡我們
© 2025 點部落 Ver. 1.0.0.0
電魔小鋪有限公司 製作、維運;登豐數位科技 提供資安檢測