判断带头结点的单链表为空表的条件是(),假设头指针为head。
A.this.head.next==null;
B.this.head==null;
C.this.head.next==this.head;
D.this.head!=null;
正确答案:this.head.next==null;
判断带头结点的单链表为空表的条件是(),假设头指针为head。
A.this.head.next==null;
B.this.head==null;
C.this.head.next==this.head;
D.this.head!=null;
正确答案:this.head.next==null;