Browser tab content: Problem List 0 Debugging... Run Submit 00:00:00 Description…
- User
Browser tab content: Problem List 0 Debugging... Run Submit 00:00:00 Description Editorial Editorial Solutions Solutions Submissions Submissions Code Note Note Testcase Testcase Test Result 479. Largest Palindrome Product Hard Topics Companies
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 Seen this question in a real interview before? 1/5 Yes No Accepted 25.9K Submissions 76.3K Acceptance Rate 34.0% Topics Math Enumeration Companies 0 - 6 months Yahoo 2 Discussion (6) Choose a type Preview Comment 💡 Discussion Rules
-
Please don't post any solutions in this discussion.
-
The problem discussion is for asking questions about the problem or for sharing tips - anything except for solutions.
-
If you'd like to share your solution for feedback and ideas, please head to the solutions tab and post it there.
Sort by:Best No comments yet. 1 Copyright ©️ 2024 LeetCode All rights reserved 177 6 Java Auto 1 2 3 4 5 class Solution { public int largestPalindrome(int n) { } } Saved Ln 1, Col 1 You must run your code first
Third Maximum Number - LeetCode
Problem List Tag 405. Convert a Number to Hexadecimal
Easy
- Queue Reconstruction by Height
Med.
- Trapping Rain Water II
Hard
- Valid Word Abbreviation
Easy
- Longest Palindrome
Easy
- Split Array Largest Sum
Hard
- Minimum Unique Word Abbreviation
Hard
- Fizz Buzz
Easy
- Arithmetic Slices
Med.
- Third Maximum Number
Easy
- Add Strings
Easy
- Partition Equal Subset Sum
Med.
- Pacific Atlantic Water Flow
Med.
- Sentence Screen Fitting
Med.
- Battleships in a Board
-
- Assistant