You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Given a single connected undirected graph without a cycle, we start removing all leaf nodes at each step. Find the number of steps till there is only a single node left.