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
- github
- PYTHON
- 편스토랑 우승상품
- Kaggle
- 데이콘
- 캐치카페
- programmers
- dacon
- 금융문자분석경진대회
- Baekjoon
- 코로나19
- Git
- Docker
- SW Expert Academy
- 파이썬
- leetcode
- 프로그래머스 파이썬
- 편스토랑
- 맥북
- Real or Not? NLP with Disaster Tweets
- AI 경진대회
- gs25
- ubuntu
- 프로그래머스
- 자연어처리
- 더현대서울 맛집
- ChatGPT
- 백준
Archives
- Today
- Total
목록
반응형
2020/06/02 (1)
반응형
솜씨좋은장씨
[leetCode] 50. Pow(x, n) (Python)
Implement pow(x, n), which calculates x raised to the power n (x^n). Example 1: Input: 2.00000, 10 Output: 1024.00000 Example 2: Input: 2.10000, 3 Output: 9.26100 Example 3: Input: 2.00000, -2 Output: 0.25000 Explanation: 2-2 = 1/22 = 1/4 = 0.25 Note: -100.0 float: my_pow_num = pow(x, n) if my_pow_num > (pow(2, 31) - 1): my_pow_num = pow(2, 31) -1 elif my_pow_num < (pow(2, 31)) * (-1): my_pow_nu..
Programming/코딩 1일 1문제
2020. 6. 2. 17:42
반응형