Given pairs (a, b) meaning a is directly followed by b, such as (Z,A), (A,F), (G,H), (F,G), build the single chained string that uses every pair once, e.g. Z-A-F-G-H. Return an empty string if the…
You've read your 3 free write-ups
Sign up free to keep reading. Your account opens the first 10 questions of every company.