Notice
Recent Posts
Recent Comments
Link
목록2022/11/25 (1)
.Zzumbong
문제 설명 Given an array of integers arr, find the sum of min(b), where b ranges over every (contiguous) subarray of arr. Since the answer may be large, return the answer modulo 109 + 7. 정수 배열에서 min(b)의 합을 구하는데, b는 arr의 모든 연속된 하위 배열이란다. 예제를 보면 이해하 간다. 숫자가 크니까 modulo로 나머지를 리턴하란다. 입출력 예 Example 1: Input: arr = [3,1,2,4] Output: 17 Explanation: Subarrays are [3], [1], [2], [4], [3,1], [1,2], [2,4], [3,..
coding test/leetCode
2022. 11. 25. 13:11