Created
December 11, 2017 22:58
-
-
Save dinhhuydh/193cff39c6725d27f8643328ed009a7e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# 1 Print square of number from 1 to n | |
# eg1: squares(3) => [1, 4, 9] | |
# 2: Print all numbers with 3 digits have two '1' digits like 112, 131 | |
# 3. Calculate sum of digits in the numbers | |
# eg1: [12, 4, 154] => [3, 4, 10] | |
# 4. Transform a number to simple word of digits | |
# eg1: 12 => one two | |
# eg2: 498 => four nine eight |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment