100 Days of Java challenges
Day 14 - 2D-Arrays
[
[23, 45, 78, 12],
[56, 90, 34, 67],
[89, 21, 43, 76]
]
Write a program that performs the following tasks:
[23, 45, 78, 12],
[56, 90, 34, 67],
[89, 21, 43, 76]
]
Write a program that performs the following tasks:
- Initialise a 3x4 2D-Array with the above values
- Write a function that takes a 2D array as the parameter and returns an array with the maximum value of each row. For the above example, the function should return the array [78, 90, 89]
- Write a function that takes a 2D array as the parameter and returns an array with the maximum value of each column. For above example, the function should return the array [89, 90, 78, 76]
- Write a function that takes nxm 2D array as a parameter and returns a mxn transformation of the input 2D array
Community|Blog|Youtube Hunt|Logic Puzzles|Careers|Contact Us
Have Feedback or want to contribute? Email: hello[@]100DaysOfCode.io
100DaysOfCode@2024