+ 1

Sparse matrix. C++

Would someone know how to full the sparse matrix using random numbers for the column, row and value as a vector without being possible to repeat the same position (column, row) with two different values because doesnt make any sense. C++ Thanks😋 https://code.sololearn.com/c1wH52W8aCsF/?ref=app That is what i got so far

24th May 2019, 7:32 PM
Martín
1 Respuesta
+ 3
my version of a sparse matrix, though in Python ... two implementation options. The essence of discharges in my view is that the matrix stores only filled cells and being two-dimensional, it is actually represented in the first variant by a sorted list in the second variant by a list of lists (sets). https://code.sololearn.com/cBGh9e49nvFL/?ref=app https://code.sololearn.com/c7qIx9W1Giwo/?ref=app If you are interested, I can make a similar decision in C ++ (just ...) or in C (it will be more difficult, but not much ...)
9th Jan 2020, 7:20 PM
Michail Getmanskiy
Michail Getmanskiy - avatar