You are given a List of integers and an Integer in the input. Add the given Integer to the List and return the result.
Mutable List
New List
Report a typo
Sample Input 1:
8 11 13 14
1Sample Output 1:
8 11 13 14 1Write a program in Kotlin
fun solution(numbers: List<Int>, number: Int): MutableList<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.