generatePossibleResults(a, b)
that returns all possible results of operations between two numbers a
and b
.checkIfResultReached(list)
that tries to reach the result 24 using the current list of numbers.
checkIfResultReached
with the updated list.checkIfResultReached
with the initial list of cards.