LeetCode Question · Nov 2021

Microsoft | Onsite | Dictonary of String versions

318 views 5 replies

Question Details

Given a dictionary of alternatives {a: [\'a1\', \'a2\'], b: [\'b2\', \'bbb\']} take a string and print all possible versions eg. Output: ab -> a1b2, a1bbb a2b2 a2bbb Any thoughts for an optimal solution?

Full Details

🔒

Unlock full leaked content

Full insider details, leaked discussions, and candidate experiences.

Get Premium →

Topics

Hash Table Strings