摘要: 求单链表中有效节点的个数 代码实现 public static int countNode(HeroNode head) { if(head.next == null) { return 0; } int count = 0; HeroNode current = head.next; while( 阅读全文
posted @ 2020-09-16 07:31 wsilj 阅读(186) 评论(0) 推荐(0) 编辑