We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e894ebd commit ba2849bCopy full SHA for ba2849b
README.md
@@ -10,6 +10,8 @@ leetcode 测试
10
11
##### 包含的内容如下
12
13
+https://leetcode.cn/problems/count-odd-numbers-in-an-interval-range/
14
+
15
https://leetcode.cn/problems/shuffle-string/
16
17
https://leetcode.cn/problems/make-the-string-great/
count-odd-numbers-in-an-interval-range/index.ts
@@ -0,0 +1,3 @@
1
+export default function countOdds(low: number, high: number): number {
2
+ return ((high + 1) >> 1) - (low >> 1);
3
+}
0 commit comments