← All problemsSign in

Arrogant Bahubali

GST is famous for one of his employee named Bahubali! Bahubali, is very "ugly" and very "arrogant" at the same time! Students of GST have to stay alert, from him always! As he takes away any cell phones or electronic devices which they own! You are given list of N students using mobile phone at Aith time. You are also, given list of M activity of Bahubali, indicating his patrol time at Bith time.

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