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

  1. 安排会议日程
更多...

class  Solution
 

函数

 TEST (meeting_scheduler, case1)
 
 TEST (meeting_scheduler, case2)
 
 TEST (meeting_scheduler, case3)
 

详细描述

  1. 安排会议日程

函数说明

◆ TEST() [1/3]

leetcode::meeting_scheduler::TEST ( meeting_scheduler  ,
case1   
)

在文件 leetcode_test.cpp3568 行定义.

3568 {
3569 vector<vector<int>> slots1 = {{10, 50}, {60, 120}, {140, 210}};
3570 vector<vector<int>> slots2 = {{0, 15}, {60, 70}};
3571 const vector ans = {60, 68};
3572 ASSERT_EQ(ans, Solution::minAvailableDuration(slots1, slots2, 8));
3573 }

引用了 leetcode::meeting_scheduler::Solution::minAvailableDuration().

◆ TEST() [2/3]

leetcode::meeting_scheduler::TEST ( meeting_scheduler  ,
case2   
)

在文件 leetcode_test.cpp3575 行定义.

3575 {
3576 vector<vector<int>> slots1 = {{10, 50}, {60, 120}, {140, 210}};
3577 vector<vector<int>> slots2 = {{0, 15}, {60, 70}};
3578 const vector<int> ans = {};
3579 ASSERT_EQ(ans, Solution::minAvailableDuration(slots1, slots2, 12));
3580 }

引用了 leetcode::meeting_scheduler::Solution::minAvailableDuration().

◆ TEST() [3/3]

leetcode::meeting_scheduler::TEST ( meeting_scheduler  ,
case3   
)

在文件 leetcode_test.cpp3582 行定义.

3582 {
3583 vector<vector<int>> slots1 = {{10, 60}};
3584 vector<vector<int>> slots2 = {{12, 17}, {21, 50}};
3585 const vector ans = {21, 29};
3586 ASSERT_EQ(ans, Solution::minAvailableDuration(slots1, slots2, 8));
3587 }

引用了 leetcode::meeting_scheduler::Solution::minAvailableDuration().