You are given an empty Set and a Set of strings as input. Iterate through the non-empty Set, add all elements that start with A or a to the first Set, and return it as the result.
Mutable Set
Little more and little less
Report a typo
Write a program in Kotlin
fun solution(newSet: MutableSet<String>, oldSet: Set<String>): MutableSet<String> {
// write 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.