TORONTO KIDS COMPUTER CLUB | PMCA Friday 19:00 Python Homework 20.02.28.
17147
post-template-default,single,single-post,postid-17147,single-format-standard,ajax_fade,page_not_loaded,,no_animation_on_touch,qode-theme-ver-7.6.2,wpb-js-composer js-comp-ver-6.10.0,vc_responsive

PMCA Friday 19:00 Python Homework 20.02.28.

03 Mar PMCA Friday 19:00 Python Homework 20.02.28.

Question 1:
Using the binaryTree() and other helper functions we made in the class. If we run the following code, please print the binary tree as list:

r = binaryTree('a')
insertLeft(r,'b')
insertRight(r,'c')
insertRight(getRightChild(r),'d')
insertLeft(getRightChild(getRightChild(r)),'e')

And also please draw the tree graph.


Question 2:
Write a function buildTree() that returns a tree using the list of lists functions that looks like this:

No Comments

Sorry, the comment form is closed at this time.