首页 > 其他 > 详细

SinglyLinkedList

时间:2019-07-29 09:47:34      阅读:134      评论:0      收藏:0      [点我收藏+]

1) add node to head

 

技术分享图片

special case to consider :  if empty, after add node, head and tail points to the same node

2) add node to tail

技术分享图片

 special case : if empty

3) remove first node

技术分享图片

special case : if empty || if only one node

       

SinglyLinkedList

原文:https://www.cnblogs.com/sankakun/p/11261740.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!