Skip to content

Commit 65dfa4b

Browse files
refactor 119
1 parent 08c3e38 commit 65dfa4b

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

src/main/java/com/fishercoder/solutions/_1198.java

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,5 @@
11
package com.fishercoder.solutions;
22

3-
/**
4-
* 1198. Find Smallest Common Element in All Rows
5-
*
6-
* Given a matrix mat where every row is sorted in increasing order, return the smallest common element in all rows.
7-
* If there is no common element, return -1.
8-
*
9-
* Example 1:
10-
* Input: mat = [[1,2,3,4,5],[2,4,5,8,10],[3,5,7,9,11],[1,3,5,7,9]]
11-
* Output: 5
12-
*
13-
* Constraints:
14-
* 1 <= mat.length, mat[i].length <= 500
15-
* 1 <= mat[i][j] <= 10^4
16-
* mat[i] is sorted in increasing order.
17-
* */
183
public class _1198 {
194
public static class Solution1 {
205
public int smallestCommonElement(int[][] mat) {

0 commit comments

Comments
 (0)