You are viewing a single comment's thread. Return to all comments →
JavaScript Solution:
let res=[]; let count=0; queries.map(s=>{ count=0; stringList.map(q=>{ if(s===q) count++; }) res.push(count); }) return res;
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 →
JavaScript Solution: