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

LeetCode 面试题 16.18. 模式匹配 更多...

class  Solution
 

函数

 TEST (pattern_matching_lcci, case1)
 
 TEST (pattern_matching_lcci, case2)
 
 TEST (pattern_matching_lcci, case3)
 
 TEST (pattern_matching_lcci, case4)
 
 TEST (pattern_matching_lcci, case5)
 
 TEST (pattern_matching_lcci, case6)
 

详细描述

LeetCode 面试题 16.18. 模式匹配

函数说明

◆ TEST() [1/6]

leetcode::pattern_matching_lcci::TEST ( pattern_matching_lcci  ,
case1   
)

在文件 leetcode_test.cpp1076 行定义.

1076 {
1077 ASSERT_TRUE(Solution::patternMatching("abba", "dogcatcatdog"));
1078 }

引用了 leetcode::pattern_matching_lcci::Solution::patternMatching().

◆ TEST() [2/6]

leetcode::pattern_matching_lcci::TEST ( pattern_matching_lcci  ,
case2   
)

在文件 leetcode_test.cpp1080 行定义.

1080 {
1081 ASSERT_FALSE(Solution::patternMatching("abba", "dogcatcatfish"));
1082 }

引用了 leetcode::pattern_matching_lcci::Solution::patternMatching().

◆ TEST() [3/6]

leetcode::pattern_matching_lcci::TEST ( pattern_matching_lcci  ,
case3   
)

在文件 leetcode_test.cpp1084 行定义.

1084 {
1085 ASSERT_FALSE(Solution::patternMatching("aaaa", "dogcatcatdog"));
1086 }

引用了 leetcode::pattern_matching_lcci::Solution::patternMatching().

◆ TEST() [4/6]

leetcode::pattern_matching_lcci::TEST ( pattern_matching_lcci  ,
case4   
)

在文件 leetcode_test.cpp1088 行定义.

1088 {
1089 ASSERT_TRUE(Solution::patternMatching("abba", "dogdogdogdog"));
1090 }

引用了 leetcode::pattern_matching_lcci::Solution::patternMatching().

◆ TEST() [5/6]

leetcode::pattern_matching_lcci::TEST ( pattern_matching_lcci  ,
case5   
)

在文件 leetcode_test.cpp1092 行定义.

1092 {
1093 ASSERT_TRUE(Solution::patternMatching("bb", "tttt"));
1094 }

引用了 leetcode::pattern_matching_lcci::Solution::patternMatching().

◆ TEST() [6/6]

leetcode::pattern_matching_lcci::TEST ( pattern_matching_lcci  ,
case6   
)

在文件 leetcode_test.cpp1096 行定义.

1096 {
1097 ASSERT_TRUE(Solution::patternMatching("aaaaab", "xahnxdxyaahnxdxyaahnxdxyaahnxdxyaauxuhuo"));
1098 }

引用了 leetcode::pattern_matching_lcci::Solution::patternMatching().