Navigation: Main Index | Chapter Guide
This folder contains solutions for all 40 array practice exercises.
Compile and run a program from this folder:
javac 32-MergeSort.java
java MergeSort- Display Array Elements
- Array User Input
- Sum of Array Elements
- Average of Array Elements
- Largest Element
- Smallest Element
- Count Even and Odd
- Count Positive, Negative, and Zero
- Linear Search
- Reverse Array
- Copy Array
- Find Element Frequency
- Second Largest Distinct Element
- Second Smallest Distinct Element
- Remove Duplicate Elements
- Merge Arrays
- Common Elements
- Missing Numbers
- Bubble Sort
- Selection Sort
- Insertion Sort
- Binary Search - Iterative
- Binary Search - Recursive
- Rotate Array Left
- Rotate Array Right
- Minimum and Maximum Subarray Sum
- Maximum Contiguous Subarray Sum
- Pairs with Target Sum
- Majority Element
- Move Zeros to End
- Intersection and Union
- Merge Sort
- Quick Sort
- Matrix Transpose
- Matrix Multiplication
- Symmetric Matrix
- Primary and Secondary Diagonal Sums
- Maximum Row and Column Sum
- Rotate Matrix
- Student Marks Management