Transpose a Sparse Matrix
A sparse matrix is given as triples (row col value). Print the triples of its transpose sorted by row, then column.
Constraints
1 <= n <= 10^5
Discussion
No discussions yet.
Shalyam Support
Hi! Ask us anything — we'll reply on WhatsApp or Telegram within 24 hours.