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

LeetCode 89. 格雷编码 更多...

class  Solution
 

函数

 TEST (gray_code, case1)
 

详细描述

LeetCode 89. 格雷编码

函数说明

◆ TEST()

leetcode::gray_code::TEST ( gray_code  ,
case1   
)

在文件 leetcode_test.cpp363 行定义.

363 {
364 int output[] = {0, 1, 3, 2};
365 const auto vec = vector(begin(output), end(output));
366 ASSERT_EQ(vec, Solution::grayCode(2));
367 }
int vec[100010]
Definition: pat.cpp:5095

引用了 leetcode::gray_code::Solution::grayCode() , 以及 pat::a::a7_2::vec.