For a given square matrix of order n-by-n check whether this is a Toeplitz matrix or not. Return true if it is.
Remove the polynomials that have positive real elements of their roots.
447 Solvers
276 Solvers
244 Solvers
Determine Whether an array is empty
561 Solvers
Create a block diagonal matrix
41 Solvers
Solution 537233
Well Mr. Rifat, this is nice coding but does not fulfill the purpose. I dont know how did this solution checked as correct. Let me tell you about Toeplitz Matrix. A matrix in which all elements of main diagonal are equal and elements of other sub-diagonals parallel to main diagonal are equal. plz check this eg:a=[2 0 7 8 9;3 2 0 7 8;6 3 2 0 7;4 6 3 2 0;1 4 6 3 2]. Your coding still gives true even for non-toeplitz matrix. I'll check my reference solution again. Thanks for your time.
Sorry... I misread the definition. I thought it was only the main diagonal. I will submit another solution. Anyway.. your test suite should contain matrices to prevent such cases.