GeeksforGeeks » Algorithms

Algorithm to remove duplicates from array

(3 posts)
  • Started 8 months ago by learner
  • Latest reply from Aashish Barnwal
  1. learner
    guest
    Posted 8 months ago #

    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?

  2. aksiith
    Member
    Posted 2 months ago #

    Using BST will provide nlgn solution.Space complexity will be O(n).

  3. Dedicated Programmer
    Member
    Posted 1 month ago #

    Hashing can be used to solve our purpose.


Reply

You must log in to post.

RSS feed for this topic