The Murder Case
CodeChefOpen on judge ↗
Sherlock Holmes was trying to solve another murder case. He found a box that can be unlocked only by forming a pattern on it. Box has a matrix of LEDs of N x M on the top and K switches which can toggle some LEDs on the box. Sherlock Holmes being very smart already knew the pattern that has to be formed using the LEDs to unlock the box. He found this task a bit tedious so asks you for help. Given
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