Question: (COMMON LISP), please do not answer with another programming language Write a lisp program to check whether the two binary trees have the same structure
(COMMON LISP), please do not answer with another programming language
Write a lisp program to check whether the two binary trees have the same structure. The structure of a binary tree is represented through list as (root left right). For two trees to have same structure the values dont need to be the same. A sample tree structure can be displayed as

(23 (9 (5)) (18 9 (45 14 27)))
Write a lisp program to check whether the two binary trees have the same structure. The structure of a binary tree is represented through list as (root left right). For two trees to have same structure the values don't need to be the same. A sample tree structure can be displayed as (23 (9 (5)) (18 9 (45 14 27))) 23 9 18 9 45 5 14 27
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
