最后更新于4年前
这有帮助吗?
var removeNthFromEnd = function(head, n) { if(!head) return null; let fast = head,slow = head,pre = head,p1 = head