aboutsummaryrefslogtreecommitdiff
path: root/shortest_path_binary_matrix.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'shortest_path_binary_matrix.cpp')
-rw-r--r--shortest_path_binary_matrix.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/shortest_path_binary_matrix.cpp b/shortest_path_binary_matrix.cpp
index cbdccdc..fd586fe 100644
--- a/shortest_path_binary_matrix.cpp
+++ b/shortest_path_binary_matrix.cpp
@@ -46,9 +46,9 @@ public:
int main() {
Solution obj;
- vvd(int) g1 = {{0, 1}, {1, 0}};
- vvd(int) g2 = {{0, 0, 0}, {1, 1, 0}, {1, 1, 0}};
- vvd(int) g3 = {{1, 0, 0}, {1, 1, 0}, {1, 1, 0}};
+ vvd g1 = {{0, 1}, {1, 0}};
+ vvd g2 = {{0, 0, 0}, {1, 1, 0}, {1, 1, 0}};
+ vvd g3 = {{1, 0, 0}, {1, 1, 0}, {1, 1, 0}};
printf("%d\n", obj.shortestPathBinaryMatrix(g1)); // expect: 2
printf("%d\n", obj.shortestPathBinaryMatrix(g2)); // expect: 4
printf("%d\n", obj.shortestPathBinaryMatrix(g3)); // expect: -1