Matrix with 1 to L(n), in all n columns – codegolf.stackexchange.com

Input: Take a list, L containing positive integers as input: 3 5 2 1 6 and create a matrix where the n'th column contains the vector 1:L(n), where shorter rows are padded with zeros. Test cases: ...

from Hot Questions - Stack Exchange OnStackOverflow
via Blogspot

Share this

Artikel Terkait

0 Comment to "Matrix with 1 to L(n), in all n columns – codegolf.stackexchange.com"