Java please
(1)Given an unsorted array of n elements with duplicateelements, Design a divide and conqueralgorithm to remove all duplicates from the array, discuss therunning time and justify thecorrectness.(2) Given a sorted integer array A and an integer x, Derive adivide and conquer algorithmthat returns the index of x’s first occurrence. If the x is notpresent in the array, reportthat as well. Derive the runtime and justify the correctness.
Java please (1)Given an unsorted array of n elements with duplicate elements, Design a divide and conquer algorithm to r
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am