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

lintcode 1104. 机器人能否返回原点 更多...

class  Solution
 

函数

 TEST (judge_circle, case1)
 
 TEST (judge_circle, case2)
 

详细描述

lintcode 1104. 机器人能否返回原点

函数说明

◆ TEST() [1/2]

lintcode::judge_circle::TEST ( judge_circle  ,
case1   
)

在文件 lintcode_test.cpp62 行定义.

62 {
63 auto str = string("UD");
64 ASSERT_TRUE(Solution::judgeCircle(str));
65 }

引用了 lintcode::judge_circle::Solution::judgeCircle().

◆ TEST() [2/2]

lintcode::judge_circle::TEST ( judge_circle  ,
case2   
)

在文件 lintcode_test.cpp67 行定义.

67 {
68 auto str = string("LL");
69 ASSERT_FALSE(Solution::judgeCircle(str));
70 }

引用了 lintcode::judge_circle::Solution::judgeCircle().