Remove Duplicated Characters In Given String

In a given string, the following code removes duplicated characters within O(n) time and does not increase memory space:

Sourcecode is here. Many thanks to Xuan, Yinghai and Shiqi.

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注

%d 博主赞过: