求单链表中有效节点的个数(如果有头结点,不统计头结点)
public static int getLenth(Node head){ if (head.next == null) { return 0; } int lenth = 0; //让辅助指针指向头结点的下一个,就没有统计头结点 Node temp = head.next; while(temp != null){ temp = temp.next; lenth++; } return lenth; }
真的好拼呀
分析一下,小程序为什么不能分享朋友圈?
介绍一下标准的CSS的盒子模型?
请你谈谈Cookie的弊端
基于TCP协议建立连接和结束连接的过程
真的好拼呀