Write a function that will return same output as diag(spiral(n)). The only exception is that spiral and diag functions are not allowed in your function. Also, loops are not allowed.
552 Solvers
147 Solvers
324 Solvers
Find last zero for each column
144 Solvers
90 Solvers
Solution 475843
This really violates the spirit of the problem.
I know... :-p
it was quick and dirty. I will come again to solve it right. ;-)