We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 248930a commit f5afb98Copy full SHA for f5afb98
src/main/java/com/fishercoder/solutions/_354.java
@@ -8,8 +8,7 @@ public static class Solution1 {
8
* reference: https://discuss.leetcode.com/topic/47469/java-nlogn-solution-with-explanation
9
*/
10
public int maxEnvelopes(int[][] envelopes) {
11
- if (envelopes == null || envelopes.length == 0
12
- || envelopes[0].length == 0 || envelopes[0].length != 2) {
+ if (envelopes == null || envelopes.length == 0 || envelopes[0].length == 0 || envelopes[0].length != 2) {
13
return 0;
14
}
15
Arrays.sort(envelopes, (int[] a, int[] b) -> {
0 commit comments