61B-4: SLLists, Nested Classes, Sentinel Nodes
Contents
From IntList to SLList
事实是在SLList里面添加一个Intlist数据成员
Public vs. Private or Nested Classes
介绍了private
Nested Classes
|
|
addLast() and size()
讨论recursion和iteration两种思路,略过
空间换时间初见
Sentinel Nodes
- 对边界现象(空指针)的讨论和保护
- 简化代码
.addLast(x)