【leetcode_easy_array】1351. Count Negative Numbers in a Sorted Matrix

problem

1351. Count Negative Numbers in a Sorted Matrix

solution1: two loop from start;

code:

 

solution2: two loop from end;

code

 

solution3: binary search;

code

 

参考

1. leetcode_1351. Count Negative Numbers in a Sorted Matrix;

posted on 2020-07-15 22:32  鹅要长大  阅读(126)  评论(0编辑  收藏  举报

导航