CSD201_-_FA_2023_-_FE_1031.webp
Mai92

CSD201_-_FA_2023_-_FE_1031.webp

  • Media owner Mai92
  • Ngày thêm
Answer (Choose 1 answer)
Consider the fun() method in a singly linked list of integers below:
Integer fun()
{ if (isEmpty()) return null;
Integer x = head.info;if (
head == tail)
head = tail = null;
else head = head.next;
return(x);
} Specify the correct statement about the fun() method in the code above (choose the most suitable one).
A. It removes and returns the first element of the list
B. It removes and returns the last element of the list
C. It removes and returns the second element of the list
D. It returns the first element of the list

Exit 5

Thông tin

Category
CSD201
Thêm bởi
Mai92
Ngày thêm
Lượt xem
4,502
Lượt bình luận
32
Rating
0.00 star(s) 0 đánh giá

Image metadata

Filename
CSD201_-_FA_2023_-_FE_1031.webp
File size
70.5 KB
Dimensions
1926px x 906px

Share this media

Back
Bên trên Bottom