GeeksforGeeks » Algorithms
Algorithm to remove duplicates from array
(3 posts)-
Write a program to remove duplicate elements from an array by printing them only once? What will be the minimum time and space complexity required for this program?
-
Using BST will provide nlgn solution.Space complexity will be O(n).
-
Hashing can be used to solve our purpose.
Reply
You must log in to post.