Given a Set and a MutableList of strings, return true if all the elements in the MutableList occur in the Set; otherwise, return false.
Set
Element problem
Report a typo
Sample Input 1:
A B C D
A B C DSample Output 1:
trueWrite a program in Kotlin
fun solution(first: Set<String>, second: MutableList<String>): Boolean {
// put your code here
}
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.