LeetCode 1523在区间范围内统计奇数数目(java)

it2023-02-20  78

class Solution { public int countOdds(int low, int high) { return (high + 1) / 2 - low / 2; } }
最新回复(0)