← All problemsSign in

Transpose Matrix

Given the matrix of R x C size , obtain its transpose matrix. Input First line of the input contain R and C , denoting the number of rows and columns of the matrix. Next R lines contain C integers in each line separated by space, indicating the values of the matrix. Output Output contains transpose matrix of R columns and C rows. Constraints - 1≤R≤10 - 1≤C≤10 Subtask - subtask

HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17

CodeSearch Tutor

Hints, not spoilers — it won’t hand over the full solution unless you insist.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start