Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit65dfa4b

Browse files
refactor 119
1 parent08c3e38 commit65dfa4b

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
packagecom.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
publicclass_1198 {
194
publicstaticclassSolution1 {
205
publicintsmallestCommonElement(int[][]mat) {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp