|
-
July 20th, 2004, 07:45 PM
#1
Erasing
Could you tell me how to erase elements in a vector without sorting and unique-ing it ? Do I have to create two loops running around checking for equality then delete the second if it turns to be tha same as the first although this would cost O(N*N) running time for the worst case ? Any possible ways you have in mind, because I don't have anything else in mind right now.--lol-
Thank you very much,
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|