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

LeetCode 5989. 元素计数 更多...

class  Solution
 

函数

 TEST (count_elements_with_strictly_smaller_and_greater_elements, case1)
 
 TEST (count_elements_with_strictly_smaller_and_greater_elements, case2)
 

详细描述

LeetCode 5989. 元素计数

函数说明

◆ TEST() [1/2]

leetcode::count_elements_with_strictly_smaller_and_greater_elements::TEST ( count_elements_with_strictly_smaller_and_greater_elements  ,
case1   
)

在文件 leetcode_test.cpp951 行定义.

951 {
952 int input[] = {11, 7, 2, 15};
953 auto vec = vector(begin(input), end(input));
954 ASSERT_EQ(2, Solution::countElements(vec));
955 }
int vec[100010]
Definition: pat.cpp:5095

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

◆ TEST() [2/2]

leetcode::count_elements_with_strictly_smaller_and_greater_elements::TEST ( count_elements_with_strictly_smaller_and_greater_elements  ,
case2   
)

在文件 leetcode_test.cpp957 行定义.

957 {
958 int input[] = {-3, 3, 3, 90};
959 auto vec = vector(begin(input), end(input));
960 ASSERT_EQ(2, Solution::countElements(vec));
961 }

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