链表的虚拟头结点

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_36264495/article/details/84781066
Node node=new Node(e);
node.next=head;
head=node;

等价于head=new Node(e,head);

猜你喜欢

转载自blog.csdn.net/qq_36264495/article/details/84781066
今日推荐