DIY: 24 Game

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

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]. ...

Level up your interview prep. Join Educative to access 70+ hands-on prep courses.