221. Maximal Square https://leetcode.com/problems/maximal-square/ Maximal Square - 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 문제 조건 및 풀이 1과 0으로 이루어진 2차원 배열이 주어졌을 때, 1로만 채워진 최대 크기의 정사각형을 구하는 문제. 떠올릴 수 있는 가장 간단한 방법은 모든 경우의 수를 다 구해보는 brute force 방식이다. 이렇게 풀더라도 문제를 통과할 수는 있다고 한다. 맨 좌측 상단부터 크기가 1, 2.... 2021. 7. 13. Algorithm 리트코드 1423. Maximum Points You Can Obtain from Cards 2021. 7. 12. 1423. maximum points you can obtain from cards https://leetcode.com/problems/maximum-points-you-can-obtain-from-cards/ Maximum Points You Can Obtain from Cards - 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 문제 조건 및 풀이 배열의 양 끝 숫자 중 하나를 포함하는 길이 k의 연속된 부분 배열 중 그 합이 최대가 되는 부분 배열을 찾는 문제. 배열의 길이가 N이라고 할 때, N - k에서부터 k개 요소의 합을 구한 다.. 2021. 7. 12. 이전 1 다음