Suppose I want remove duplicates from a string. I decided to use a boolean array of length 256 which stores whether a particular character has already occurred or not. I can traverse the string and can remove all duplicate with the help of this auxiliary boolean array.
My question is that "is this algorithm is in-place ?"
I think it is using constant amount of space which not going to change with the size of the input it should be in-place. Please correct if I am wrong.