You are viewing a single comment's thread. Return to all comments →
Thank you. Another but the same:
static String twoStrings(String str1, String str2) { Set set1 = new HashSet(Arrays.asList(str1.split(""))); Set set2 = new HashSet(Arrays.asList(str2.split(""))); Set set3 = new HashSet(set1); set3.addAll(set2); return set3.size() == set1.size() + set2.size() ? "NO" : "YES";
}
Seems like cookies are disabled on this browser, please enable them to open this website
Two Strings
You are viewing a single comment's thread. Return to all comments →
Thank you. Another but the same:
}