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
- 맥북
- ubuntu
- 프로그래머스
- dacon
- programmers
- Real or Not? NLP with Disaster Tweets
- ChatGPT
- Baekjoon
- Kaggle
- 파이썬
- gs25
- PYTHON
- 우분투
- 편스토랑
- 더현대서울 맛집
- github
- Git
- Docker
- 코로나19
- 자연어처리
- 백준
- 금융문자분석경진대회
- 데이콘
- 편스토랑 우승상품
- 캐치카페
- SW Expert Academy
- AI 경진대회
- 프로그래머스 파이썬
- hackerrank
- leetcode
Archives
- Today
- Total
목록
반응형
35. Search Insert Position (1)
반응형
솜씨좋은장씨
[leetCode] 35. Search Insert Position (Python)
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order. You may assume no duplicates in the array. Example 1: Input: [1,3,5,6], 5 Output: 2 Example 2: Input: [1,3,5,6], 2 Output: 1 Example 3: Input: [1,3,5,6], 7 Output: 4 Example 4: Input: [1,3,5,6], 0 Output: 0 Solution class Solution: def searchI..
Programming/코딩 1일 1문제
2020. 8. 5. 22:52
반응형