判断带头结点的单链表为空表的条件是(),假设头指针为head。
判断带头结点的单链表为空表的条件是(),假设头指针为head。
A.this.head.next==null;
B.this.head==null;
C.this.head.next==this.head;
D.this.head!=null;
正确答案:this.head.next==null;
Tag:数据结构Java语言描述 结点 指针
时间:2022-01-18 21:13:10