We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- Algorithms
- Strings
- Alternating Characters
- Discussions
Alternating Characters
Alternating Characters
Sort by
recency
|
1924 Discussions
|
Please Login in order to post a comment
swift simple solution
def alternatingCharacters(s): # Write your code here list1=[] for i in range(0,len(s)-1): if s[i] == s[i+1]: list1.append(s[i])
C++ (more at https://github.com/IhorVodko/Hackerrank_solutions/tree/master , feel free to give a star:) )