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
- ChatGPT
- 금융문자분석경진대회
- Docker
- github
- 캐치카페
- Kaggle
- SW Expert Academy
- 맥북
- 백준
- dacon
- 프로그래머스 파이썬
- programmers
- Git
- 프로그래머스
- 편스토랑 우승상품
- 코로나19
- PYTHON
- 편스토랑
- 자연어처리
- hackerrank
- leetcode
- 파이썬
- 우분투
- gs25
- 데이콘
- Real or Not? NLP with Disaster Tweets
- AI 경진대회
- ubuntu
- 더현대서울 맛집
- Baekjoon
Archives
- Today
- Total
목록
반응형
1464. Maximum Product of Two Elements in an Array (1)
반응형
솜씨좋은장씨
[leetCode] 1464. Maximum Product of Two Elements in an Array (Python)
Given the array of integers nums, you will choose two different indices i and j of that array. Return the maximum value of (nums[i]-1)*(nums[j]-1). Example 1: Input: nums = [3,4,5,2] Output: 12 Explanation: If you choose the indices i=1 and j=2 (indexed from 0), you will get the maximum value, that is, (nums[1]-1)*(nums[2]-1) = (4-1)*(5-1) = 3*4 = 12. Example 2: Input: nums = [1,5,4,5] Output: 1..
Programming/코딩 1일 1문제
2020. 12. 17. 00:06
반응형