Chef and his Ex Girlfriends
CodeChefOpen on judge ↗
Chef has been into many relationships,loves breaking up and blocking his ex-girlfriend's number.He had a breakup recently with Chefina and was trying to forget her phone number but wasn’t able to.His friend Dr.Krishna,a neuroscience professor suggested chef to try a simple trick.The trick was to take parts of the number which have the same digits consecutively and delete them in one go. Formally,
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.
Sign in to chat with the tutor and save your progress.
Sign in to start