One string gives an alphabet order, another string must be rearranged to follow it — in linear time. LeetCode 791, asked in Waymo onsites.
One string gives an alphabet order, another string must be rearranged to follow it — in linear time. LeetCode 791, asked in Waymo onsites.
The discussion opens with the full question.