Java implementation of MaxHeap and MinHeap data structures with sorting functionalities. The program prompts the user to input the number of nodes and their values, constructs both max and min heaps, and performs sorting to obtain ascending and descending order sorted arrays, respectively.
Java implementation of MaxHeap and MinHeap data structures with sorting functionalities. The program prompts the user to input the number of nodes and their values, constructs both max and min heaps, and performs sorting to obtain ascending and descending order sorted arrays, respectively.