Chef and Wave
CodeChefOpen on judge ↗
One day Chef's friend gave him a sequence a1,a2,a3,a4.....an. He told Chef to find the length of the longest appearing Even Sequence. An even sequence is a sequence formed with only consecutive even numbers(e.g. 4 8 2 14 is an even sequence but 4 8 5 14 is not). But the twist is that firstly he wants Chef to convert the sequence in a specified form where b1>= b23 >=b4 and then find the length of t
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