Can anybody tell me how to implement a program to check a string contains all unique chars ?
Use a 256-entry array. Fill it with 0. Now traverse the string setting the corresponding entry in the array to 1 if it's 0. Otherwise, there are repeated chars in the string.