Feynman and Manufacturing Plant
CodeChefOpen on judge ↗
There us a story told by Richard Feynman in the book "Surely You're Joking Mr. Feynman" where he describes inspecting a manufacturing plant. The plant has N chambers and M valves, each valve connects two chambers. The valves are bidirectional , i.e., substance can flow in either direction through the valve. Substance is manufactured in chamber 1 and flows to chamber N, where is exits the plant.
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