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

  1. Process Restricted Friend Requests
更多...

class  Solution
 

函数

 TEST (process_restricted_friend_requests, case1)
 
 TEST (process_restricted_friend_requests, case2)
 

详细描述

  1. Process Restricted Friend Requests

函数说明

◆ TEST() [1/2]

leetcode::process_restricted_friend_requests::TEST ( process_restricted_friend_requests  ,
case1   
)

在文件 leetcode_test.cpp2711 行定义.

2711 {
2712 vector<vector<int>> restrictions = {{0, 1}};
2713 vector<vector<int>> requests = {{0, 2}, {2, 1}};
2714 const vector output = {true, false};
2715 ASSERT_EQ(output, Solution::friendRequests(3, restrictions, requests));
2716 }

引用了 leetcode::process_restricted_friend_requests::Solution::friendRequests().

◆ TEST() [2/2]

leetcode::process_restricted_friend_requests::TEST ( process_restricted_friend_requests  ,
case2   
)

在文件 leetcode_test.cpp2718 行定义.

2718 {
2719 vector<vector<int>> restrictions = {{0, 1}};
2720 vector<vector<int>> requests = {{1, 2}, {0, 2}};
2721 const vector output = {true, false};
2722 ASSERT_EQ(output, Solution::friendRequests(3, restrictions, requests));
2723 }

引用了 leetcode::process_restricted_friend_requests::Solution::friendRequests().