← All problemsSign in

Best Actress Award

There was tough competition between Amy Adams and Cate Blanchett for Best Actress Award in Oscars 2014. The Oscar Committee decided to choose the one who wins the below game. The game rules are described as follows: 1)Amy will play first. 2)Each actress can remove 1,K or L characters from the beginning of a given string during each move. 3)The actress who obtains lexicographically Mth smallest

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start