Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 509 Bytes

README.md

File metadata and controls

17 lines (12 loc) · 509 Bytes

Matrix frequencies

Given a matrix of order m*n then the task is to find the frequency of even and odd numbers in matrix.

For example, given the following inputs:

m = 2, n = 3 
[[ 9, 11, 3 ], 
[ 4, 12, 2 ]] 

Your function should return the following output:

  • Frequency of odd #: 3
  • Frequency of even #: 3

Click here to view this problem in an interactive Colab (Jupyter) notebook.