What is the max number of leaf nodes in a classifcation decision tree?

Let's assume that we have n observations and p predictors and we have in a np situation. All predictors are binary. What is the max number of leaf nodes that we can have in the tree? and what are the maximal number of internal nodes? What is the math behind this, can someone offer some insight?

Topic decision-trees

Category Data Science

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.