Your function receives two sets of Int. Return a new set of elements in the first set that are multiples of the size of the second set.
Mutable Set
Division problem
Report a typo
Sample Input 1:
10 11 14 16 2 1
2 1Sample Output 1:
10 14 16 2Write a program in Kotlin
fun solution(first: Set<Int>, second: Set<Int>): Set<Int> {
// 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.