You are given a MutableList of strings and an Integer in the input. Remove an element at the index of the specified integer.
Mutable List
Remove us
Report a typo
Sample Input 1:
a b c d
2Sample Output 1:
a b dWrite a program in Kotlin
fun solution(elements: MutableList<String>, index: Int): MutableList<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.