Palindromic Dates Java Coding Challenge | Edabit | How'd You Code That?
Автор: Ed Clark
Загружено: 2020-05-23
Просмотров: 264
Описание:
Palindromic Dates Java Coding Challenge
The 2nd of February 2020, is a palindromic date in both 2-digit day, 2-digit month, and 4-digit year format, and 2-digit month, 2-digit day and 4-digit year format.
⁃ A palindrome is a word, phrase or sequence that reads the same backward as forward.
There are 12 Palindrome Days in the 21st century in 2-digit month, 2-digit day and 4-digit year format. The first one was on October 2, 2001, and the last one will be on September 2, 2090.
February 2, 2020 is the only 2-digit month and day palindromic date that will occur in the 21st century. The next occurrence of a 2-digit month and day palindromic date will be December 12, 2121, which is exactly 101 years from the last occurrence. 101 is also a palindrome. Between the years, 3030 and 9090, exactly 1010 years separate each occurrence of a 2-digit month and day palindromic date. 1010 is also a palindrome.
Today, we’re writing a method that receives a date in 2-digit month and day format, and the number of years to scan, and returns an array containing palindromic dates in 2-digit month and day format that are palindromic in both 2-digit day and month and 2-digit month and day format.
Song: Sunshine - Ikson (Vlog No Copyright Music)
Music promoted by Vlog No Copyright Music.
/ ikson
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: