Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on [Python-ideas] List Revolution. Parent comment
For example, imagine I want to fake an nm 2d matrix M with an array A, with nm elements
Then with 0-indexing, M[i][j] is stored at A[im+j]. With 1-indexing, M[i][j] is stored at A[(i-1)m+j].
There are no comments on this comment yet.
For example, imagine I want to fake an nm 2d matrix M with an array A, with nm elements
Then with 0-indexing, M[i][j] is stored at A[im+j]. With 1-indexing, M[i][j] is stored at A[(i-1)m+j].