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

class  Solution
 

函数

 TEST (replace_all_s_to_avoid_consecutive_repeating_characters, case1)
 
 TEST (replace_all_s_to_avoid_consecutive_repeating_characters, case2)
 
 TEST (replace_all_s_to_avoid_consecutive_repeating_characters, case3)
 
 TEST (replace_all_s_to_avoid_consecutive_repeating_characters, case4)
 

函数说明

◆ TEST() [1/4]

leetcode::replace_all_s_to_avoid_consecutive_repeating_characters::TEST ( replace_all_s_to_avoid_consecutive_repeating_characters  ,
case1   
)

在文件 leetcode_test.cpp305 行定义.

305 {
306 ASSERT_EQ("azs", Solution::modifyString("?zs"));
307 }

引用了 leetcode::replace_all_s_to_avoid_consecutive_repeating_characters::Solution::modifyString().

◆ TEST() [2/4]

leetcode::replace_all_s_to_avoid_consecutive_repeating_characters::TEST ( replace_all_s_to_avoid_consecutive_repeating_characters  ,
case2   
)

在文件 leetcode_test.cpp309 行定义.

309 {
310 ASSERT_EQ("ubvaw", Solution::modifyString("ubv?w"));
311 }

引用了 leetcode::replace_all_s_to_avoid_consecutive_repeating_characters::Solution::modifyString().

◆ TEST() [3/4]

leetcode::replace_all_s_to_avoid_consecutive_repeating_characters::TEST ( replace_all_s_to_avoid_consecutive_repeating_characters  ,
case3   
)

在文件 leetcode_test.cpp313 行定义.

313 {
314 ASSERT_EQ("jaqgacb", Solution::modifyString("j?qg??b"));
315 }

引用了 leetcode::replace_all_s_to_avoid_consecutive_repeating_characters::Solution::modifyString().

◆ TEST() [4/4]

leetcode::replace_all_s_to_avoid_consecutive_repeating_characters::TEST ( replace_all_s_to_avoid_consecutive_repeating_characters  ,
case4   
)

在文件 leetcode_test.cpp317 行定义.

317 {
318 ASSERT_EQ("abywaipkja", Solution::modifyString("??yw?ipkj?"));
319 }

引用了 leetcode::replace_all_s_to_avoid_consecutive_repeating_characters::Solution::modifyString().