Write a function ThirdMin programming homework help
-
Write a function, ThirdMin, which takes as argument an array of real numbers and computes the third minimum. You can assume that there are no duplicates in the array.
-
Write a function ShiftArray(int[] A, int k) which circularly shifts the elements of the array k positions to the right. For example, if A = {5, 6, 7, 8, 9}, then after the call to ShiftArray(A, 2), the array should equal A = {8, 9, 5, 6, 7}. You are not allowed to use any other array besides A.