Dhapu and the Call Stack
CodeChefOpen on judge ↗
Dhapu is greatly interested in programming. She likes to break her programs into functions or subroutines. But sometimes, she loses track of which function her program is executing and from which function was it called. So, she read about the Call Stack which is a hidden stack used in High-Level Programming Languages to store information about the active subroutines of a computer program. Can you
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