$25
1. How do you sort an array of 0 and 1?
You are given an array of 0s and 1s in random order and you have to sort this array i.e Segregate 0s on the left side and 1s on the right side of the array.
2. How do you rotate an array?
You will be given an input number N and N numbers following it as the input. You are also given an integer K which represents how many times you have to rotate the array. Rotate the array K values to the right if K is positive and K values to the left if K is negative. If K=0, do not rotate the array.
The figure shows how the rotating array will look if k=2.
3.Find out smallest and largest number in a given Array?
4. Java Program to Find Second Largest and Smallest Elements in an Array.
5. Java Program to Find the Minimum Distance between Array Elements.
6. Java Programs on Inserting & Deleting Elements from an Array.
7. Java Program to Cyclically Permute the Elements of an Array.
8. Java Program to Find the Missing Element in an Integer Array.
9. Java Program to Print All the Leaders in an Array.
10. Take an array as input from the user. Search for a given number x and print the index at which it occurs.
11. https://www.hackerrank.com/challenges/java-1d-array/problem?isFullScreen=true
12. https://www.hackerrank.com/challenges/java-1d-array-introduction/problem?isFullScreen=true
13. https://www.hackerrank.com/challenges/java-negative-subarray/problem?isFullScreen=true