You are viewing a single comment's thread. Return to all comments →
Java
public static int stringConstruction(String s) { Set<Character> uniqueElements = new HashSet<>(); for (char character : s.toCharArray()) { uniqueElements.add(character); } return uniqueElements.size(); }
Seems like cookies are disabled on this browser, please enable them to open this website
String Construction
You are viewing a single comment's thread. Return to all comments →
Java