Skip to content

Conversation

@vortex-17
Copy link
Contributor

Solution to Leetcode 1161.
I have used Breadth First Search method to traverse through all the levels of the tree and storing their sum in an array. We then find the max element and return index of that value + 1

P.S : This is my first PR so please let me know if I have made some mistake.

@6boris 6boris merged commit d7cebed into 6boris:develop Nov 3, 2020
@6boris
Copy link
Owner

6boris commented Nov 3, 2020

merged thanks

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.

2 participants