Kotlinlearncs.online LogoJava
Return to List

Solve: Array Count Greater Than (Two Dimensional)

Created By: Geoffrey Challen
/ Version: 2020.6.0

Declare and implement a function called countArrayGreaterThan that receives a nullable two-dimensional array of Int values (Array<IntArray>?) as its first parameter, an Int as its second parameter, and returns a count (as an Int) of the number of values in the array that are greater than the passed Int. If the passed array is null you should return 0. Note that the array may also be non-rectangular.

Related Lessons

Stuck? You may find these lessons helpful: