August 26, 2024
P70C - Count the nodes of a multiway tree.
Write a methodnodeCountwhich counts the nodes of a given multiway tree.
> MTree('a', List(MTree('f'))).nodeCount
res0: Int = 2
August 26, 2024
Write a methodnodeCountwhich counts the nodes of a given multiway tree.
> MTree('a', List(MTree('f'))).nodeCount
res0: Int = 2
Don't have an account? We will create one for you.
Enter the OTP send to
in seconds. Check your spam folder if you can't find email from us.
Valid email is required for further communications