Sponsored
Use these hints if you're stuck. Try solving on your own first.
Try using dynamic programming.
dp[i][j] is the maximum number of points you can have if points[i][j] is the most recent cell you picked.
Solve with full IDE support and test cases