What is the time complexity of the given task that can be solved?

Task: Remove all duplicates from the head of a sorted single linked list such that each entry appears only once. Return the sorted linked list as well.

Example 1:

Example 2:

1
O(1)
2
O(n)
3
\(O( \sqrt n)\)
4
O(log n)

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation