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
- dacon
- 백준
- 데이콘
- 편스토랑
- Real or Not? NLP with Disaster Tweets
- Docker
- 우분투
- 더현대서울 맛집
- 프로그래머스
- 자연어처리
- Kaggle
- github
- 편스토랑 우승상품
- 금융문자분석경진대회
- leetcode
- Baekjoon
- gs25
- 맥북
- 코로나19
- 캐치카페
- AI 경진대회
- ChatGPT
- ubuntu
- Git
- PYTHON
- 프로그래머스 파이썬
- 파이썬
- programmers
- hackerrank
- SW Expert Academy
Archives
- Today
- Total
목록
반응형
1122. Relative Sort Array (1)
반응형
솜씨좋은장씨
[leetCode] 1122. Relative Sort Array (Python)
Given two arrays arr1 and arr2, the elements of arr2 are distinct, and all elements in arr2 are also in arr1. Sort the elements of arr1 such that the relative ordering of items in arr1 are the same as in arr2. Elements that don't appear in arr2 should be placed at the end of arr1 in ascending order. Example 1: Input: arr1 = [2,3,1,3,2,4,6,7,9,2,19], arr2 = [2,1,4,3,9,6] Output: [2,2,2,1,4,3,3,9,..
Programming/코딩 1일 1문제
2020. 11. 6. 00:01
반응형