aditya109/git-osp-for-beginners

Sum of Distance in Tree

Closed this issue · 8 comments

Suppose there is a tree with N nodes labelled from 0 to n-1
We have to return an array of length n where there is sum of each and every branch from root to leaf.

Hey @cxj51693 can I take this up?

No I'm on it already. Sorry @pranjalg13

Hi @cxj51693 ! Sure thing. I have assigned this issue to you.
Before raising a PR, please take a look at CONTRIBUTING.md and follow the guidelines.
Also, if it is not too much to ask, please consider starring the repository. It helps boost the repo popularity and guide more people towards active contribution. That is all. Happy hacking !

Hey @cxj51693 can I take this up?

Hi @pranjalg13 ! You can also raise a PR for this issue. Just follow CONTRIBUTING.md and raise your changes in the PR. Happy hacking !

Hey @aditya109 there are issues with the code pushed by @cxj51693 . There is no main method, the signature of public method is not same as file name. Please check this once.

Hey @aditya109 there are issues with the code pushed by @cxj51693 . There is no main method, the signature of public method is not same as file name. Please check this once.

Hey @pranjalg13 ! You are right ! CI pipelines must have auto-injected main while testing the program. If you wish to raise a correction, please go ahead.

Hey @aditya109 check the PR once. Updated main method with solution structure.

This issue was solved by @pranjalg13 @cxj51693 , the PRs were successfully merged ! Thereby, closing this issue !