I do not enlighten those who are not eager to learn, nor arouse those who are not anxious to give an explanation themselves. If I have presented one corner of the square and they cannot come back to me with the other three, I should not go over the points again.
― Confucius (查看原文)
Consider this puzzle: By starting from the number 1 and repeatedly either
adding 5 or multiplying by 3, an infinite amount of new numbers can be
produced. How would you write a function that, given a number, tries to find
a sequence of additions and multiplications that produce that number? (查看原文)