← Flipkart questions

Minimum nodes to turn on all edges in a tree

Filed under Flipkart

Given a tree with n nodes and n-1 edges, find the minimum number of nodes to select such that every edge is incident to at least one selected node (Minimum Vertex Cover on a tree).

You've read your 3 free write-ups

Sign up free to keep reading. Your account opens the first 10 questions of every company.

Related Flipkart questions

Collected from public candidate posts and coding forums. Updated Nov 2026.