ABHISHEK AND HIS THEORY OF GRAPH
CodeChefOpen on judge ↗
Chef Abhishek is learning about graphs. While solving problems on graph theory, he came across a specific problem. The problem asked how many paths of length 3 there were between two specific nodes (say A and B) in the given undirected graph. He solved it quickly just by looking at the graph and is now asking you the same problem. But instead of path of length 3, he is asking for a path of length
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