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 | 31 |
Tags
- Kaggle
- 백준
- 캐치카페
- gs25
- 더현대서울 맛집
- leetcode
- ubuntu
- 금융문자분석경진대회
- 자연어처리
- dacon
- programmers
- Docker
- SW Expert Academy
- 데이콘
- 맥북
- 파이썬
- ChatGPT
- Git
- github
- Real or Not? NLP with Disaster Tweets
- 편스토랑 우승상품
- 편스토랑
- AI 경진대회
- 우분투
- 코로나19
- PYTHON
- Baekjoon
- 프로그래머스 파이썬
- hackerrank
- 프로그래머스
Archives
- Today
- Total
목록
반응형
2020/12/07 (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
반응형