You are viewing a single comment's thread. Return to all comments →
Scala
def matchingStrings(strings: Array[String], queries: Array[String]): Array[Int] = { queries.map(q => strings.count(_ == q)) }
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 →
Scala