In the previous question, a valid expression was defined as one that evaluates successfully using only the digits $1, 2, 3, 4$ and the operations $+,-,\times,\div$. To generalize this to arbitrary integers, we need to allow any integer as a digit.
Show more…