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
- Two Characters
- Discussions
Two Characters
Two Characters
Sort by
recency
|
1124 Discussions
|
Please Login in order to post a comment
def alternate(s):
Java solution:
Here is my c++ easy solution, explantion here : https://youtu.be/WAPtXpj-PSU
C#
public static int alternate(string s) { // Step 1: Get all unique characters in the string HashSet uniqueChars = new HashSet(s);
Here is my Golang solution