Chapter 2 | Linked Lists
hash,否则只能o(n平方)
2.2 Implement an algorithm to find the nth to last element of a singly linked list.
先遍历链表得到长度s,再从头向尾移动s-n。原解是栈,也ok,前提是让用额外的空间
没有头节点的时候就是把d的数据移动到了c上,真是trick...但尾节点要注意用trick来保证不被遍历到
实现加法计算。。进一。
hash所有节点的指针值。