August 19, 2024

P70C - Count the nodes of a multiway tree

Write a function nnodes which counts the nodes of a given multiway tree.

Example:* (nnodes '(a f))2

Count the nodes of a multiway tree
Be first to comment
Leave a reply