Even Subarray
CodeChefOpen on judge ↗
You have an array of length N. A subarray is called Interesting if it contains only even numbers. You have to find the maximum length of such an Interesting subarray. You are given a code which does the given task but has some bugs (errors). You have to make changes in the given function such that the code handles all the cases for errors and generates correct output every time. ###Input: First-
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.
Sign in to chat with the tutor and save your progress.
Sign in to start