Skip to content

Latest commit

 

History

History
25 lines (16 loc) · 453 Bytes

File metadata and controls

25 lines (16 loc) · 453 Bytes

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.