Practice Largest Palindrome Product
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 an integer n, return the largest palindromic integer that can be represented as the product of two n-digits integers. Since the answer can be very large, return it modulo 1337.
Source: Largest Palindrome Product on LeetCode. Use the original task for its coding environment and submissions.
Examples
# Example 1
Input
n = 2
Output
987
# Example 2
Input
n = 1
Output
9
Constraints
1 <= n <= 8
Related LeetCode Problems
Practice more problems similar to Largest Palindrome Product.
Review your practice with PhantomCodeAI
After trying the problem yourself, use the app to discuss your approach, complexity, and edge cases.