1class Solution {2 public int prefixCount(String[] words, String pref) {3 int c = 0;4 for (String s : words) {5 if (s.indexOf(pref) == 0) c++;6 }7 return c;8 }9}
WPM •0 •0
ACC •0 •0
TIME •0