All Downloads are FREE. Search and download functionalities are using the official Maven repository.

g0401_0500.s0479_largest_palindrome_product.readme.md Maven / Gradle / Ivy

There is a newer version: 1.37
Show newest version
479\. Largest Palindrome Product

Hard

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 <= 8`




© 2015 - 2024 Weber Informatics LLC | Privacy Policy