| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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
- 쓰릴오브파이트
- 월간
- realclass
- Problem Solving
- 잡생각
- English
- leetcode
- 스탭퍼
- 3줄정리
- 화상영어
- 링피트
- 괜찮음
- 영어원서읽기
- 개발자
- 뭐든
- Daily Challenge
- 파비최
- 사이드
- 30분
- FIT XR
- 프로젝트
- 10분
- 운동
- Writing
- 리얼 클래스
- 미드시청
- 만화도
- 매일
- 읽기
- 영어공부
Archives
- Today
- Total
파비의 매일매일 공부기록
2023.07.24 Today's Challenge 본문
https://leetcode.com/problems/powx-n/
Pow(x, n) - LeetCode
Can you solve this real interview question? Pow(x, n) - Implement pow(x, n) [http://www.cplusplus.com/reference/valarray/pow/], which calculates x raised to the power n (i.e., xn). Example 1: Input: x = 2.00000, n = 10 Output: 1024.00000 Example 2: Inpu
leetcode.com
의도했던 바는 아닌거 같은데 여튼 풀어나가긴 함.
class Solution:
def myPow(self, x: float, n: int) -> float:
return pow(x, n)반응형
'Problem Solving > LeetCode' 카테고리의 다른 글
| 2023.07.26 Today's Challenge (0) | 2023.07.26 |
|---|---|
| 2023.07.25 Today's Challenge (0) | 2023.07.25 |
| 2023.07.23 Today's Challenge (0) | 2023.07.23 |
| 2023.07.22 Today's Challenge (0) | 2023.07.22 |
| 2023.07.21 Today's Challenge (0) | 2023.07.21 |
Comments