The Last Horcrux
CodeChefOpen on judge ↗
In order to find the last horcrux, Harry has to solve a strange 3-D matrix problem. Help Harry, so that he is able to find the last Horcrux. The problem goes as follows : A 3-D Matrix is given. Each block in this matrix contains 0 initially. The first block is defined by the coordinate (1,1,1) and the last block is defined by the coordinate (N,N,N). There are two types of queries. UPDATE x y z W
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