<p>You are given an <code>m x n</code> integer matrix <code>points</code> (<strong>0-indexed</strong>). Starting with <code>0</code> points, you want to <strong>maximize</strong> the number of points you can get from the matrix.</p>
<p>To gain points, you must pick one cell in <strong>each row</strong>. Picking the cell at coordinates <code>(r, c)</code> will <strong>add</strong><code>points[r][c]</code> to your score.</p>
<p>However, you will lose points if you pick a cell too far from the cell that you picked in the previous row. For every two adjacent rows <code>r</code> and <code>r + 1</code> (where <code>0 <= r < m - 1</code>), picking cells at coordinates <code>(r, c<sub>1</sub>)</code> and <code>(r + 1, c<sub>2</sub>)</code> will <strong>subtract</strong><code>abs(c<sub>1</sub> - c<sub>2</sub>)</code> from your score.</p>
<p>Return <em>the <strong>maximum</strong> number of points you can achieve</em>.</p>
<p><code>abs(x)</code> is defined as:</p>
<ul>
<li><code>x</code> for <code>x >= 0</code>.</li>
<li><code>-x</code> for <code>x < 0</code>.</li>