Skip to content

kwasibaidoo/PeakColumns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Peak Columns

Java program to find peak columns in a matrix

Search a given matrix A for elements that are both a maximum in their row and a minimum in their column. These elements are called peak-columns. Display the positions and values of all peak-columns found. Examples of elements that are peak-columns:

Sample input:

Matrix A: 3,3
| 12  2  4 |
| 17 10  1 |
| 92 80 79 |

Sample output:

(1,1) = 12

About

Simple java code to find peak columns in a matrix

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages