This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def is_interesting(number, awesome_phrases): | |
if number < 100: | |
return 0 | |
if (is_digit_followed_by_all_zeros(number) or is_every_digit_is_the_same_number(number) or | |
is_sequential(number) or is_palindrome(number) or is_one_of_the_awesome_phrases(number, awesome_phrases)): | |
return 2 | |
if any(is_interesting(number + i, awesome_phrases) == 2 for i in range(1, 3)): | |
return 1 | |
return 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Show tool versions | |
echo "--- Tooling Versions ---" | |
if command -v node > /dev/null 2>&1; then | |
echo "Node version: $(node --version)" | |
fi | |
if command -v npm > /dev/null 2>&1; then | |
echo "NPM version: $(npm --version)" | |
fi | |
if command -v yarn > /dev/null 2>&1; then | |
echo "Yarn version: $(yarn --version)" |