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

  1. Maximize the Confusion of an Exam
更多...

class  Solution
 

函数

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

详细描述

  1. Maximize the Confusion of an Exam

函数说明

◆ TEST() [1/4]

leetcode::maximize_the_confusion_of_an_exam::TEST ( maximize_the_confusion_of_an_exam  ,
case1   
)

在文件 leetcode_test.cpp2537 行定义.

2537 {
2538 ASSERT_EQ(4, Solution::maxConsecutiveAnswers("TTFF", 2));
2539 }

引用了 leetcode::maximize_the_confusion_of_an_exam::Solution::maxConsecutiveAnswers().

◆ TEST() [2/4]

leetcode::maximize_the_confusion_of_an_exam::TEST ( maximize_the_confusion_of_an_exam  ,
case2   
)

在文件 leetcode_test.cpp2541 行定义.

2541 {
2542 ASSERT_EQ(3, Solution::maxConsecutiveAnswers("TFFT", 1));
2543 }

引用了 leetcode::maximize_the_confusion_of_an_exam::Solution::maxConsecutiveAnswers().

◆ TEST() [3/4]

leetcode::maximize_the_confusion_of_an_exam::TEST ( maximize_the_confusion_of_an_exam  ,
case3   
)

在文件 leetcode_test.cpp2545 行定义.

2545 {
2546 ASSERT_EQ(5, Solution::maxConsecutiveAnswers("TTFTTFTT", 1));
2547 }

引用了 leetcode::maximize_the_confusion_of_an_exam::Solution::maxConsecutiveAnswers().

◆ TEST() [4/4]

leetcode::maximize_the_confusion_of_an_exam::TEST ( maximize_the_confusion_of_an_exam  ,
case4   
)

在文件 leetcode_test.cpp2549 行定义.

2549 {
2550 ASSERT_EQ(1, Solution::maxConsecutiveAnswers("F", 1));
2551 }

引用了 leetcode::maximize_the_confusion_of_an_exam::Solution::maxConsecutiveAnswers().