I want to make vertically sparse matrix using LinkedList. So I mean, Rows of matrix connected to each other with LinkedList nodes. and each row nodes contains index of that row and values. My struct like;
struct Node {
int index;
int *values;
}Node;
How can I point current row's array which contains values. Its single linkedlist.