leetcode 编程能力入门(学习计划)
目录1在区间范围内统计奇数数目1在区间范围内统计奇数数目解题思路是将low与high分为奇-奇、奇-偶、偶-偶、偶-奇四种类型,除了偶-偶num=(high-low)//2以外,其余都是num = (high-low)//2 +1class Solution: def countOdds(self, low: int, high: int) -> int: num = (high - low)//2 if not ((high % ..