We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
int connectingTowns(int n, vector routes) {
int total_routes{1};
for(size_t i = 0 ; i < n-1 ; i++){
total_routes*=routes.at(i) % 1234567;
}
return total_routes ;
}
whats wrong with my code ??
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Connecting Towns
You are viewing a single comment's thread. Return to all comments →
int connectingTowns(int n, vector routes) { int total_routes{1}; for(size_t i = 0 ; i < n-1 ; i++){ total_routes*=routes.at(i) % 1234567; } return total_routes ;
} whats wrong with my code ??