Programs on arrays

  1. Program to find sum of array elements.

  2. Program to insert an element at given position in array.

  3. Program to delete an element from an array at specified position.

  4. Program to reverse of array elements.

  5. Program to remove duplicates in array.

  6. Program to move first element to last in array.

  7. Program to count the frequency of each element of an array.

  8. Program to sort the elements in array.

  9. Program to find second smallest and second largest numbers from array.

  10. Program for left rotate of array.

  11. Program for right rotate of array.

  12. Program to find duplicate element in k-distance. If found print "YES" otherwise "NO".

  13. Program that calculate the fractions of its elements that are positive, negative and zeros.

No comments:

Post a Comment