Or Matrix
CodeChefOpen on judge ↗
Fluffy the squirrel is playing a game with Flippy the bird. Flippy the bird thinks of an array of integers a. After that, he constructs a 2D array of integers b such that bi, j = ai or aj for all i, j. (You may learn about the or bitwise operator here : https://en.wikipedia.org/wiki/Bitwise_operation) However, to make the game more challenging, Flippy doesn't given Fluffy the entire array b. Inst
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