about | help | code help+videos | done | prefs |
isUnique
We call the given string unique, if the first, middle, and the last characters are the same. We also call the given string unique when the middle character and 2 characters around it are the same. Return true if the given string is unique, and false otherwise. isUnique("cat") → false isUnique("AAA") → true isUnique("a") → false ...Save, Compile, Run (ctrl-enter) |
Progress graphs:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph
Difficulty: 105
Copyright Nick Parlante 2017 - privacy