← All problemsSign in

Turing Army

Turing Land has lots of armies. Given an array of $A$ of length $n$ denoting the power of weapons available in Turing Land. According to the rules of Turning Land: - There are $n-k+1$(you are given the value of $k$) armies in Turing Land. - Each of the army can access $k$ weapons. - The $i^{th}$ army can access the subarray of weapons between indices $i$ and $i+k-1$. - The power of the $i^{th}$ a

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