← All problemsSign in

Kim left for Vin

Paul's girlfriend Kim left him for a guy named Vin.Now he hates them even their name initials together in the form of "VK". He has no problem with "KV" . Paul has a string s . Paul wants to obtain a string without a substring "VK". So he makes some moves. In one move he can swap two adjacent letters of the string. It can be easily proved that it's possible for any initial string s. What is th

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