Practice Hexadecimal and Hexatrigesimal Conversion
Read the task, work through the examples, and check your approach against the constraints. Use the original LeetCode task for coding and submissions.
Problem Statement
Given n, concatenate the base-16 representation of n^2 with the base-36 representation of n^3. Use digits 0 through 9 and uppercase letters A through F in base 16, and A through Z in base 36. Return the concatenated string.
Source: Hexadecimal and Hexatrigesimal Conversion on LeetCode. Use the original task for its coding environment and submissions.
Examples
# Example 1
Input
n = 13
Output
"A91P1"
# Example 2
Input
n = 36
Output
"5101000"
Constraints
1 <= n <= 1000
Related LeetCode Problems
Practice more problems similar to Hexadecimal and Hexatrigesimal Conversion.
Review your practice with PhantomCodeAI
After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.