코딩테스트/LeetCode
2022. 7. 2.
[LeetCode] Maximum Area Of A Piece Of Cake After Horizontal And Vertical Cuts
문제링크 Maximum Area of a Piece of Cake After Horizontal and Vertical Cuts - LeetCode Level up your coding skills and quickly land a job. This is the best place to expand your knowledge and get prepared for your next interview. leetcode.com 전체 높이(h), 폭(w)이 주어지고 수평으로 자르는 부분(horizontalCuts), 수직으로 자르는 부분(verticalCuts)가 주어진다. 이때 잘려진 부분 중 최대 값을 구하라. 접근 방법 만약 h = 5, w = 4, horizontalCuts = [1,2,4], verti..