← All problemsSign in

Rishika and Special Number

Rishika loves the number $2020$, she tries to find $2020$ in each and every sequence she is given but unfortunately, she is now tired of looking at all these sequences, your job is to code a program that outputs "YES" if a contiguous subsequence can be removed from the sequence and $2020$ can be made or "NO" if it's not possible **NOTE:** -the array is an **0-based indexed array** ### Input

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