Available question text
Find the largest n-digit palindrome (no leading zeros) divisible by k and return it as a string; with n up to 1e5 and k ≤ 9, the core challenge is to construct the lexicographically largest palindrome by selecting the first half and using modular arithmetic to adjust digits so the full palindrome is divisible by k while operating on very long strings.
Related questions
Continue with questions that share topics or the same question type.
Sources · 1 reference
These records explain where the question appears. A company tag or candidate report does not guarantee a future interview question.
Hello Interview · 1 record
No company association
Leetcode 3260. Find the Largest Palindrome Divisible by K
Reported date not specified · 0 source reports
Source snapshot: Nov 12, 2026
View source