LC: 1428. Leftmost Column with at Least a One
https://leetcode.com/problems/leftmost-column-with-at-least-a-one/
Last updated
https://leetcode.com/problems/leftmost-column-with-at-least-a-one/
Last updated
Input: mat = [[0,0],[1,1]]
Output: 0Input: mat = [[0,0],[0,1]]
Output: 1Input: mat = [[0,0],[0,0]]
Output: -1Input: mat = [[0,0,0,1],[0,0,1,1],[0,1,1,1]]
Output: 1/**
* // This is the BinaryMatrix's API interface.
* // You should not implement it, or speculate about its implementation
* interface BinaryMatrix {
* public int get(int row, int col) {}
* public List<Integer> dimensions {}
* };
*/
class Solution {
public int leftMostColumnWithOne(BinaryMatrix binaryMatrix) {
}
}