Blue Bridge Cup: How many leaf nodes (the number of leaf nodes) are included in a binary tree with 2019 nodes (answer)

topic

[Problem description]
A binary tree with 2019 nodes, how many leaf nodes does it contain at most?
[Answer Submission]
This is a question that fills in the blanks with the result, you only need to calculate the result and submit it. The result of this question is an integer. Only fill in this integer when submitting the answer. If you fill in the extra content, you will not be able to score.

answer

  1010

Parsing

  A formula for a binary tree: (2019+1)/2=1010

Guess you like

Origin blog.csdn.net/qq_47168235/article/details/108905872