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

Commit80ed359

Browse files
authored
Improved task 1333
1 parentf1b2928 commit80ed359

File tree

1 file changed

+1
-2
lines changed
  • src/main/java/g1301_1400/s1333_filter_restaurants_by_vegan_friendly_price_and_distance

1 file changed

+1
-2
lines changed

‎src/main/java/g1301_1400/s1333_filter_restaurants_by_vegan_friendly_price_and_distance/Solution.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
importjava.util.ArrayList;
66
importjava.util.List;
7-
importjava.util.stream.Collectors;
87

98
publicclassSolution {
109
publicList<Integer>filterRestaurants(
@@ -18,6 +17,6 @@ public List<Integer> filterRestaurants(
1817
}
1918
}
2019
list.sort((a,b) ->b[1] -a[1] ==0 ?b[0] -a[0] :b[1] -a[1]);
21-
returnlist.stream().map(restaurant ->restaurant[0]).collect(Collectors.toList());
20+
returnlist.stream().map(restaurant ->restaurant[0]).toList();
2221
}
2322
}

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp