DIY: 24 Game

Solve the interview question "24 Game" in this lesson.

We'll cover the following...

Problem statement

Suppose you are given an integer list, cards, of length 4. Each one of the four cards contains a number in the range [1, 9]. You have to check if an arithmetic expression formed by an interleaving of these cards with the ...