Looking for a Matching Score
Asked at Amazon · Coding & Leetcode-style Questions · Difficulty: Medium
FastPrep has an extensive customer database, which contains a vast number of users. To maintain uniqueness and prevent customers from having very similar usernames, FastPrep's DB Management experts have come up with a solution. They have decided to define what is known as a "F-match" score between two usernames.
Loading the problem…