aboutsummaryrefslogtreecommitdiff
path: root/min_time_apples_tree.cpp
diff options
context:
space:
mode:
authorJack Sangdahl <[email protected]>2025-01-29 11:46:16 -0700
committerJack Sangdahl <[email protected]>2025-01-29 11:46:16 -0700
commit2de9d2dce0fd4de524961ad5188a95410f4432c2 (patch)
tree0da068bf95592f39f2dd4f135b0e73b689df27d0 /min_time_apples_tree.cpp
parentad25ada54a68851b935f52f9d1bc4ec969583205 (diff)
downloadleetcode-2de9d2dce0fd4de524961ad5188a95410f4432c2.tar.gz
leetcode-2de9d2dce0fd4de524961ad5188a95410f4432c2.zip
chore: Fix vvd usages
Diffstat (limited to 'min_time_apples_tree.cpp')
-rw-r--r--min_time_apples_tree.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/min_time_apples_tree.cpp b/min_time_apples_tree.cpp
index 9e9d4b4..81d97d7 100644
--- a/min_time_apples_tree.cpp
+++ b/min_time_apples_tree.cpp
@@ -2,7 +2,7 @@
class Solution {
public:
- int minTime(int n, vvd(int) & edges, vector<bool> &hasApple) {
+ int minTime(int n, vvd & edges, vector<bool> &hasApple) {
unordered_map<int, int> um;
int ans = 0;
sort(edges.begin(), edges.end());
@@ -29,7 +29,7 @@ public:
int main() {
Solution obj;
- vvd(int) edges = {{0, 1}, {0, 2}, {1, 4}, {1, 5}, {2, 3}, {2, 6}};
+ vvd edges = {{0, 1}, {0, 2}, {1, 4}, {1, 5}, {2, 3}, {2, 6}};
vector<bool> hasApple1 = {false, false, true, false, true, true, false},
hasApple2 = {false, false, true, false, false, true, false},
hasApple3 = {false, false, false, false, false, false, false};