Computer Science, asked by swaddmasteeh5976, 8 months ago

Write a program to check whether the string is unique string or not?

Answers

Answered by anshaanyablogger
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