Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CountingFullNodes.java #370

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

aarzoopundir
Copy link

Issue Id you have worked upon -

Kindly write your answer here

Briefly explain your program logic -

Full nodes are the ones whose left and right children are not null. So 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) -

Attach here


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 -

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

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

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

  • [] I have commented my code.

  • [] My code gives the correct output.

  • [] 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.

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

@SarthakKeshari
Copy link
Owner

@aarzoopundir,
13 files have been altered leading to conflicts in the repo. Kindly look into it

@SarthakKeshari
Copy link
Owner

@aarzoopundir,
This PR will be marked as invalid and be closed by 13/10/2021(6PM). Kindly respond by either closing it or making the required changes.

@SarthakKeshari SarthakKeshari added the no response No response to requested changes label Oct 12, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
no response No response to requested changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants