Remove duplicate characters in string

Write code to remove the duplicate characters in a string
without using any additional buffer NOTE: One or two additional variables are fine
An extra copy of the array is not.
This question is from the book “cracking thecoding interview”.

Time complexity= O(n^2)

Leave comment if you have any problem with code.
Recursive insertion sort

About Gaurav Vichare

Hi , I am Gaurav : author of this blog , future engineer and a Photoshop lover . You can connect with me on Facebook , cirlce me on Google or follow on Twitter

Speak Your Mind

*


5 − = three

CommentLuv badge