摘要: 本文对链表的常见问题进行总结和归纳: 定义链表的数据结构如下: 问题一: 求单链表中节点的个数 unsigned int GetListLength(ListNode *pHead) { if (pHead == NULL) { //判断是否为空链表 return 0; } unsigned int 阅读全文
posted @ 2017-02-27 22:44 talk_is_cheap 阅读(430) 评论(0) 推荐(0) 编辑