Java | 数据结构代写 – Validation Method

Java | 数据结构代写 – 这是一个常规的java代写任务

Validation Method

Purpose: Practicing Binary Search Tree (BST) and Min-Heap Implementation:

  1. 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.
  2. 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

发表评论

电子邮件地址不会被公开。 必填项已用*标注