← All problemsSign in

Mary Jane and Attendance

Peter Parker reaches his class and he is not able to find Mary Jane there. So he got curious whether Mary Jane is actually present on that day or not. Peter somehow finds attendance data of the day. The data is in form of an integer array, which contains the roll numbers of the students present on that day. Help Peter in finding whether Mary Jane is $PRESENT$ or $ABSENT$, if her roll number is $

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