You are viewing a single comment's thread. Return to all comments →
Java:
public static List matchingStrings(List strings, List queries) { // Write your code here
List result = new ArrayList<>();
for (String string : queries) {
int counter = 0; for (String seek : strings) { if(seek.equals(string)){ counter ++; } } result.add(counter);
}
return result; }
Seems like cookies are disabled on this browser, please enable them to open this website
Sparse Arrays
You are viewing a single comment's thread. Return to all comments →
Java:
public static List matchingStrings(List strings, List queries) { // Write your code here
List result = new ArrayList<>();
for (String string : queries) {
}
}