
Question Implement pow(x, n), which calculates x raised to the power n (i.e., xn). x의 n승을 리턴하는 pow 함수를 구현하라. 제약사항 -100.0 < x < 100.0 -2^31 = 1; } } if (n < 0) { ans = (double)(1.0) / (double)(ans); } return ans; } }; // 해당 문제의 Discuss 참고 출처 : https://leetcode.com/explore/interview/card/top-interview-questions-medium/113/math/818/ Explore - LeetCode LeetCode Explore is the best place for everyone..
IT/Problem Solving
2022. 8. 15. 12:32
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 인터뷰
- 리트코드
- PS
- Medium
- 반드시 알아야 할 자료구조
- 코딩인터뷰
- 알고리즘
- rust
- 러스트
- Tree
- algorithm
- 속초 맛집
- 트리
- 러스트 입문
- 속초
- 러스트 배우기
- Interview
- 러스트 기초
- DP
- ProblemSolving
- coding interview
- Problem Solving
- 자료구조
- 맛집
- 기술면접
- 내돈내산
- C++
- interview question
- 솔직후기
- LeetCode
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함