int LastElementIndex = arr.length-i-1; //index of last Element after each step int MaxIndex = MaxIndex(arr,0,LastElementIndex); // index of maximum value, in the remaining unsorted array ...
Longest palindrome in an array Here we find the longest palindrome number from the given array. so here we need to sort the array in ascending order and later check from the last that the given number ...