My Calendar III (1) 썸네일형 리스트형 LeetCode: 732번 (My Calendar III) [JAVA] 문제 링크 https://leetcode.com/problems/my-calendar-iii/ My Calendar III - 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 풀이 전체적인 풀이 과정은 다음과 같다. 누적합을 활용하여 book() 함수를 구현하기 위해 TreeMap을 활용 주어진 start와 end값을 key로 가진 value에 각각 +1과 -1을 적용 이후 전체 TreeMap을 돌며 누적합을 계산하는데, 이 중 최대값을 반환하면 된다. 문제에서 .. 이전 1 다음