Skip to main content

CompleteKaryTree

CompleteKaryTree[n] gives the complete binary tree with n levels.

CompleteKaryTree[n,k] gives the complete k-ary tree with n levels.

Please visit the official Wolfram Language Reference for more details and examples on core symbols.