Skip to content

Commit 525c349

Browse files
committedJul 27, 2017
format
1 parent 70f44ca commit 525c349

File tree

1 file changed

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

1 file changed

+5
-6
lines changed
 

‎src/main/java/com/fishercoder/solutions/KthSmallestElementInASortedMatrix.java ‎src/main/java/com/fishercoder/solutions/_378.java

+5-6
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
import java.util.ArrayList;
44
import java.util.Collections;
55
import java.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-
public class KthSmallestElementInASortedMatrix {
25+
public class _378 {
2726
//brute force made it AC'ed, extreme test case needed for OJ
2827
public int kthSmallest(int[][] matrix, int k) {
2928
List<Integer> list = new ArrayList<Integer>();

0 commit comments

Comments
 (0)