Java | 数据结构代写 – 这是一个常规的java代写任务
Validation Method
Purpose: Practicing Binary Search Tree (BST) and Min-Heap Implementation:
- Implement a validation method which checks whether a given tree is a BST or not a. Input: an argument with the type of BST, if you are familiar with the concepts of o inheritance and overwriting, you can utilize those policies for the implementation. b. Output: a boolean value where the true means the input is a BST and false means it is not.
- Implement a validation method which checks whether a given tree is a Min-Heap or not a. Input: an argument with the type of Min-Heap, if you are familiar with the concepts of o inheritance and overwriting, you can utilize those policies for the implementation. b. Output: a boolean value where the true means the input is a Min-Heap and false means it is not. Delivery: java code Note: your code should be runnable