Breaking Bass
CodeChefOpen on judge ↗
Our hero Heisenberg is fed up of making meth. Now he wants to become a bassist. For that he went to the best bassist in town. But the bassist wants him to solve a problem first. Since Heisenberg is not good at coding you need to help him. You are given a list of N eligible bachelors and a list of N eligible brides. Each guy and girl have an attraction value . You need to pair up the guys and girl
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