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

LeetCode 1994. 好子集的数目 更多...

class  Solution
 

函数

 TEST (the_number_of_good_subsets, case1)
 
 TEST (the_number_of_good_subsets, case2)
 

详细描述

LeetCode 1994. 好子集的数目

函数说明

◆ TEST() [1/2]

leetcode::the_number_of_good_subsets::TEST ( the_number_of_good_subsets  ,
case1   
)

在文件 leetcode_test.cpp1723 行定义.

1723 {
1724 vector input = {1, 2, 3, 4};
1725 ASSERT_EQ(6, Solution::numberOfGoodSubsets(input));
1726 }

引用了 leetcode::the_number_of_good_subsets::Solution::numberOfGoodSubsets().

◆ TEST() [2/2]

leetcode::the_number_of_good_subsets::TEST ( the_number_of_good_subsets  ,
case2   
)

在文件 leetcode_test.cpp1728 行定义.

1728 {
1729 vector input = {4, 2, 3, 15};
1730 ASSERT_EQ(5, Solution::numberOfGoodSubsets(input));
1731 }

引用了 leetcode::the_number_of_good_subsets::Solution::numberOfGoodSubsets().