Uberseniorjan. de 2026
This question was asked in the BPS round for L5A
Given a numeric string n (up to 18 digits), find the closest integer palindrome different from n (ties broken by smaller value). The typical approach is to generate candidate palindromes by adjusting and mirroring the prefix and including boundary cases (e.g., 10^k±1, all 9s), then pick the candidate with minimal absolute difference.
Use esses exemplos para entender em que contexto ela costuma cair e adaptar sua prática.
This question was asked in the BPS round for L5A
Sem observação adicional neste relato público.
Nenhum anexo público associado a esta pergunta.
No app você encontra perguntas parecidas, compara empresas e aprofunda essa busca com mais filtros.