Skip to content

Commit

Permalink
Update 0171._Excel_Sheet_Column_Number.md
Browse files Browse the repository at this point in the history
  • Loading branch information
royIdoodle authored Jan 18, 2020
1 parent a21aeb1 commit 2a90889
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
> 思路 1
******- 时间复杂度: O(N)******- 空间复杂度: O(1)******

保留两个指针 i 和 j,其中 i 是慢指针,j 是快指针。当 nums[j] 与给定的值相等时,递增 j 以跳过该元素。只要 nums[j] !== val,我们就复制 nums[j] 到 nums[i] 并同时递增两个索引。重复这一过程,直到 j 到达数组的末尾,该数组的新长度为 i。
利用parseInt可以按照进制来解析的特性,可以将英文字母轻松转换成数字

代码:

Expand Down

0 comments on commit 2a90889

Please sign in to comment.