Skip to content

Latest commit

 

History

History

hasrepeatedcharacter

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Has repeated char

Instructions

Given a string implement a function which returns true if string contains at least one repeated character, otherwise it returns false.

Challenge | Solution

Examples

hasRepeatedCharacter("abc") // false"

hasRepeatedCharacter("aabc") // true

hasRepeatedCharacter("aabcc") // true

Hints

Hint 1 Use frequency counter.