Given a string implement a function which returns true if string contains at least one repeated character, otherwise
it returns false.
repeated_char?("abc") # false"
repeated_char?("aabc") # true
repeated_char?("aabcc") # true| Name | Name | Last commit date | ||
|---|---|---|---|---|
parent directory.. | ||||
Given a string implement a function which returns true if string contains at least one repeated character, otherwise
it returns false.
repeated_char?("abc") # false"
repeated_char?("aabc") # true
repeated_char?("aabcc") # true