
Write a Scala program to replace every element with the next greatest element (from right side) in a given array of integers. Put all even numbers first, and then odd numbers. Write a Scala program to separate even and odd numbers of a given array of integers. Write a Java program to arrange the elements of a given array of integers where all positive integers appear before all the negative integers. Note: The triangle inequality states that the sum of the lengths of any two sides of a triangle must be greater than or equal to the length of the third side.ģ2. Write a Scala program to count the number of possible triangles from a given unsorted array of positive integers. Write a Scala program to find all combination of four elements of a given array whose sum is equal to a given value. Write a Scala program to find the two elements from a given array of positive and negative numbers such that their sum is closest to zero. Write a Scala program to segregate all 0s on left side and all 1s on right side of a given array of 0s and 1s. Write a Scala program to find smallest and second smallest elements of a given array. Write a Scala program to remove the duplicate elements of a given sorted array and return the new length of the array. Write a Scala program to compute the average value of an array element except the largest and smallest values. The length of the array must be 1 and above. Write a Scala program to get the difference between the largest and smallest values in an array of integers. Write a Scala program to find the number of even and odd integers in a given array of integers. Write a Scala program to find a missing number in an array of integers.

Write a Scala program to test the equality of two arrays. Write a Scala program to find the second smallest element from a given array of integers. Write a Scala program to find the second largest element from a given array of integers.

Write a Scala program to remove duplicate elements from an array of integers. Write a Scala program to remove duplicate elements from an array of strings. Write a Scala program to find the common elements between two arrays of strings. Write a Scala program to find the common elements between two arrays of integers. Array length should be 1 and more and odd. Write a Scala program to find the maximum value from first, middle and last values of a given array of integers. Write a Scala program to check two numbers, 4 or 7 present in a given array of integers. Write a Scala program to reverse an array of integer values. Write a Scala program to create a new array taking the middle element from three arrays of length 5. If the array length is less than 3 then return the sum of the array. Write a Scala program to calculate the sum of the last 3 elements of an array of integers. Write a Scala program to find the maximum and minimum value of an array of integers. Write a Scala program to rotate one element left of an given array (length 1 or more) of integers.

Note: The size of an Array can't be changed, so we can't directly delete elements from an array but replace them with "" / null etc.Ĩ. Write a Scala program to remove a specific element from an given array. Write a Scala program to check whether the value of the fast or last element of two given array ( length 1 or more) of integers are same or not. Write a Scala program to find the index of an element in a given Array.

Write a Scala program to check if the value of the fast or last element of a given array ( length 1 or more) are same or not. Write a Scala program to calculate the average value of an array of element. Write a Scala program to check if a given number is present in fast or last position of a given array of length 1 or more. Write a Scala program to sum values of an given array.
