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 }
static vector< int > grayCode(int n)

引用了 leetcode::gray_code::Solution::grayCode().