Rahul and Puzzle
CodeChefOpen on judge ↗
Rahul is good at mathematics. So one day Tarun decided to test his skills and gives him a puzzle to solve. and Puzzle is that There is a rope of length $N$ centimeter. You have to cut the segments of rope but only in integer units. At least one cut is necessary. You have to find out the total way in which the rope can be cut. Since Rahul is unable to solve that puzzle, so Help Rahul to solve that
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