codinasion-archive / codinasion-monorepo

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

[Program]: Find the rank of a matrix #2487

Open harshraj8843 opened 2 years ago

harshraj8843 commented 2 years ago

Description

Write a 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

Tracking Issues

Petrosdevri commented 1 year ago

I would like to ask how can my solution appear on the website because I have already submitted it on the codebase files. If I need to do anything else I can simply start a new issue or it will be up to you to fix it (it's in JavaScript by the way).

harshraj8843 commented 1 year ago

Hey @Petrosdevri

There is an issue with the file renaming script https://github.com/codinasion/program/blob/master/scripts/rename_files.py Sometimes, instead of renaming, it creates a new file

And due to duplicate file extensions available, the converter script fails https://github.com/codinasion/program/blob/master/scripts/collectProgramData.js and we have to fix it manually

It's been updated 👉🏻 codinasion.org/program/find-the-rank-of-a-matrix