← All problemsSign in

Postpone Assessment

A rama has to qualify in $N$ assessments to become a chef. The schedule of assessments will be for $K$ days. Each assessment will happen on a different day(array $A$). $ai$ = index of day which he has assessment. For example, $N$ =3, $K$=12, $A$=$[3,5,9]$ .Before the 1st assessment, Rama will have a gap of 2 days, before the 2nd he will have 1 day and before the third he will have a gap of 3 da

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