m.n giải thích giúp em về **head_ref vs ạ!
void reverse(struct node** head_ref) {
struct node* prev = NULL;
struct node* current = *head_ref;
struct node* next;
while (current != NULL) {
next = current->next;
current->next = prev;
prev = current;
current = next;
}
*head_ref = prev;
}
(nó thành tail rồi).
83% thành viên diễn đàn không hỏi bài tập, còn bạn thì sao?