bugl
Home
Learn
Patterns
Paths
Search
Premium
Auto
Home
Learn
Patterns
Paths
Medium
Math & Geometry
LC 50
Pow(x, n)
Efficient x^n.
Asked at 15 companies
Adobe
Amazon
Apple
+12 more
Hints
1.
Think about what data structure fits Pow(x, n)
2.
Consider the brute force complexity and how to optimize
3.
Can you trade space for time?
Start Puzzle
LeetCode
NeetCode