← All problemsSign in

The Coder

The heading has to do nothing with the main problem. A Weighted graph with positive integer weights on N vertices is given an integer N and an array C of positive integers of size N. There is a weighted graph with positive integer weights on N vertices such that the sum of edge weights adjacent to vertex I is C[i] and the edge weight between I and j is at most I bitwise-xor j Input First lin

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