Skip to content

Commit 4d7f56c

Browse files
committed
add Pow(x,y)
1 parent decfe11 commit 4d7f56c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Medium/50. Pow(x,n).py

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Problem Statement: https://leetcode.com/problems/powx-n/
2+
3+
class Solution:
4+
def myPow(self, x: float, n: int) -> float:
5+
return x**n

0 commit comments

Comments
 (0)