Solve: Missing Char
Imported By: Geoffrey Challen
/ Version: 2021.3.0
Given a non-empty String
and an Int
, return a new String
where the character at that index has been removed.
The Int
value passed will be a valid index in the original string.
For this problem we're expecting only a method.
Don't define a class, include modifiers like static or public, add import statements, or add code outside the method declaration.fun missingChar(
input: String,
toRemove: Int,
): String {
return ""
}