← previousnext →
Problem
Return true if the same character appears twice in a row at least once.
Examples
hasDouble("hello") -> truehasDouble("abc") -> false
Return true if the same character appears twice in a row at least once.
hasDouble("hello") -> truehasDouble("abc") -> false