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