id/email password forgot password create account Or use Mozilla Persona: Mozilla Persona lets you create an account using your gmail or yahoo login, avoiding a separate Codingbat password.
 about | help | code help+videos | done | prefs
CodingBat code practice

Java > Array-3 > squareUp
prev  |  next  |  chance

 Given n>=0, create an array length n*n with the following pattern, shown here for n=3 : {0, 0, 1,    0, 2, 1,    3, 2, 1} (spaces added to show the 3 groups). squareUp(3) → {0, 0, 1, 0, 2, 1, 3, 2, 1}squareUp(2) → {0, 1, 2, 1}squareUp(4) → {0, 0, 0, 1, 0, 0, 2, 1, 0, 3, 2, 1, 4, 3, 2, 1}...Save, Compile, Runpublic int[] squareUp(int n) { } Show output only (no red/green) prev  |  next  |  chance   |  CodingBat  >  Array-3

Forget It! -- delete my code for this problem

Progress graphs, just for fun:
Your progress graph for this problem
Random user progress graph for this problem
Random Epic Progress Graph

### Misc Code Practice

318.0

Copyright Nick Parlante 2006-11 - privacy