The Nodal Network
CodeChefOpen on judge ↗
A graph is to be constructed with two types of nodes in it. A and B type. For each of A type node, there must be two B type stations equidistant from each A type node. Initially there is only one node having index 0, where the main node is located. Over a period of time, more and more nodes are extended. There are two functions that can be performed using these nodes(X): Type P: Create a new node
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