We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
functionmatchingStrings(strings:string[],queries:string[]):number[]{// Write your code hereletresult=[];for(leti=0;i<queries.length;i++){letcounter=0;for(letj=0;j<strings.length;j++){if(queries[i]==strings[j]){counter++;}}result.push(counter);}returnresult;}
Cookie support is required to access HackerRank
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 →
TypeScript