Write a function, which receives two arguments: a pointer to the Binary Search Tree and a pointer to the empty Linked Li
-
answerhappygod
- Site Admin
- Posts: 899604
- Joined: Mon Aug 02, 2021 8:13 am
Write a function, which receives two arguments: a pointer to the Binary Search Tree and a pointer to the empty Linked Li
Write a function, which receives two arguments: a pointer to theBinary Search Tree and a pointer to the empty Linked List. Functionis reading the binary search tree and copying its values to thelinked list so, that at the end linked list will contain all valuesfrom the tree, but sorted in opposite order (descending values).Function has to work with O(N) efficiency.
Join a community of subject matter experts. Register for FREE to view solutions, replies, and use search function. Request answer by replying!