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