Calculate the Sum of nodes at maximum depth of a Binary createNode. Given a root node to a createNode, find the sum of all the leaf nodes which are at maximum depth from root node.
Closes: #268
Describe the changes you've made
I have written code in python
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[x] Code style update (formatting, local variables)
[x] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[x] This change requires a documentation update
How Has This Been Tested?
I have tested it on my local machine.
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Describe if there is any unusual behaviour of your code(Write NA if there isn't)
NA
Checklist:
[x] My code follows the style guidelines of this project.
[x] I have performed a self-review of my own code.
[x] I have commented my code, particularly in hard-to-understand areas.
[x] I have made corresponding changes to the documentation.
[x] My changes generate no new warnings.
[x] I have added tests that prove my fix is effective or that my feature works.
[x] New and existing unit tests pass locally with my changes.
Related Issuse
Calculate the Sum of nodes at maximum depth of a Binary createNode. Given a root node to a createNode, find the sum of all the leaf nodes which are at maximum depth from root node.
Closes: #268
Describe the changes you've made
I have written code in python
Type of change
How Has This Been Tested?
I have tested it on my local machine.
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce.
Describe if there is any unusual behaviour of your code(Write
NA
if there isn't)NA
Checklist:
Screenshots