Interview Solution

When someone says, I want a programming language in which I need only say what I want done, give him a lollipop. Alan Perlis

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.