You are viewing a single comment's thread. Return to all comments →
KOTLIN
fun twoStrings(s1: String, s2: String): String { var set1 = s1.toSet() var set2 = s2.toSet() val containsSameLetter = set1.any {it in set2} return if (containsSameLetter) "YES" else "NO" }``
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 →
KOTLIN