You are viewing a single comment's thread. Return to all comments →
At one point, I also had wrong answers for all cases except for the first and the last. For me, it was because I wasn't keeping track of the previously found sums. There are some consecutive squares that has the same answer. You shouldn't be adding the same number twice.