MEGHANA MITACS INTERVIEW
CodeChefOpen on judge ↗
Problem description. Wondering how Meghana got Mitacs? This is the interview question that she cracked to impress her to-be guide! You are given an array of length P which is initialized with ones initially. You are supposed to generate a new array by performing Q queries each consisting of 3 numbers - L, M and N, where you are supposed to multiply N to all the numbers between 0-based indices L
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