From e8ed350da8f893d528518cb3ec636f69a047e82f Mon Sep 17 00:00:00 2001 From: Mayank17M Date: Fri, 10 Sep 2021 12:52:36 +0530 Subject: [PATCH] feat: Add Travelling Salesman Problem --- graph/travelling_salesman_problem.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graph/travelling_salesman_problem.cpp b/graph/travelling_salesman_problem.cpp index cc789b1e5..bc829672c 100644 --- a/graph/travelling_salesman_problem.cpp +++ b/graph/travelling_salesman_problem.cpp @@ -51,10 +51,10 @@ int TravellingSalesmanProblem(std::vector> *cities, int src, } //// store minimum weight Hamiltonian Cycle. - int min_path = INT_MAX; + int32_t min_path = INT_MAX; do { //// store current Path weight(cost) - int curr_weight = 0; + int32_t curr_weight = 0; //// compute current path weight int k = src;