Which of the following approaches can be used to remove duplicates from a sorted array?

1
Traverse the array, if the current element is the same as the previous element, skip it.
2
Use a hash table to store elements and check for duplicates.
3
Sort the array first, then remove duplicates.
4
Use a stack to track unique elements.

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation