Skip to content

Commit f5afb98

Browse files
refactor 354
1 parent 248930a commit f5afb98

File tree

1 file changed

+1
-2
lines changed
  • src/main/java/com/fishercoder/solutions

1 file changed

+1
-2
lines changed

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

+1-2
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@ public static class Solution1 {
88
* reference: https://discuss.leetcode.com/topic/47469/java-nlogn-solution-with-explanation
99
*/
1010
public int maxEnvelopes(int[][] envelopes) {
11-
if (envelopes == null || envelopes.length == 0
12-
|| envelopes[0].length == 0 || envelopes[0].length != 2) {
11+
if (envelopes == null || envelopes.length == 0 || envelopes[0].length == 0 || envelopes[0].length != 2) {
1312
return 0;
1413
}
1514
Arrays.sort(envelopes, (int[] a, int[] b) -> {

0 commit comments

Comments
 (0)