Pow(x.n) (1) 썸네일형 리스트형 LeetCode: 50번 (Pow(x, n)) [JAVA] 문제 링크 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 풀이 전체적인 풀이 과정은 다음과 같다. 주어진 x가 1.0이거나 n이 0이라면 1.0 반환 주어진 n이 음수라면, n.. 이전 1 다음