You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
(col + (row - 1) * 9) - 1
This would reproduce "0" when row is 1 and col is 1, but should be 8.
Using this algorithm: ((col + (row - 1)) * 9) - 1
now math knows what to multiply, so "8" is returned as it should.
0 commit comments