The number of $3\times3$ non singular matrices with four entries as 1 and all other entries as 0, is (JEE Main 2010)
My approach: the determinant must be non-zero, which means that no row or column can be entirely zero. Hence, there are $3!=6$ to insert 3 ones into the matrix so that it is non-singular. For each way, there are 6 ways to put the fourth one, giving a total of $$6\times 6=36 \text{ ways}$$
I checked each of the six matrices with 3 ones to ensure that the determinant was non-zero. And then I would have had to check for the fourth one being inserted and ensure that it does not lead to a zero determinant.
Is there a way of doing this in one go rather than one at a time? For example, the linked answer says triple of 1's and not creating a second triple (which is the same approach that I have taken). My question is: is there an elegant way of doing it, or do I need to write it out?
For reference: Question is at the high school math level (not from a linear algebra subject)