Coding Interview - Rosetta Code - 24 game

Coding Interview - Rosetta Code - 24 game
0

#1

Seems that the test cases are not allowing all correct solutions. Eg for solve24(‘1234’) a valid solution like (1+2+3)*4 is not accepted.


#2

I have the same problem, and it’s saddening.

solve24("4878") should return (7-8/8)*4 or 4*(7-8/8)

while my function is returning

(7*8)-(4*8)