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

LeetCode 2000. 反转单词前缀 更多...

class  Solution
 

函数

 TEST (reverse_prefix_of_word, case1)
 
 TEST (reverse_prefix_of_word, case2)
 
 TEST (reverse_prefix_of_word, case3)
 

详细描述

LeetCode 2000. 反转单词前缀

函数说明

◆ TEST() [1/3]

leetcode::reverse_prefix_of_word::TEST ( reverse_prefix_of_word  ,
case1   
)

在文件 leetcode_test.cpp1225 行定义.

1225 {
1226 ASSERT_EQ("dcbaefd", Solution::reversePrefix("abcdefd", 'd'));
1227 }

引用了 leetcode::reverse_prefix_of_word::Solution::reversePrefix().

◆ TEST() [2/3]

leetcode::reverse_prefix_of_word::TEST ( reverse_prefix_of_word  ,
case2   
)

在文件 leetcode_test.cpp1229 行定义.

1229 {
1230 ASSERT_EQ("zxyxxe", Solution::reversePrefix("xyxzxe", 'z'));
1231 }

引用了 leetcode::reverse_prefix_of_word::Solution::reversePrefix().

◆ TEST() [3/3]

leetcode::reverse_prefix_of_word::TEST ( reverse_prefix_of_word  ,
case3   
)

在文件 leetcode_test.cpp1233 行定义.

1233 {
1234 ASSERT_EQ("abcd", Solution::reversePrefix("abcd", 'z'));
1235 }

引用了 leetcode::reverse_prefix_of_word::Solution::reversePrefix().