bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths
HardMath & GeometryLC 479

Largest Palindrome Product

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.

Asked at 2 companies
AppleYahoo
Hints
  • 1.Think about which data structure fits best
  • 2.Consider the time complexity of your approach
  • 3.Look for patterns in the constraints
LeetCode