Add the method to your bst_linked.py file in your data_structures project. Test it from q1.py.

computer science

Description

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


Related Questions in computer science category


Disclaimer
The ready solutions purchased from Library are already used solutions. Please do not submit them directly as it may lead to plagiarism. Once paid, the solution file download link will be sent to your provided email. Please either use them for learning purpose or re-write them in your own language. In case if you haven't get the email, do let us know via chat support.