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
- SW Expert Academy
- Git
- 맥북
- AI 경진대회
- Kaggle
- 금융문자분석경진대회
- PYTHON
- Docker
- dacon
- Baekjoon
- 자연어처리
- gs25
- 파이썬
- hackerrank
- 백준
- 캐치카페
- 편스토랑 우승상품
- 데이콘
- 프로그래머스 파이썬
- 편스토랑
- programmers
- leetcode
- Real or Not? NLP with Disaster Tweets
- 코로나19
- 더현대서울 맛집
- ubuntu
- ChatGPT
- 우분투
- 프로그래머스
- github
Archives
- Today
- Total
목록
반응형
1299. Replace Elements with Greatest Element on Right Side (1)
반응형
솜씨좋은장씨
[leetCode] 1299. Replace Elements with Greatest Element on Right Side (Python)
Given an array arr, replace every element in that array with the greatest element among the elements to its right, and replace the last element with -1. After doing so, return the array. Example 1: Input: arr = [17,18,5,4,6,1] Output: [18,6,6,6,1,-1] Constraints: 1
Programming/코딩 1일 1문제
2020. 11. 7. 00:19
반응형