I need to create a sparse matrix implementation. Only allocate space for non-zero matrix elements. Implement methods for addition, subtraction, multiplication and determinant. Here is how I want to implement it:

Matrix is an array of linked lists.

Each linked list represents a row.

Each entry in the linked list has a value and a column associated with it.

I need help with the setEntry method and creating the array of linked lists.

I can include the code I've done so far.