You are given a Set of strings and a String as input. Remove the given string from the Set and return the result.
Mutable Set
Subtraction
Report a typo
Sample Input 1:
Hello it's you me
youSample Output 1:
Hello it's meWrite a program in Kotlin
fun solution(elements: Set<String>, element: String): MutableSet<String> {
// 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.