← All problemsSign in

The Mad Scientist

Mad scientist Hououin Kyouma is on a mission to save the world using his time-traveling abilities. But he cannot do it all by himself. He needs the help of Makise Kurisu, a genius girl who can help him build a time machine. Kurisu has agreed to help him, only if he can solve the following problem: Given an array $A$ consisting of $N$ integers, find the length of the maximum subarray such that the

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