Interview Solution

People think that computer science is the art of geniuses but the actual reality is the opposite, just many people doing things that build on each other, like a wall of mini stones. Donald Knuth

Validate Unique

Language Java | Level Intermediate | Category Interview Problems | July 24, 2015 4:52 pm

Comments


Interview Problem

validate unique characters in given string.
Write a program to implement an algorithm to determine if a string has all unique characters.
Example:-
Given string "hello" return false
Given string "wel" return true


Output

   					 
'hello' contains unique chars:false
'true' contains unique chars:true


				    

Comments



Please login to add comments.