SinglyLinkedList

实现: https://github.com/bsun33/dataStructureAndAlgo.git

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

       

posted on 2019-07-29 02:13  sankakun  阅读(126)  评论(0)    收藏  举报

导航