0
/ 1.0
Complete the function countStrLongerThan()
so that it returns the count of Strings in the array names
that are longer than minLen
. You...
Complete the function countStrLongerThan()
so that it returns the count of Strings in the array names
that are longer than minLen
. You must check for Strings in the array names
that are not null
. If an element in names
is null, then ignore it.
Examples:
countStrLongerThan({"pedro","maria"},3) -> 2
countStrLongerThan({"juan",null,"maria"},4) -> 1
Your feedback will appear here when you check your answer.