Insert At the beginning of Linked List

前端 未结 0 1137
傲寒
傲寒 2020-12-30 00:43
class Node:
def __init__(self,data):
    self.data=data
    self.next=None

head=Node(10)
head.next=Node(20)
head.next.next=Node(30)
head.next.next.next=Node(40)
hea         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题