Chef The Admin
CodeChefOpen on judge ↗
Chef is an administrator of Codechef. He has come to know that cheating is going on his platform. He has a record of users as a binary string, where **'0'** means the user has not cheated. So he wants to ban those cheaters but he may or may not be able to ban all the cheaters. He can only ban a cheater if he has no other cheater on his adjacent. Eg: $ 101011 $ He can ban $ 2 $ cheaters, indexes ar
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.
Sign in to chat with the tutor and save your progress.
Sign in to start