I need to implement operations with matrices and size of matrix has to be variable. The only solution I came up with is to use linked list:
[pointer to this row, pointer to another row] -> [element 1,1; link to another element] -> [element 1,2, link to another element] -> .... -> [nil]
|
v
[pointer to this row, pointer to another row] ...
...
But it seems to me a little bit complex.. Is there a better (and easier) solution?
Thank you guys!