You will be given a column vector (such as x = [1; 2; 3; 4; 5; 6]). If (n=3) you will return following;

 [ 1 NaN NaN NaN
   2   1 NaN NaN
   3   2   1 NaN
   4   3   2   1
   5   4   3   2 
   6   5   4   3 ]

Solution Stats

76 Solutions

48 Solvers

Last Solution submitted on Mar 02, 2026

Last 200 Solutions

Problem Comments

Solution Comments

Show comments
Loading...