首页
it技术
登录
6mi
u
盘
搜
搜 索
it技术
LeetCode 1523在区间范围内统计奇数数目(java)
LeetCode 1523在区间范围内统计奇数数目(java)
it
2023-02-20
78
class
Solution
{
public
int
countOdds
(
int
low
,
int
high
)
{
return
(
high
+
1
)
/
2
-
low
/
2
;
}
}
转载请注明原文地址: https://lol.8miu.com/read-2353.html
最新回复
(
0
)