Skip to content

Create Finding a Centroid.cpp#372

Open
4d4r5h wants to merge 1 commit intoarnab2001:mainfrom
4d4r5h:4d4r5h-patch-2
Open

Create Finding a Centroid.cpp#372
4d4r5h wants to merge 1 commit intoarnab2001:mainfrom
4d4r5h:4d4r5h-patch-2

Conversation

@4d4r5h
Copy link

@4d4r5h 4d4r5h commented Oct 10, 2022

Given a tree of n nodes, our task is to find a centroid, i.e., a node such that when it is appointed the root of the tree, each subtree has at most ⌊n/2⌋ nodes.

Finding a Centroid (CSES)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments