it says that i need to find a general algorithm for solving determinants if matrices using minors of the first row for matrices larger than 2x2.

I also need to do the same thing for solving a system of n linear quations with n independent variables using determinants.

I know how to solve for both... but i'm having trouble writing a gereal algorithm for it.

thank you sooo much