We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20eb9f1 commit 3d4db6aCopy full SHA for 3d4db6a
src/main/java/g2001_2100/s2070_most_beautiful_item_for_each_query/Solution.java
@@ -9,7 +9,7 @@
9
public class Solution {
10
public int[] maximumBeauty(int[][] items, int[] queries) {
11
int[] res = new int[queries.length];
12
- Arrays.sort(items, Comparator.comparingInt((a) -> a[1]));
+ Arrays.sort(items, Comparator.comparingInt(a -> a[1]));
13
for (int i = 0; i < res.length; i++) {
14
res[i] = maxBeauty(items, queries[i]);
15
}
0 commit comments