Data Structures Interview Report
- 1of 3 votes
AnswersDesign a library to map a string of [a-zA-Z]+ to a positive integer value.
- madhurjf November 03, 2015 in India
For the strings, there could be:
An exact match. Eg: "get" will match only "get"
A prefix match. Eg: "com" will match anything that begins with "com"
The conditions are:
An exact match takes preference over prefix match.
In cases of multiple matches, the longest match takes preference.| Report Duplicate | Flag | PURGE
Algorithm
CareerCup is the world's biggest and best source for software engineering interview preparation. See all our resources.