OptiverSoftware EngineerSoftware DeveloperQuestion #44

Given a sentence s and a list of word pairs, where each pair consists of strings a and b indicating that word a can be converted to word b (but not necessarily vice versa), determine the minimum length sentence you can translate the original sentence to. If there is more than one shortest sentence, return the lexicographically smallest one.

Unlock the Full Solution

Enter your email to get the detailed step-by-step solution to this Optiver interview question, plus access to free interview prep resources.

We'll also send you a free HFT mock interview video.

Get All 120+ Optiver Questions with Solutions

Plus 16+ hours of video lectures, resume tailoring, and 1:1 mentorship from quants.

Schedule a Call