Search Questions

Company: IBM

#1

In an e-commerce product search system, users input queries to search for items. You are given an array products of length n representing the product names and an array queries of length q containing search query strings.
Implement a function that, for each query string, returns all products that are anagrams of the query string. An anagram is any string that can be formed by rearranging the le

Asked in: IBM


Buyer: 2
Code Size:
#2

getQueryAnswers
In a machine learning model, there are n data entries stored in the model's output cache cacheEntries. Each entry contains three values:
1. timestamp – when the prediction was made.
2. modelId – the identifier of the machine learning model.
3. predictionValue – the model's output, represented as a string containing an integer.

A query handler receives q queries in th

Asked in: IBM


Buyer: 0
Code Size: