marble-machinations/levels/02_lists/list_length.json

13 lines
No EOL
414 B
JSON

{
"id": "list_length",
"sort_order": 22,
"name": "Length",
"description": "count how many numbers are in the input, until the first zero",
"stages": [{
"input": [1, 87, 9, 0],
"output": [3]
},{
"input": [182, 236, 71, 5, 5, 242, 29, 99, 19, 230, 217, 5, 67, 5, 223, 224, 70, 243, 3, 74, 242, 5, 171, 31, 96, 5, 169, 70, 5, 163, 72, 5, 172, 148, 5, 208, 28, 220, 17, 184, 172, 0],
"output": [41]
}]
}