일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- PYTHON
- github
- gs25
- 프로그래머스
- leetcode
- 데이콘
- Kaggle
- 백준
- ubuntu
- 프로그래머스 파이썬
- 파이썬
- Git
- Real or Not? NLP with Disaster Tweets
- 금융문자분석경진대회
- Baekjoon
- 편스토랑
- Docker
- 코로나19
- dacon
- programmers
- 캐치카페
- 맥북
- SW Expert Academy
- AI 경진대회
- hackerrank
- 우분투
- 더현대서울 맛집
- 편스토랑 우승상품
- ChatGPT
- 자연어처리
- Today
- Total
목록
반응형
2020/10/08 (2)
솜씨좋은장씨
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. Example: Input: 38 Output: 2 Explanation: The process is like: 3 + 8 = 11, 1 + 1 = 2. Since 2 has only one digit, return it. Follow up: Could you do it without any loop/recursion in O(1) runtime? Solution class Solution: def addDigits(self, num: int) -> int: while True: if num // 10 < 1: return n..
ner 관련 작업을 진행하기 위하여 여러 라이브러리를 설치하는 과정에서 $ pip install transformers 위의 명령어를 활용하여 설치하려고 하였을 때 (pytorch_new_p36) ubuntu@nipa2020-0000:~$ pip install transformers Looking in indexes: http://ftp.daumkakao.com/pypi/simple Collecting transformers Downloading http://mirror.kakao.com/pypi/packages/19/22/aff234f4a841f8999e68a7a94bdd4b60b4cebcfeca5d67d61cd08c9179de/transformers-3.3.1-py3-none-any.whl (1.1 ..