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

Commitf5afb98

Browse files
refactor 354
1 parent248930a commitf5afb98

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

Lines changed: 1 addition & 2 deletions
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
publicintmaxEnvelopes(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
return0;
1413
}
1514
Arrays.sort(envelopes, (int[]a,int[]b) -> {

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp