← All problemsSign in

Did chicken cross the road

$Bumper$ the chicken wants to cross the road, but why? Because it's his first date and his girlfriend Dora the ̶e̶x̶p̶l̶o̶r̶e̶r̶ chicken is on the other side of the road. The lockdown just ended and there is huge traffic on the road. While crossing, Bumper can walk $Forward$ $(F)$ to cross the road or $Backward$ $(B)$ to avoid getting hit by a $Chicken$ $Car$. Given a sequence of forward an

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