Question 2

3

3 votes
Very-Easy
Problem

Solve question (1) with the change that no goal state is given as an input. Instead, a single integer k is given as the goal. The game ends when the sum of the top row is exactly k.

Time Limit: 10
Memory Limit: 256
Source Limit:
Editor Image

?