Java Array Programs
An array is a data structure consisting of a collection of elements (values or variables), of the same memory size, each identified by at least one array index or key. An array is a linear data structure that stores similar elements (i.e. elements of similar data type) that are stored in contiguous memory locations.
Basic Array Questions
- Find the Largest Element in an Array
- Print a 2D Array
- Copy All the Elements of One Array to Another Array
- Check Whether Two Matrices Are Equal or Not
- Add Two Matrices
- Find the Transpose
- Find the Determinant
- Find the Normal and Trace
- Array Rotation
- Check if Two Arrays Are Equal or Not
- Compute the Sum of Diagonals of a Matrix
Advance Array Questions
- Print Boundary Elements of a Matrix
- Rotate Matrix Elements
- Remove Duplicate Elements From an Array
- Remove All Occurrences of an Element in an Array
- Merge Two Arrays
- Find Common Array Elements
- Interchange Elements of First and Last in a Matrix Across Rows
- Interchange Elements of First and Last in a Matrix Across Columns
Searching and Sorting Questions
- Search an Element in an Array
- Sort an Array
- Sort the 2D Array Across Columns
- Bubble Sort
- Insertion Sort
- Selection Sort
- Merge Sort
- Quick Sort
- Linear Search
- Binary Search
- Sort the Elements of an Array in Descending Order
- Sort the Elements of an Array in Ascending Order