Java-Questions-and-Solutions icon indicating copy to clipboard operation
Java-Questions-and-Solutions copied to clipboard

Counting Full Nodes in a Binary Tree

Open aarzoopundir opened this issue 4 years ago • 9 comments

Issue Id you have worked upon -

#351

Briefly explain your program logic -

Full Nodes are the ones whose left and right child are not null. The idea is to traverse the tree in postorder. If the current node is full, we increment result by 1 and add returned values of left and right subtrees.

Screenshots(Attach 2 screenshots of your own input and output) -

Screenshot (122) Screenshot (121)


Checklist:

Eg - If your code follow the below guidelines. Kindly change [] to [x]

All the conditions should be fulfilled for considering your code for merging -

  • [x] I have mentioned the question as comment in my solution file.

  • [x] My code follows the guidelines of this project.

  • [x] I have performed a self-review of my own code.

  • [x] I have commented my code.

  • [x] My code gives the correct output.

  • [x] I confirm that I have not copied the code from anywhere. In case its found that I have copied even after successful merge then I can be banned from the repository and hacktoberfest.

  • [x] I affirm that I strictly follow contributing guidelines and code of conduct.

aarzoopundir avatar Oct 13 '21 04:10 aarzoopundir

@aarzoopundir, Kindly create an issue first and then PR. And follow the PR template and contribution guidelines. I am not closing this PR since this was your first time. You may refer CONTRIBUTING.md(present in the repository) and create an issue(iff program has not been done in repositories probable folders).

If above given lines follow, then kindly create an issue now and claim it. I will assign it to you.

SarthakKeshari avatar Oct 13 '21 04:10 SarthakKeshari

@aarzoopundir, Kindly follow the guidelines. This is the last warning.

SarthakKeshari avatar Oct 13 '21 14:10 SarthakKeshari

What is the mistake now?

On Wed, 13 Oct 2021, 7:49 pm SarthakKeshari, @.***> wrote:

@aarzoopundir https://github.com/aarzoopundir, Kindly follow the guidelines. This is the last warning.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SarthakKeshari/Java-Questions-and-Solutions/pull/415#issuecomment-942355678, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJOJDHIZCNCVEZG77GLSCTUGWIOXANCNFSM5F4GQ5LQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

aarzoopundir avatar Oct 13 '21 14:10 aarzoopundir

@aarzoopundir, PR template is not filled properly. Kindly go through other PRs to get a clear idea

SarthakKeshari avatar Oct 13 '21 14:10 SarthakKeshari

I don't know what is the issue id..can u pls tell

On Wed, 13 Oct 2021, 8:00 pm SarthakKeshari, @.***> wrote:

@aarzoopundir https://github.com/aarzoopundir, PR template is not filled properly. Kindly go through other PRs to get a clear idea

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SarthakKeshari/Java-Questions-and-Solutions/pull/415#issuecomment-942366606, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJOJDGCYOU6QP33IXAR2BLUGWJZ3ANCNFSM5F4GQ5LQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

aarzoopundir avatar Oct 13 '21 16:10 aarzoopundir

I've done the required changes .. please see through it.

On Wed, 13 Oct 2021, 9:48 pm aarzoo Pundir, @.***> wrote:

I don't know what is the issue id..can u pls tell

On Wed, 13 Oct 2021, 8:00 pm SarthakKeshari, @.***> wrote:

@aarzoopundir https://github.com/aarzoopundir, PR template is not filled properly. Kindly go through other PRs to get a clear idea

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SarthakKeshari/Java-Questions-and-Solutions/pull/415#issuecomment-942366606, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJOJDGCYOU6QP33IXAR2BLUGWJZ3ANCNFSM5F4GQ5LQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

aarzoopundir avatar Oct 13 '21 16:10 aarzoopundir

@aarzoopundir, You haven't filled the Issue ID, Screenshots section and checklist. Kindly go through other PRs to see how other contributors are doing it.

SarthakKeshari avatar Oct 13 '21 18:10 SarthakKeshari

Pls see ..I've done these changes

On Thu, 14 Oct 2021, 12:22 am SarthakKeshari, @.***> wrote:

@aarzoopundir https://github.com/aarzoopundir, You haven't filled the Issue ID, Screenshots section and checklist. Kindly go through other PRs to see how other contributors are doing it.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/SarthakKeshari/Java-Questions-and-Solutions/pull/415#issuecomment-942616827, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQJOJDA2SUKDUQXF3L2V66DUGXINFANCNFSM5F4GQ5LQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

aarzoopundir avatar Oct 13 '21 18:10 aarzoopundir

@aarzoopundir, Nothing has been updated

SarthakKeshari avatar Oct 13 '21 19:10 SarthakKeshari