6 kyu

Shorten Me: Array Declaration X (O-I-II)

Description:

Shorten Me: Array Declaration X (O-I-II)


Task

You have to write an array() function returning an array object with elements as follow:

[ 1, 0, 2, 2, 1, 0, 1,
  2, 2, 2, 2, 0, 2, 0,
  1, 2, 0, 2, 0, 0, 2,
  0, 2, 1, 1, 1, 0, 0 ]

Coding Limitation:

Less than 55 characters


|||| |---|---:| |Previous: Part IX (Variable Types)|Next: Part XI (Triangle)|

Shorten Me: Array Declaration Series

Puzzles
Restricted

Stats:

CreatedJan 9, 2018
PublishedJan 9, 2018
Warriors Trained135
Total Skips0
Total Code Submissions323
Total Times Completed70
JavaScript Completions70
Total Stars5
% of votes with a positive feedback rating93% of 35
Total "Very Satisfied" Votes30
Total "Somewhat Satisfied" Votes5
Total "Not Satisfied" Votes0
Total Rank Assessments5
Average Assessed Rank
6 kyu
Highest Assessed Rank
6 kyu
Lowest Assessed Rank
8 kyu
Ad
Contributors
  • ZahNarztiK Avatar
  • JohanWiltink Avatar
Ad