867 Transpose Matrix | Zero to FAANG Kunal | Assignment Solution | Leetcode

  Рет қаралды 4,692

Programmers Zone

Programmers Zone

Күн бұрын

Пікірлер: 18
@ankurpurohit5091
@ankurpurohit5091 Жыл бұрын
int[][] res =new int[m][n]; This is correct !!
@Sonu-tg6tg
@Sonu-tg6tg 3 жыл бұрын
please complete all questions from assignments of array and then start with searching and then sorting
@ProgrammersZone
@ProgrammersZone 3 жыл бұрын
Working actively will complete it ASAP :)
@growtogether1869
@growtogether1869 3 жыл бұрын
@@ProgrammersZone Thanks For Your Efforts Sir...❤❤✌✌
@ProgrammersZone
@ProgrammersZone 3 жыл бұрын
@@growtogether1869 Means a lot sir ji❤️
@mukulsehgal2190
@mukulsehgal2190 2 жыл бұрын
nice bro
@ProgrammersZone
@ProgrammersZone 2 жыл бұрын
Thanks
@dibbodas4116
@dibbodas4116 7 ай бұрын
why the time complexity is not o(n*m)
@Sonu-tg6tg
@Sonu-tg6tg 3 жыл бұрын
I have not understood java code where we got runtime error first, why we interchange m with n, and n with m
@ProgrammersZone
@ProgrammersZone 3 жыл бұрын
Suppose you are given a matrix with 5 × 2 so it's transpose will be of size 2 × 5, now we know that outer loops alters the row and inner loop alters the column so the value of row was 5 in original matrix but after transpose value of row changes to 2 thus in a general example m should be replaced by m and m should be replaced by n. Is this enough to understand?
@Sonu-tg6tg
@Sonu-tg6tg 3 жыл бұрын
@@ProgrammersZone thanks
@aniketmadame4270
@aniketmadame4270 3 жыл бұрын
bro i am solving this problem in intellije but when i execute program output is so different [[I@e9e54c2 this output is coming.can you resolvemy problem???
@ProgrammersZone
@ProgrammersZone 3 жыл бұрын
The thing is you don't write code in main but we write that in the function so it gives us error
@aniketmadame4270
@aniketmadame4270 3 жыл бұрын
@@ProgrammersZone so how should i print that then
@Aman-kd6js
@Aman-kd6js 2 жыл бұрын
Matrix[0]. length ka logic smjh nhi aaya mujhe kese lelia aapne
@ProgrammersZone
@ProgrammersZone 2 жыл бұрын
Basically ham yaha pe har row me kitne Column hai wo nikal rahe hai
@Aman-kd6js
@Aman-kd6js 2 жыл бұрын
@@ProgrammersZone accha to hm basically matrix me 0th row me kitne elements h wo nikal rhe h?
@ProgrammersZone
@ProgrammersZone 2 жыл бұрын
Ha
Transpose of Matrix in Java
8:09
CS CORNER Sunita Rai
Рет қаралды 22 М.
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 36 МЛН
Players push long pins through a cardboard box attempting to pop the balloon!
00:31
Why no RONALDO?! 🤔⚽️
00:28
Celine Dept
Рет қаралды 86 МЛН
15 Years Writing C++ - Advice for new programmers
4:04
SyncMain
Рет қаралды 1,3 МЛН
Transpose Matrix | Leetcode-867
10:11
codestorywithMIK
Рет қаралды 3,5 М.
What type of pedestrian are you?😄 #tiktok #elsarca
00:28
Elsa Arca
Рет қаралды 36 МЛН