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 c543256 commit 6c4c188Copy full SHA for 6c4c188
src/main/java/com/fishercoder/solutions/_1452.java
@@ -16,8 +16,10 @@ public List<Integer> peopleIndexes(List<List<String>> favoriteCompanies) {
16
TreeMap<String, Integer> map = new TreeMap<>(new Comparator<String>() {
17
@Override
18
public int compare(String o1, String o2) {
19
- int diff_length = o1.length() - o2.length();
20
- if (diff_length != 0) return diff_length;
+ int diffLength = o1.length() - o2.length();
+ if (diffLength != 0) {
21
+ return diffLength;
22
+ }
23
return o1.compareTo(o2);
24
}
25
});
0 commit comments