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
|
1943 Discussions
|
Please Login in order to post a comment
Using Python3
Here are my c++ approaches of solving this, video explanation here : https://youtu.be/KoDlxS38_ig
Solution 1 : Using loop
Solution 2 : Using regex
Haskell, admittedly a bit over-the-top but still elegant :-)
Python 3
using C# public static int alternatingCharacters(string s) {
}public static int alternatingCharacters(string s) {
}