Write a Javascript function that transposes (m,n) matrix.
- Example : var matrix = [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ];
- Function must only call basic methods (push, length) and handle square and non-square matrices. (without Jquery)
Write a Javascript function that transposes (m,n) matrix.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Midhun TpRank #388 · 6.5K reputationPosted Jul 28, 2016, 6:58 AM EDT
AMENI Miskini8 reputationPosted Jul 28, 2016, 7:32 AM EDT
Design an html area so the user can enter input data and see the result.