aboutsummaryrefslogtreecommitdiff
path: root/keys_and_rooms.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'keys_and_rooms.cpp')
-rw-r--r--keys_and_rooms.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/keys_and_rooms.cpp b/keys_and_rooms.cpp
index d807c7c..59308ef 100644
--- a/keys_and_rooms.cpp
+++ b/keys_and_rooms.cpp
@@ -2,7 +2,7 @@
class Solution {
public:
- bool canVisitAllRooms(vvd(int) & rooms) {
+ bool canVisitAllRooms(vvd & rooms) {
stack<int> dfs;
dfs.push(0);
unordered_set<int> seen = {0};
@@ -24,7 +24,7 @@ public:
int main() {
Solution obj;
- vvd(int) rooms = {{1}, {2}, {3}, {}};
+ vvd rooms = {{1}, {2}, {3}, {}};
if (obj.canVisitAllRooms(rooms))
cout << "true";
else