1/*2 * @param {string[][]} paths3 * @return {string}4 */5var destCity = function (paths) {6 let map = {};78 for (let city of paths) {9 map[city[0]] = map[city[0]] ? map[city[0]] + 1 : 1;10 }1112 for (let city of paths) {13 if (!map[city[1]]) return city[1];14 }15};
WPM •0 •0
ACC •0 •0
TIME •0