본문 바로가기

카테고리 없음

2020-06-20 18시 개발자 글 모음 | "[Coding Test] LeetCo" 외 1개 이야기

천호 고분다리 시장 맛집 유경생고기(소고기, 제주흑돼지) by 최상일


    [Coding Test] LeetCode - 11. Container With Most Water by 임창현

    • var maxArea = function ( height ) { let max = 0 ; const heightLen = height
    • length ; for ( let i = 0 ; i < heightLen - 1 ; i += 1 ) { let width = 1 ; for ( let j = i + 1 ; j < heightLen ; j += 1 ) { const minimumHeight = Math
    • height [ j ] ) ; const area = width * minimumHeight ; max = max > area