You are viewing a single comment's thread. Return to all comments →
JS:
function connectingTowns(n, routes) { // Write your code here if(n<2) return 1; return routes[0]*connectingTowns(n-1,routes.slice(1,n-1)) % 1234567 }
Connecting Towns
You are viewing a single comment's thread. Return to all comments →
JS:
function connectingTowns(n, routes) { // Write your code here if(n<2) return 1; return routes[0]*connectingTowns(n-1,routes.slice(1,n-1)) % 1234567 }