Solución
solution.tsTypeScript
public class Solution {
public int countWordsByLength(String sentence, int length) {
String [] words = sentence.split(" ");
int total = 0 ;
for (String word : words){
if (word.length() == length){
total++;
}
}
return total;
}
}0respuestas