← All problemsSign in

Midddle Point Update

Find a continuous sub-array that adds to a specified number S in an unsorted, N-by-N, size-N, array A that only contains non-negative integers. Then, provide the subarray's left and right indexes. Return the subarray index that appears first when navigating from left to right if there are several subarrays. **Example** For a set of n=5 numbers 9,2,8,4,1 the median is the third number in the sor

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