← All problemsSign in

GRAPH - Total paths

There is a man standing in front of a market, 1 represent filled area and 0 represents road. In how many ways can he visit all roads (0s), you have to print that. He cannot move through 1s, but he can move through 0s. There won't be any loops in the paths of 0s. Two paths are different if at any of the point of intersection of two roads he takes a different direction. He can revisit a road (0 or 0

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start