Java implementation of More efficient method to count number of negative numbers in row - column sorted matrix M [ n ] [ m ]
import java . util . * ; import java . lang . * ; import java . io . * ; class GFG {