Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- 금융문자분석경진대회
- gs25
- 프로그래머스
- Docker
- 맥북
- PYTHON
- Git
- Kaggle
- programmers
- 코로나19
- AI 경진대회
- 우분투
- Baekjoon
- github
- 편스토랑 우승상품
- 프로그래머스 파이썬
- ChatGPT
- hackerrank
- Real or Not? NLP with Disaster Tweets
- 캐치카페
- 더현대서울 맛집
- 백준
- SW Expert Academy
- 파이썬
- 편스토랑
- 자연어처리
- ubuntu
- leetcode
- 데이콘
- dacon
Archives
- Today
- Total
목록
반응형
1588. Sum of All Odd Length Subarrays (1)
반응형
솜씨좋은장씨
[leetCode] 1588. Sum of All Odd Length Subarrays (Python)
Given an array of positive integers arr, calculate the sum of all possible odd-length subarrays. A subarray is a contiguous subsequence of the array. Return the sum of all odd-length subarrays of arr. Example 1: Input: arr = [1,4,2,5,3] Output: 58 Explanation: The odd-length subarrays of arr and their sums are: [1] = 1 [4] = 4 [2] = 2 [5] = 5 [3] = 3 [1,4,2] = 7 [4,2,5] = 11 [2,5,3] = 10 [1,4,2,..
Programming/코딩 1일 1문제
2020. 12. 7. 00:26
반응형