parent
adafd39931
commit
d6f5a78587
|
|
@ -139,7 +139,6 @@ class Solution {
|
||||||
.sorted(new Comparator<Integer>(){
|
.sorted(new Comparator<Integer>(){
|
||||||
@Override
|
@Override
|
||||||
public int compare(Integer o1, Integer o2) {
|
public int compare(Integer o1, Integer o2) {
|
||||||
// TODO Auto-generated method stub
|
|
||||||
int cnt1 = cntInt(o1);
|
int cnt1 = cntInt(o1);
|
||||||
int cnt2 = cntInt(o2);
|
int cnt2 = cntInt(o2);
|
||||||
return (cnt1 == cnt2) ? Integer.compare(o1, o2) : Integer.compare(cnt1, cnt2);
|
return (cnt1 == cnt2) ? Integer.compare(o1, o2) : Integer.compare(cnt1, cnt2);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue