LeetCode 564 - Find the Closest Palindrome - Java

preview_player
Показать описание
Solution, explanation, and complexity analysis for LeetCode 564 in Java

Problem Description:

Code:

#leetcode #java #palindrome
Рекомендации по теме
Комментарии
Автор

Nice solution These types of problems can be so annoying

CheeseFest-
Автор

Quite a bit of edge cases in this problem, I was able to get to the reversing the first n/2 digits and subtracting and adding 1 to the significant bits but eventually gave up on trying to search for measures that would take care of these 101 and 99 cases. Glad I was able to come across your video! Great explanation, I wish you all the best in everything that you are doing. Thank you tons for posting content that helps people like us!

soubhagyamohapatra
Автор

Very hard to come up with a solution if you have never seen this problem before

ShubhamSharma-sfwk