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 }
static int maxConsecutiveAnswers(string answerKey, int k)

引用了 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  )

◆ 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  )