Search Suggestions System at Squarepoint Capital
Medium65.2% acceptance
This problem has 100.0% frequency at Squarepoint Capital.
Problem Description
You are given an array of strings `products` and a string `searchWord`. Design a system that suggests at most three product names from `products` after each character of `searchWord` is typed. Suggested products should have common prefix with `searchWord`. If there are more than three products with...
Read full problem and hintsTopics
Also asked at 21 companies
More Squarepoint Capital Questions
Best Time to Buy and Sell StockEasySubarray Product Less Than KMediumMaximum SubarrayMediumLongest Increasing SubsequenceMediumFrog JumpHard
View all Squarepoint Capital questions