They repeated characters can appear anywhere in the string




Also, what I am looking for is more for an algorithm for removing duplicates from an array which contains(anything...may be characters, integers).


Thanks for Quick Reply....

Ya so the duplicate int, char can appear again anywhere in the array


Only condition is that no declaration of another array and that it has to run fast...I guess O(n) cuz another friend was rejected cuz his algo wasn't optimized

Jigar