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

Commit525c349

Browse files
format
1 parent70f44ca commit525c349

File tree

1 file changed

+5
-6
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+5
-6
lines changed
Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
importjava.util.ArrayList;
44
importjava.util.Collections;
55
importjava.util.List;
6-
/**378. Kth Smallest Element in a Sorted Matrix QuestionEditorial Solution My Submissions
7-
Total Accepted: 5
8-
Total Submissions: 7
9-
Difficulty: Medium
6+
/**378. Kth Smallest Element in a Sorted Matrix
7+
*
108
Given a n x n matrix where each of the rows and columns are sorted in ascending order, find the kth smallest element in the matrix.
119
1210
Note that it is the kth smallest element in the sorted order, not the kth distinct element.
@@ -21,9 +19,10 @@
2119
k = 8,
2220
2321
return 13.
24-
Note:
22+
23+
Note:
2524
You may assume k is always valid, 1 ≤ k ≤ n2.*/
26-
publicclassKthSmallestElementInASortedMatrix {
25+
publicclass_378 {
2726
//brute force made it AC'ed, extreme test case needed for OJ
2827
publicintkthSmallest(int[][]matrix,intk) {
2928
List<Integer>list =newArrayList<Integer>();

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp