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

LeetCode 6014. 构造限制重复的字符串 更多...

class  Solution
 

函数

 TEST (construct_string_with_repeat_limit, case1)
 
 TEST (construct_string_with_repeat_limit, case2)
 
 TEST (construct_string_with_repeat_limit, case3)
 

详细描述

LeetCode 6014. 构造限制重复的字符串

函数说明

◆ TEST() [1/3]

leetcode::construct_string_with_repeat_limit::TEST ( construct_string_with_repeat_limit  ,
case1   
)

在文件 leetcode_test.cpp1658 行定义.

1658 {
1659 ASSERT_EQ("zzcccac", Solution::repeatLimitedString("cczazcc", 3));
1660 }

引用了 leetcode::construct_string_with_repeat_limit::Solution::repeatLimitedString().

◆ TEST() [2/3]

leetcode::construct_string_with_repeat_limit::TEST ( construct_string_with_repeat_limit  ,
case2   
)

在文件 leetcode_test.cpp1662 行定义.

1662 {
1663 ASSERT_EQ("bbabaa", Solution::repeatLimitedString("aababab", 2));
1664 }

引用了 leetcode::construct_string_with_repeat_limit::Solution::repeatLimitedString().

◆ TEST() [3/3]

leetcode::construct_string_with_repeat_limit::TEST ( construct_string_with_repeat_limit  ,
case3   
)

在文件 leetcode_test.cpp1666 行定义.

1666 {
1667 ASSERT_EQ("yxxvvuvusrrqqppopponliihgfeeddcbba", Solution::repeatLimitedString("robnsdvpuxbapuqgopqvxdrchivlifeepy", 2));
1668 }

引用了 leetcode::construct_string_with_repeat_limit::Solution::repeatLimitedString().