Interview Solution

Measuring programming progress by lines of code is like measuring aircraft building progress by weight. Bill Gates

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.