题目如下: Given a linked list, remove the n-th node from the end of the list and return its head. Example: Given l…
标签:双指针
LeetCode日记--75. Sort colors
碎碎念时间:好吧这是发烧那天做的题,一直没空写,就现在写一下吧。(对了吐槽一下天天快递,让我站在西南门等了快两小时,本来以为今晚可以把之前欠的Lc日记都写了,看起来是没希望了)。 题目如下: Given an array…
LeetCode日记--27. Remove Element
碎碎念时间: 今天没咋睡够,做一道easy做了半天。不过算法题会越做越兴奋倒是真的。嘻嘻,瞬间不困了,甚至觉得可以开一把文明战到天亮:) PS 因为发烧落下了好几篇LeetCode日记,尽量赶尽量赶。 题目如下: Giv…
LeetCode日记--26.移除排序数组中的重复字符
昨儿发烧到38.5℃,还以为要被校医院拉去隔离了,幸亏没有。今天补上前天写的题。 题目如下: Given a sorted array "nums", remove the duplicates in-place suc…