Chef And hill station
CodeChefOpen on judge ↗
The chef is late for its date on a hill station. His girlfriend is waiting in a restaurant at the peak of the hill. He has to climb N number of steps to reach the peak. But the problem is he needs a password to get inside the restaurant. To find the password, he needs to figure out how many ways he can be able to reach the peak. He can take 1 step or 2 steps at a time. Help Chef find out the pas
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