Gamified challenge · Asked in Capgemini
An equation has blanks to fill, like _ + _ = 9 or _ * _ - _ = 10. Its tokens are separated by spaces, each _ is a blank for one digit from 1 to 9, the operators are + - * with the usual precedence (* first), and the right side is a whole number. Every digit you place must be different.
Write fill(equation) that returns the digits for the blanks, left to right, as a string. For "_ + _ = 9", "45" works (so do "18" or "63", but not "99").
This game is part of the paid plans. Sign in, then pick a plan to write your answer, watch it play out, and step through the algorithm with its guide.
Sign in with Google