def identical(self, rs): """ --------------------------------------------------------- Determines whether two BSTs are identical. Use: b = bst.is_identical( rs ) ------------------------------------------------------- Preconditions: rs - another bst (BST) Postconditions: returns identical - True if this bst contains the same values in the same order as rs, otherwise returns False (boolean) ------------------------------------------------------- """ Add the method to your bst_linked.py file in your data_structures project. Test it from q1.py. Hint: the method is recursive and requires an auxiliary function
Get Free Quote!
327 Experts Online