← All problemsSign in

Game H

Ashish's friend gives him a task. He wants you to help him complete that task. He is given an array of positive integers along with some queries which he need to answer. These queries are of two types: - $1$ $i$ $K$ : In this query perform the following operation (you don't need to print anything for query of this type) on the element present at index $i$, If $\bigl($ $\bigl($ $\bigl($ $A[i

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start