problemscpp
A collection of my answers to algorithm problems in c++.
| 函数
leetcode::count_integers_with_even_digit_sum 命名空间参考

LeetCode 6012. 统计各位数字之和为偶数的整数个数 更多...

class  Solution
 

函数

 TEST (count_integers_with_even_digit_sum, case1)
 
 TEST (count_integers_with_even_digit_sum, case2)
 

详细描述

LeetCode 6012. 统计各位数字之和为偶数的整数个数

函数说明

◆ TEST() [1/2]

leetcode::count_integers_with_even_digit_sum::TEST ( count_integers_with_even_digit_sum  ,
case1   
)

在文件 leetcode_test.cpp1648 行定义.

1648 {
1649 ASSERT_EQ(2, Solution::countEven(4));
1650 }

引用了 leetcode::count_integers_with_even_digit_sum::Solution::countEven().

◆ TEST() [2/2]

leetcode::count_integers_with_even_digit_sum::TEST ( count_integers_with_even_digit_sum  ,
case2   
)

在文件 leetcode_test.cpp1652 行定义.

1652 {
1653 ASSERT_EQ(14, Solution::countEven(30));
1654 }

引用了 leetcode::count_integers_with_even_digit_sum::Solution::countEven().