You are viewing a single comment's thread. Return to all comments →
My solution in java,
static long connectingTowns(int n, int[] routes) { return Arrays.stream(routes).boxed().reduce((x,y) -> (x % 1234567) * (y % 1234567)).orElse(0) % 1234567; }
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 →
My solution in java,