Karma Escape
CodeChefOpen on judge ↗
Souhardya has won a cash prize in Karmatek. But he may not be able to escape with the cash prize. He has $N$ friends who demand a party for winning the cash prize. Each of his friends also calls out the rest of them when he/she spots Souhardya. The starting point of Souhardya is marked by A. He needs to reach point marked by B. Due to construction work only $L$X$W$ path is allowed for walking, the
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