Problem Submissions Solution

Power Of Numbers

Difficulty: Medium

Acceptance: %

Points: 30.00

Given a number n, compute the value of n raised to the power of its reverse.

Note: The result will always fit within the range of a 32-bit signed integer.

Topics

Companies

Articles

Examples:

Expected Time Complexity: O(log n)

Expected Auxiliary Space: O(log n)

Constraints:
  • 1 <= n <= 10
Companies:
Samsung Walmart
Topics:
Recursion
Locked Content
Access Restricted: Please Login to access the code editor and test cases.