← Microsoft questions

Time taken for graph vertices of degree at most one to stop disappearing

Filed under Microsoft

Given an undirected graph where vertices with at most one connected edge vanish every second along with their edges, calculate the total seconds until vertices no longer disappear.

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 Microsoft questions

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