Write a program to check whether the string is unique string or not?
Answers
Answered by
1
Answer:
Explanation:
String calss inbuilt method: loop through each character of string and check if the indexOf(char ch) and lastIndexOf(char ch) are same for all the characters, then string given is unique.
Similar questions