Solved LeetCode program · 789 of 1,000
#1025 · Divisor Game
Original English source
The number is 3. The table is a list of 4 zeros. Set item 0 of table to 0.
For every amount from 1 to 3.
For every pick from 1 to amount minus 1.
If amount modulo pick is 0 and item (amount minus pick) of table is 0.
Set item amount of table to 1.
If item 3 of table is 1, show true, otherwise show false.
Expected stdout
false