Bit-bit
CodeChefOpen on judge ↗
Very similar to the childhood game kit-kit, Chef has found a game bit-bit. In bit-bit, there are N number of boxes with a number written on it. The number specifies, the number of steps that can be taken in forward direction. In case of 0 (zero) written on the box, no forward steps can be taken. The game starts with the player being on the first box, and he needs to reach the last box. Chef wants
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