Write a function called has_duplicates that takes a string parameter and returns true if the string has any repeated characters. Otherwise, it should return false.

Respuesta :

The function to solve the algorithm that is required to return Boolean (True of False) if the parameter contains duplicate character will be implemented using the Kotlin Programming Language.

// Here is the algorithm

fun has_duplicates (parameter: String) : Boolean{

for (i in parameter.size-1){

if(parameter[i]==parameter[i+1]){

return true

} else{

return false

}

}

}

Learn more about Algorithm and Data structure Here:

https://brainly.com/question/24268720

ACCESS MORE