Skip to content

Latest commit

 

History

History
34 lines (18 loc) · 1.23 KB

Arrays.md

File metadata and controls

34 lines (18 loc) · 1.23 KB

Arrays

  • Write a method to create an array of 5 integers and display the array items. Access individual elements and display them through indexes.

  • Write a method to reverse the order of the items in the array

  • Write a method to get the number of occurrences of a specified element in an array

  • Write a method to insert a new item before the second element in an existing array

  • Write a method to remove a specified item using the index from an array.

  • Write a program to find the sum of all elements of the array

  • Write a program to print all unique elements in an array.

  • Write a program to merge two arrays of same size sorted in ascending order.

  • Write a program to find maximum and minimum element in an array.

  • Write a programin to separate odd and even integers in separate arrays

  • Write a program to sort elements of array in ascending order.

  • Write a program to sort elements of the array in descending order.

  • Write a program to find the second largest element in an array.

  • Write a program to find the second smallest element in an array.

TODO saturday

  • Write a program for a 2D array of size 3x3 and print the matrix.

  • Write a program in C# Sharp for addition of two Matrices of same size