 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
 |
| • |
Why,
instead couldn’t we have said:
|
|
|
|
else
while (current != head &¤t-
|
|
>data
!= match) {
|
|
|
|
previous=current;
|
|
|
|
current = current->next; }
|
|
| • |
or:
|
|
|
|
else
while (current->next != head
|
|
|
&¤t->data
!= match) {
|
|
|
|
previous = current;
|
|
|
|
current = current->next; }
|
|