codinasion-archive / codinasion-monorepo

Community Monorepo
https://codinasion.org
MIT License
52 stars 167 forks source link

Write a TypeScript program to find the rank of a matrix #2507

Closed harshraj8843 closed 1 year ago

harshraj8843 commented 2 years ago

Description

Write a TypeScript program to find the rank of a matrix

The rank of a matrix is the dimension of the vector space generated by its columns. The rank of a matrix is also equal to the dimension of the vector space generated by its rows. The rank of a matrix is also equal to the number of pivots in its reduced row echelon form.

Input  :
1 2 3
4 5 6
7 8 9

Output :
2
How to contribute - Save the solution in `program/FindTheRankOfAMatrix.ts` file - Add `FindTheRankOfAMatrix.ts` file in `find-the-rank-of-a-matrix` folder
greeshma-d commented 2 years ago

!assign

Ishay1997 commented 1 year ago

!assign

RiteshK-611 commented 1 year ago

This issue has already been resolved with PR codinasion/program#7133 Here is the file FindTheRankOfAMatrix.ts