SHARE
TWEET

SE_CodeGolf_42536

Ichabod2032 Dec 21st, 2014 12 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. int[] A(int n)
  2. {
  3.     int m = n, i, c = 0,l = (int)((n / 2f) * (n + 1));
  4.     var a = new int[l];
  5.     while (m-- > 0)
  6.         for (i = m; i++ < n; )
  7.             a[c++] = i;
  8.     return a;
  9. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top