We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see ourdocumentation.
There was an error while loading.Please reload this page.
原题链接
constkthToLast=function(head,k){letfast=headletlow=headletn=0while(fast){fast=fast.nextif(n>=k){low=low.next}n++}returnlow.val}