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