Update 1356.根据数字二进制下1的数目排序.md

remove TODO for comparator
This commit is contained in:
hailincai
2021-09-05 09:45:39 -04:00
committed by GitHub
parent adafd39931
commit d6f5a78587

View File

@ -139,7 +139,6 @@ class Solution {
.sorted(new Comparator<Integer>(){
@Override
public int compare(Integer o1, Integer o2) {
// TODO Auto-generated method stub
int cnt1 = cntInt(o1);
int cnt2 = cntInt(o2);
return (cnt1 == cnt2) ? Integer.compare(o1, o2) : Integer.compare(cnt1, cnt2);