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

LeetCode 2039. The Time When the Network Becomes Idle 更多...

struct  Node
 
class  Solution
 

函数

 TEST (the_time_when_the_network_becomes_idle, case1)
 
 TEST (the_time_when_the_network_becomes_idle, case2)
 

详细描述

LeetCode 2039. The Time When the Network Becomes Idle

函数说明

◆ TEST() [1/2]

leetcode::the_time_when_the_network_becomes_idle::TEST ( the_time_when_the_network_becomes_idle  ,
case1   
)

在文件 leetcode_test.cpp2394 行定义.

2394 {
2395 vector<vector<int>> edges = {{0, 1}, {1, 2}};
2396 vector patience = {0, 2, 1};
2397 ASSERT_EQ(8, Solution::networkBecomesIdle(edges, patience));
2398 }

引用了 leetcode::the_time_when_the_network_becomes_idle::Solution::networkBecomesIdle().

◆ TEST() [2/2]

leetcode::the_time_when_the_network_becomes_idle::TEST ( the_time_when_the_network_becomes_idle  ,
case2   
)

在文件 leetcode_test.cpp2400 行定义.

2400 {
2401 vector<vector<int>> edges = {{0, 1}, {0, 2}, {1, 2}};
2402 vector patience = {0, 10, 10};
2403 ASSERT_EQ(3, Solution::networkBecomesIdle(edges, patience));
2404 }

引用了 leetcode::the_time_when_the_network_becomes_idle::Solution::networkBecomesIdle().