Q34.webp
H

Q34.webp

Question: 34
(Choose 1 answer)
"Which of the following describes the correct approach for removing duplicates from a sorted linked list?"
A. Compare consecutive nodes and remove the duplicated node.
B. Sort the list again (Incorrect, but a valid distractor).
C. Set the next pointer of all nodes to nullptr.
D. Insert new nodes at the beginning of the list.

Thông tin

Category
CSD202
Thêm bởi
Hồng Nhung
Ngày thêm
Lượt xem
1,136
Lượt bình luận
1
Rating
0.00 star(s) 0 đánh giá

Share this media

Back
Bên trên Bottom