You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//Write a program to find the transpose of a square matrix of size N*N. The transpose of a matrix is obtained by changing rows to columns and columns to rows.
#include <bits/stdc++.h>
using namespace std;
//Function to find transpose of a matrix.
void transpose(vector<vector<int> > &matrix, int n)