← All problemsSign in

Purple is Blind

A wise imposter turned off lights in a "codified among us game" to increase their chances of winning the game, Purple is near lights to fix it, she is assigned a task to complete in order to successfully turn on lights in the game. The task is as follows, given a sum $S$ and an array $A$ of size $N$, find whether it is possible to construct an integer AP [(Arithmetic progression)](https://www.c

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