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

LeetCode 1629. 按键持续时间最长的键 更多...

class  Solution
 

函数

 TEST (slowest_key, case1)
 
 TEST (slowest_key, case2)
 

详细描述

LeetCode 1629. 按键持续时间最长的键

函数说明

◆ TEST() [1/2]

leetcode::slowest_key::TEST ( slowest_key  ,
case1   
)

在文件 leetcode_test.cpp424 行定义.

424 {
425 int input[] = {9, 29, 49, 50};
426 auto vec = vector(begin(input), end(input));
427 ASSERT_EQ('c', Solution::slowestKey(vec, "cbcd"));
428 }
int vec[100010]
Definition: pat.cpp:5095

引用了 leetcode::slowest_key::Solution::slowestKey() , 以及 pat::a::a7_2::vec.

◆ TEST() [2/2]

leetcode::slowest_key::TEST ( slowest_key  ,
case2   
)

在文件 leetcode_test.cpp430 行定义.

430 {
431 int input[] = {12, 23, 36, 46, 62};
432 auto vec = vector(begin(input), end(input));
433 ASSERT_EQ('a', Solution::slowestKey(vec, "spuda"));
434 }

引用了 leetcode::slowest_key::Solution::slowestKey() , 以及 pat::a::a7_2::vec.