 What's up guys my name is Michael and welcome to my YouTube channel I actually have to re-record this video because like the file got corrupted, but basically we're gonna do the another decode problem They're called transpose matrix. You're given a matrix return the transpose That just means flip the row and column of each value in the matrix. So I'll just redo this so first We're gonna create a vector called to return That's we're just gonna store the The to return values That we're returning so we're gonna turn to return Then what we're gonna do is we're gonna go through every row and column So our new matrix is gonna have a row value that is as the little number of columns of the old matrix and our new Matrix is gonna have a column value that is The number of rows in the old matrix. That's where is what I'm gonna say So this is gonna be a at zero Dot size the reason why this is gonna be the number of columns. So this is actually columns number of columns Okay, then we're gonna go every row So what I'm gonna do is I'm gonna create a new row every time. This is gonna be new row a vector of new row then After we add each row value. We're going to add New row to our to return matrix and then we return to return to return Here I'm gonna do new row is gonna push back and I'm going to essentially add a at J I This is gonna swap the two values Not swap. It's gonna flip the two values. So essentially All the rows are gonna become columns all the columns are gonna become rows. Okay, that's what it means Let's just run this code to see if it works Boom got the expected submit And it passed so essentially all we did was if you want the Rows to become columns and columns become rows as when you flip the rows to be columns columns Be rows all you have to do is essentially is is just Instead of going through row by row We're gonna go through the number of columns then we go through number rows and then we're gonna add whatever value that was flipped So instead of I J we're gonna add J I and then we're gonna add that Add that new row to our matrix and then return it. Yeah, that's basically how you do it. It's pretty easy Yeah, didn't take that long ready calm subscribe