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.
Example 1:
Input: n = 2 Output: 987 Explanation: 99 x 91 = 9009, 9009 % 1337 = 987
Example 2:
Input: n = 1 Output: 9
Constraints:
1 <= n <= 8Solutions for this problem are being prepared.
Try solving it yourselfLongest Palindromic Substring - Python - Leetcode 5 • NeetCode • 629,123 views views
Watch 9 more video solutions →Practice Largest Palindrome Product with our built-in code editor and test cases.
Practice on FleetCodePractice this problem
Open in Editor