← All problemsSign in

Save Aloknath from cruel King

Aloknath is a priest living in King’s Landing. Since King Joffrey strongly hates any good soul living in his land he decides to slay Aloknath. But then Margaery convinces the King to spare Aloknath's life if he passes a test. In the test Aloknath is given an array a and is asked to process 2 type’s of queries : 1. Given i,j (i Input - The first line of the input contains an integer T denoting

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