题解 | #输出单向链表中倒数第k个结点#
输出单向链表中倒数第k个结点
https://www.nowcoder.com/practice/54404a78aec1435a81150f15f899417d
while True: try: n=int(input()) nums=input().split() k=int(input()) print(nums[-k]) except: break
输出单向链表中倒数第k个结点
https://www.nowcoder.com/practice/54404a78aec1435a81150f15f899417d
while True: try: n=int(input()) nums=input().split() k=int(input()) print(nums[-k]) except: break
相关推荐