Tightrope Walker
CodeChefOpen on judge ↗
A boy is walking a tightrope . While walking, he either bends left or right to balance himself. If the boy bends by more than a certain angle, he falls down. The boy bends by a fixed angle everytime he decides to bend. (Same magnitude of the angle on the left side as well as right) Given the series of bends performed by the boy, find out whether he completes walking the tightrope entirely or not.
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