From 187ea396b5245eba9f76addedbf4ce23a86a1e40 Mon Sep 17 00:00:00 2001 From: Harsh Nagpal Date: Tue, 18 Nov 2025 21:00:31 +0530 Subject: [PATCH] Add transpose function for a 2D array Implemented a function to transpose a 2D array. --- Data-Structures/Array/Transpose of a Array | 28 ++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 Data-Structures/Array/Transpose of a Array diff --git a/Data-Structures/Array/Transpose of a Array b/Data-Structures/Array/Transpose of a Array new file mode 100644 index 0000000000..bb94f61d3a --- /dev/null +++ b/Data-Structures/Array/Transpose of a Array @@ -0,0 +1,28 @@ +//It's just for Accessing the elements +// const row=2; +// const column=3; + +// const matrix=[]; +// let count=1; +// for(let i=0;i