(UA) IT/Tech Ukrainians in Canada
-
там тільки редюс)
-
function distanceBetweenBusStops(arr: number[], start: number, destination: number): number { const dir = arr.slice(Math.min(start, destination), Math.max(start, destination)).reduce((a, b) => a+b, 0) return Math.min( dir, arr.reduce((a, b) => a+b, 0) - dir ) };
-
leetcode.com/problems/check-if-there-is-a-valid-parentheses-string-path/description/ 13 хвилин
-
ну го спробую за 9))))
-
9 хвилин на таймері до піцци
-
доведеться почекати, я піццу в духовку закинув)
-
так це теж хард)
-
Тепер ми хочемо знати де в редюсі мап?))))