Palindrome Descendant Java Coding Challenge | Edabit | How'd You Code That?

preview_player
Показать описание


A Palindrome is a word, phrase, or sequence that reads the same backward as forward, such as the word “madam”, or the phrase “nurses run”.

A Palindromic, or symmetrical number, also reads the same backward as forward, such as 1991, or 12321.

While a number may not be a palindrome, its descendant can be. A number's direct child is created by summing each pair of adjacent digits to create the digits of the next number.
For instance, 123312 is not a palindrome, but its next child 363 is, where: 3 = 1 + 2; 6 = 3 + 3, and 3 = 1 + 2.

Today, we’re writing a method that returns true if a number itself is a palindrome, or any of its descendants, down to 2 digits, is a Palindrome.

Song: Take Off - Ikson (Vlog No Copyright Music)
Music promoted by Vlog No Copyright Music.
Рекомендации по теме
Комментарии
Автор

If a number is a palindrome, should it be called Symmetrical? 🤔 Let me know your thoughts in the comments! Thank you for watching this video!! 👍👌

EdClarkHYCT
visit shbcf.ru