</>OfferRetriever
DashboardDiscuss
NEW
Fall SalePremium questions, over 25% offUnlock all premium questions for over 25% off
$10.42$7.50/mo

--

:

--

:

--

:

--

Get this deal
Back to Microsoft Questions

Maximize Edge Label Sum in Graph

Medium

Question

The graph is undirected and has n nodes. Its links come in edges; an entry [a_i, b_i] means a_i and b_i are directly linked. Give every node its own integer label between 1 and n, so that no two nodes share a label. An edge (u, v) is worth the two labels at its ends added together, label(u) + label(v). ...

Asked at:Microsoft

More Microsoft interview questions

All Microsoft interview questions
OfferRetriever

Master technical interviews with real questions from top companies. Build your confidence and career.

PRODUCT
PricingDashboardDiscussOfferRetriever vs LeetCodeCompare
LEGAL

© 2026 Purple Business Holdings LLC. All rights reserved. See Terms of Service.