← All problemsSign in

Ankita and Weird Sequence

Today is Ankita's $18$th birthday so her father gave her an ***even*** sequence of numbers as she likes numbers extremely. Ankita has a weird fascination towards even sequence of numbers $A_1, A_2, .... A_n$ whose $A_i=A_{i+2}$ and exactly has two distinct numbers. She calls this kind of sequence **Weird Sequence**. The sequence his father gifted may or may not be a **Weird Sequence**, so as a f

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