task_name stringclasses 250
values | description stringclasses 227
values | prompt stringlengths 281 781 | ground_truth stringlengths 8 100 | input stringlengths 2 40 | target stringlengths 2 60 |
|---|---|---|---|---|---|
c105 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate all but the last element with all but the first element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[49, 11, 73, 7] -> [49, 11, 73, 11, 73, 7]
[3, 81, 35, 26] -> [3, 81, 35, 81, 35, 26]
[6, 8, 5] -> [6, 8, 8, 5]
[47, 45, 73] -> [47, 45, 45, 73]
[62, 4, 8, 75, 2, 19] -> [62, 4, 8, 75, 2,... | [1, 30, 7, 72] -> [1, 30, 7, 30, 7, 72] | [1, 30, 7, 72] | [1, 30, 7, 30, 7, 72] |
c248 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements after the last 0". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 54, 7, 0, 9, 0, 97, 1] -> [97, 1]
[61, 0, 2, 61, 2, 0, 2, 2] -> [2, 2]
[2, 26, 44, 11, 0, 5, 9, 32, 6] -> [5, 9, 32, 6]
[37, 37, 37, 37] -> [37, 37, 37, 37]
[3, 92, 6, 1, 93, 26, 4, 0... | [71, 8, 5] -> [71, 8, 5] | [71, 8, 5] | [71, 8, 5] |
c236 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "even elements divided by 2". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[77, 86, 96, 7, 24, 32, 4, 9, 3, 2] -> [43, 48, 12, 16, 2, 1]
[2, 3, 1, 9, 7, 63, 81] -> [1]
[83, 0, 3, 1, 7, 5, 4] -> [0, 2]
[0, 7, 8, 90, 5, 3, 72, 87, 88] -> [0, 4, 45, 36, 44]
[90, 67... | [3, 4, 33, 44, 8, 70, 79, 35, 2, 80] -> [2, 22, 4, 35, 1, 40] | [3, 4, 33, 44, 8, 70, 79, 35, 2, 80] | [2, 22, 4, 35, 1, 40] |
c225 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove first and last two elements". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 5, 10, 34, 57, 44] -> [10, 34]
[6, 5, 11, 42, 91, 70, 4] -> [11, 42, 91]
[3, 91, 25, 90, 92, 0] -> [25, 90]
[24, 46, 0, 31, 74, 5, 44, 80, 94] -> [0, 31, 74, 5, 44]
[99, 9, 35, 98, 7,... | [3, 8, 71, 60, 79, 2, 73, 36] -> [71, 60, 79, 2] | [3, 8, 71, 60, 79, 2, 73, 36] | [71, 60, 79, 2] |
c039 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "append 3 if the list length is 3, else append 9 if the list length is 9". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 2, 7, 0, 5, 1, 6, 4, 8] -> [9, 2, 7, 0, 5, 1, 6, 4, 8, 9]
[2, 0, 5, 3, 7, 6, 1, 9, 8] -> [2, 0, 5, 3, 7, 6, 1, 9, 8, 9]
[6, 2, 0] -> [6, 2, 0, 3]
[0, 9, 8, 2, 7, 5, 4, 1, 6] -> [0, 9,... | [4, 0, 7, 1, 5, 6, 8, 3, 2] -> [4, 0, 7, 1, 5, 6, 8, 3, 2, 9] | [4, 0, 7, 1, 5, 6, 8, 3, 2] | [4, 0, 7, 1, 5, 6, 8, 3, 2, 9] |
c232 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "mean value of the input". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[60, 45, 24] -> [43]
[72, 98, 43] -> [71]
[32, 76, 3] -> [37]
[13, 3, 6, 4] -> [6]
[8, 37, 46, 7] -> [24]
[3, 48, 8] -> [19]
[90, 4, 1, 13, 2] -> [22]
[4, 22, 93, 81, 8] -> [41]
Questions... | [10, 99, 8] -> [39] | [10, 99, 8] | [39] |
c133 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove elements 2 through 5". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[28, 95, 72, 3, 1, 42, 4] -> [28, 42, 4]
[8, 38, 4, 57, 88, 20, 36, 68] -> [8, 20, 36, 68]
[89, 6, 16, 88, 4, 47] -> [89, 47]
[9, 94, 8, 44, 24, 7, 87, 0, 89] -> [9, 7, 87, 0, 89]
[65, 0,... | [15, 6, 97, 0, 2, 49, 8, 65, 26, 50] -> [15, 49, 8, 65, 26, 50] | [15, 6, 97, 0, 2, 49, 8, 65, 26, 50] | [15, 49, 8, 65, 26, 50] |
c038 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "append 9". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 1, 5] -> [4, 1, 5, 9]
[1, 4, 8, 2, 3, 5, 9, 0, 7, 6] -> [1, 4, 8, 2, 3, 5, 9, 0, 7, 6, 9]
[2, 6] -> [2, 6, 9]
[4, 6, 1, 0, 5, 8] -> [4, 6, 1, 0, 5, 8, 9]
[2, 5, 3, 0, 6, 8, 1, 9] -> [... | [3] -> [3, 9] | [3] | [3, 9] |
c147 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "each element, followed by its original index". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[39, 5, 60, 6, 16, 7, 26] -> [39, 1, 5, 2, 60, 3, 6, 4, 16, 5, 7, 6, 26, 7]
[90, 9, 6, 67, 0] -> [90, 1, 9, 2, 6, 3, 67, 4, 0, 5]
[8, 52, 70] -> [8, 1, 52, 2, 70, 3]
[54, 17, 29, 22] -> [... | [5, 50, 92, 42, 58, 6] -> [5, 1, 50, 2, 92, 3, 42, 4, 58, 5, 6, 6] | [5, 50, 92, 42, 58, 6] | [5, 1, 50, 2, 92, 3, 42, 4, 58, 5, 6, 6] |
c085 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element N + 1, N = element 1". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 62, 4] -> [62]
[5, 17, 1, 4, 3, 88, 68] -> [88]
[1, 56, 7, 30] -> [56]
[2, 1, 40, 92, 26, 95, 45] -> [40]
[3, 79, 55, 55, 1, 74] -> [55]
[1, 14, 3, 2, 78, 9] -> [14]
[3, 23, 72, 23] -... | [3, 2, 5, 35, 63, 62, 7, 1, 20, 22] -> [35] | [3, 2, 5, 35, 63, 62, 7, 1, 20, 22] | [35] |
c028 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 2 if element 1 > element 2, else remove element 3". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 7, 3, 8, 3, 8] -> [4, 7, 8, 3, 8]
[1, 0, 9, 8, 2, 7, 3, 6, 5, 4] -> [1, 9, 8, 2, 7, 3, 6, 5, 4]
[8, 7, 9, 1, 4, 5, 5, 5, 3, 2] -> [8, 9, 1, 4, 5, 5, 5, 3, 2]
[7, 0, 8] -> [7, 8]
[4, 5... | [8, 9, 3, 6, 5, 0, 2, 7, 1, 4] -> [8, 9, 6, 5, 0, 2, 7, 1, 4] | [8, 9, 3, 6, 5, 0, 2, 7, 1, 4] | [8, 9, 6, 5, 0, 2, 7, 1, 4] |
c056 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 5". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 5, 4, 8, 9] -> [6, 5, 4, 8]
[4, 2, 9, 1, 0, 7, 6, 3] -> [4, 2, 9, 1, 7, 6, 3]
[1, 0, 4, 3, 8, 5] -> [1, 0, 4, 3, 5]
[5, 7, 1, 8, 3, 6, 4] -> [5, 7, 1, 8, 6, 4]
[0, 9, 7, 5] -> [0, 9, ... | [7, 8, 4, 9, 5, 3, 1, 0, 6, 2] -> [7, 8, 4, 9, 3, 1, 0, 6, 2] | [7, 8, 4, 9, 5, 3, 1, 0, 6, 2] | [7, 8, 4, 9, 3, 1, 0, 6, 2] |
c050 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "prepend element 1". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 7, 0, 5] -> [4, 4, 7, 0, 5]
[1] -> [1, 1]
[5, 2] -> [5, 5, 2]
[1, 4, 0, 8, 6, 7, 3, 2] -> [1, 1, 4, 0, 8, 6, 7, 3, 2]
[5] -> [5, 5]
[6, 9, 2, 1, 3] -> [6, 6, 9, 2, 1, 3]
[4, 3, 6, 2, ... | [1, 7, 3, 4, 6, 8, 2, 9, 5] -> [1, 1, 7, 3, 4, 6, 8, 2, 9, 5] | [1, 7, 3, 4, 6, 8, 2, 9, 5] | [1, 1, 7, 3, 4, 6, 8, 2, 9, 5] |
c067 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap the first and last elements". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 0, 2, 8, 6, 7, 5, 1] -> [1, 0, 2, 8, 6, 7, 5, 9]
[9, 8] -> [8, 9]
[8, 0] -> [0, 8]
[4, 0, 8, 5, 3, 7, 1, 9, 6] -> [6, 0, 8, 5, 3, 7, 1, 9, 4]
[3, 4, 6, 2, 8, 1] -> [1, 4, 6, 2, 8, 3]
... | [3, 7, 9, 1, 5] -> [5, 7, 9, 1, 3] | [3, 7, 9, 1, 5] | [5, 7, 9, 1, 3] |
c011 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements 2 through 4". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 8] -> [8]
[0, 8, 7, 9] -> [8, 7, 9]
[7, 6] -> [6]
[7] -> []
[8, 9, 6, 5, 4] -> [9, 6, 5]
[7, 4] -> [4]
[8, 2, 1, 6, 7] -> [2, 1, 6]
[3, 0, 4] -> [0, 4]
Questions:
[9, 4] -> ?
Answer:
| [9, 4] -> [4] | [9, 4] | [4] |
c102 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the input". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[39, 8, 4] -> [39, 8, 4]
[3, 89] -> [3, 89]
[52, 67] -> [52, 67]
[96, 68] -> [96, 68]
[58, 53, 8, 59, 70] -> [58, 53, 8, 59, 70]
[93, 24, 9, 73, 71] -> [93, 24, 9, 73, 71]
[60, 92] -> [60... | [] -> [] | [] | [] |
c075 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove every element with an even index". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 4, 0] -> [9, 0]
[2, 4, 6, 3, 0, 8, 7] -> [2, 6, 0, 7]
[2, 4, 8, 0] -> [2, 8]
[3, 6, 5, 9, 0, 7, 2, 4, 8] -> [3, 5, 0, 2, 8]
[9, 0, 6, 4, 1, 5, 7, 2, 3, 8] -> [9, 6, 1, 7, 3]
[3, 0, 5,... | [4, 2, 3, 0, 9, 5, 1, 8, 7, 6] -> [4, 3, 9, 1, 7] | [4, 2, 3, 0, 9, 5, 1, 8, 7, 6] | [4, 3, 9, 1, 7] |
c102 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the input". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[39, 8, 4] -> [39, 8, 4]
[3, 89] -> [3, 89]
[52, 67] -> [52, 67]
[96, 68] -> [96, 68]
[58, 53, 8, 59, 70] -> [58, 53, 8, 59, 70]
[93, 24, 9, 73, 71] -> [93, 24, 9, 73, 71]
[60, 92] -> [60... | [51, 77, 6, 7, 4, 0] -> [51, 77, 6, 7, 4, 0] | [51, 77, 6, 7, 4, 0] | [51, 77, 6, 7, 4, 0] |
c103 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "input length". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[24, 47, 46, 40, 20] -> [5]
[5, 99, 8, 30, 42, 13, 2, 83, 58, 44] -> [10]
[40, 11] -> [2]
[44, 6, 51, 71, 81, 68, 3] -> [7]
[35, 17, 3, 6, 23, 0, 5, 90] -> [8]
[9, 97, 28, 78, 48, 6, 31] ... | [4, 1, 56, 14, 88, 2, 79, 93, 17, 53] -> [10] | [4, 1, 56, 14, 88, 2, 79, 93, 17, 53] | [10] |
c055 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 3 and elements 2 and 4". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 7, 9, 8, 6] -> [9, 8, 5, 7, 6]
[4, 3, 2, 8, 9, 6, 7, 1, 0] -> [2, 8, 4, 3, 9, 6, 7, 1, 0]
[3, 8, 0, 7] -> [0, 7, 3, 8]
[3, 8, 7, 0, 9, 6, 5, 2, 4] -> [7, 0, 3, 8, 9, 6, 5, 2, 4]
[0, 3... | [1, 9, 6] -> [6, 1, 9] | [1, 9, 6] | [6, 1, 9] |
c023 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "insert as element 2: 8 if the list length > 5 else 5". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 3, 8, 0, 7, 6, 4, 2] -> [9, 5, 3, 8, 0, 7, 6, 4, 2]
[4, 1, 2, 0, 6, 9] -> [4, 5, 1, 2, 0, 6, 9]
[6, 2, 8, 5, 1, 9, 7, 3, 4] -> [6, 5, 2, 8, 5, 1, 9, 7, 3, 4]
[6, 2] -> [6, 8, 2]
[7, 9... | [9, 7, 8] -> [9, 8, 7, 8] | [9, 7, 8] | [9, 8, 7, 8] |
c049 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 1". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 8, 4, 2, 3, 0, 6, 7] -> [8, 4, 2, 3, 0, 6, 7]
[2, 9, 1, 3, 4, 6, 7, 8, 5] -> [9, 1, 3, 4, 6, 7, 8, 5]
[2, 9, 4] -> [9, 4]
[9] -> []
[1, 8, 4, 2, 6] -> [8, 4, 2, 6]
[7, 1, 8, 3, 2, 4] ... | [4, 9, 6, 7, 2, 1, 5] -> [9, 6, 7, 2, 1, 5] | [4, 9, 6, 7, 2, 1, 5] | [9, 6, 7, 2, 1, 5] |
c015 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements M + 2 through N + 2, M = element 1, N = element 2". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 5, 1, 6, 3, 1, 6, 0] -> [1, 6, 3, 1, 6]
[3, 4, 5, 7, 6, 0, 8, 9, 2, 1] -> [6, 0]
[2, 4, 0, 3, 7, 9, 6, 1] -> [3, 7, 9]
[2, 7, 9, 1, 0, 8, 3, 4, 5, 6] -> [1, 0, 8, 3, 4, 5]
[1, 4, 9, 3... | [3, 6, 5, 2, 7, 5, 1, 8, 9, 4] -> [7, 5, 1, 8] | [3, 6, 5, 2, 7, 5, 1, 8, 9, 4] | [7, 5, 1, 8] |
c042 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [5, 2]". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 7, 8] -> [5, 2]
[1, 8, 7, 7, 8] -> [5, 2]
[4, 0, 1, 4, 0, 6, 0, 9, 6, 6] -> [5, 2]
[3, 7, 0, 7, 7, 0] -> [5, 2]
[0, 8, 4, 8] -> [5, 2]
[6, 3, 7, 7, 4, 6] -> [5, 2]
[3, 4, 4, 1, 1, 3, ... | [0, 9, 0, 7, 7] -> [5, 2] | [0, 9, 0, 7, 7] | [5, 2] |
c132 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 3". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 4, 44, 78] -> [1, 4, 78]
[7, 34, 4, 59, 45] -> [7, 34, 59, 45]
[6, 78, 9, 56, 10, 7, 8] -> [6, 78, 56, 10, 7, 8]
[64, 31, 6, 28, 46] -> [64, 31, 28, 46]
[42, 21, 31, 2, 7, 3, 1, 9] ->... | [0, 38, 80, 33, 6, 9, 2] -> [0, 38, 33, 6, 9, 2] | [0, 38, 80, 33, 6, 9, 2] | [0, 38, 33, 6, 9, 2] |
c154 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "triple each even element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 1, 1, 20, 37, 3] -> [7, 1, 1, 60, 37, 3]
[3, 5, 0, 8, 6, 7, 27, 4, 2, 9] -> [3, 5, 0, 24, 18, 7, 27, 12, 6, 9]
[91, 6, 1, 55, 28, 91] -> [91, 18, 1, 55, 84, 91]
[63, 7, 1, 2, 77, 57, ... | [26, 1, 37, 8, 7, 6, 3] -> [78, 1, 37, 24, 7, 18, 3] | [26, 1, 37, 8, 7, 6, 3] | [78, 1, 37, 24, 7, 18, 3] |
c112 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count from 1 to the last element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[14, 23, 88, 7, 0, 82, 8] -> [1, 2, 3, 4, 5, 6, 7, 8]
[38, 0, 5, 47, 80, 86, 4, 21, 94, 9] -> [1, 2, 3, 4, 5, 6, 7, 8, 9]
[2, 28, 78, 80, 90, 79, 8, 9] -> [1, 2, 3, 4, 5, 6, 7, 8, 9]
[12]... | [8] -> [1, 2, 3, 4, 5, 6, 7, 8] | [8] | [1, 2, 3, 4, 5, 6, 7, 8] |
c072 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repeat every element 2 times in order of appearance". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 6, 0, 2, 7] -> [1, 1, 6, 6, 0, 0, 2, 2, 7, 7]
[8, 1, 7, 4, 2] -> [8, 8, 1, 1, 7, 7, 4, 4, 2, 2]
[9, 4, 0, 1, 2, 6] -> [9, 9, 4, 4, 0, 0, 1, 1, 2, 2, 6, 6]
[3, 8, 9, 5, 1, 6, 0] -> [3,... | [5, 7, 4, 3] -> [5, 5, 7, 7, 4, 4, 3, 3] | [5, 7, 4, 3] | [5, 5, 7, 7, 4, 4, 3, 3] |
c237 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "cumulative sum of unique elements". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 8, 1, 2, 2, 2, 1] -> [2, 10, 11]
[0, 2, 3, 5, 5, 0, 6, 6, 0, 5] -> [0, 2, 5, 10, 16]
[2, 8, 6, 48, 48, 48, 8, 48, 8] -> [2, 10, 16, 64]
[0, 5, 0, 15, 5, 2, 28, 4, 7, 4] -> [0, 5, 20, ... | [1, 8, 1, 0, 0, 8, 8, 1] -> [1, 9, 9] | [1, 8, 1, 0, 0, 8, 8, 1] | [1, 9, 9] |
c186 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements greater than element 1". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 62, 97, 4, 42, 27, 43, 1, 5] -> [62, 97, 42, 27, 43]
[9, 0, 16, 94, 4, 2, 6, 27, 9, 88] -> [16, 94, 27, 88]
[6, 4, 0, 87, 9, 86, 89, 1, 23] -> [87, 9, 86, 89, 23]
[5, 60, 5, 60] -> [6... | [4, 8, 2, 4, 0, 12, 30, 7, 31] -> [8, 12, 30, 7, 31] | [4, 8, 2, 4, 0, 12, 30, 7, 31] | [8, 12, 30, 7, 31] |
c044 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 6, 6, 6, 6] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[5, 7, 3] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[7, 6, 6, 6, 6, 7, 7, 6, 6, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[7, 7, 7, 7, 7] -> [1, 9, 4,... | [3, 7, 3, 3, 1, 7, 3, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] | [3, 7, 3, 3, 1, 7, 3, 7] | [1, 9, 4, 3, 2, 5, 8, 0, 4, 9] |
c245 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of times element 1 appears in elements 2 and following". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 4, 5, 9, 2, 63, 8] -> [1]
[33, 33, 33, 33, 33, 33, 33] -> [6]
[6, 6, 6, 6, 6, 6, 6, 6, 6, 6] -> [9]
[35, 1, 40, 2, 9, 6, 15, 5, 92, 19] -> [0]
[1, 75, 61, 2, 53, 86, 93, 4] -> [0]
[9,... | [34, 32, 42, 97, 9, 12, 45, 48, 3, 14] -> [0] | [34, 32, 42, 97, 9, 12, 45, 48, 3, 14] | [0] |
c058 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the first 7 elements". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8] -> []
[2, 3, 1, 0, 8, 5, 6, 7, 9] -> [7, 9]
[8, 3, 2, 1, 9, 5, 4, 6, 0, 7] -> [6, 0, 7]
[1, 9, 5, 3] -> []
[1] -> []
[1, 8, 4, 9, 0, 6, 7, 3] -> [3]
[2, 4, 8, 9, 7, 3, 0, 6, 5] -> [6,... | [3, 0, 9, 6, 1, 5, 7, 2] -> [2] | [3, 0, 9, 6, 1, 5, 7, 2] | [2] |
c032 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove two elements: the first two if element 1 > last element, else the last two". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 2, 8, 7, 6, 5, 1, 0] -> [8, 7, 6, 5, 1, 0]
[8, 6, 7] -> [7]
[3, 8, 6, 0] -> [6, 0]
[0, 8, 5, 6, 3, 1, 7, 4, 9] -> [0, 8, 5, 6, 3, 1, 7]
[0, 8, 3, 4, 2, 6, 5, 9, 7, 1] -> [0, 8, 3, 4, ... | [1, 0, 5, 7] -> [1, 0] | [1, 0, 5, 7] | [1, 0] |
c249 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "use 0s to delimit sublists; give element 1 of each sublist". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[66, 0, 66, 0, 66, 1, 1, 78, 67, 8] -> [66, 66, 66]
[75, 10, 0, 52, 0, 75] -> [75, 52, 75]
[96, 6, 2, 96, 0, 14, 0, 2] -> [96, 14, 2]
[1, 2, 1, 13, 0, 13, 2, 0, 13] -> [1, 13, 13]
[76, 80... | [7, 2, 16, 71, 73, 13, 77, 0, 59, 3] -> [7, 59] | [7, 2, 16, 71, 73, 13, 77, 0, 59, 3] | [7, 59] |
c210 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements with last element inserted at index M, where M is element 1". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 9, 83, 7, 52] -> [2, 52, 9, 83, 7, 52]
[1, 22] -> [22, 1, 22]
[4, 8, 73, 99, 6, 1, 90, 1, 45, 83] -> [4, 8, 73, 83, 99, 6, 1, 90, 45, 83]
[5, 8, 33, 0, 7, 80] -> [5, 8, 33, 0, 80, 7, ... | [5, 6, 41, 40, 4, 79, 46, 71, 9, 7] -> [5, 6, 41, 40, 7, 4, 79, 46, 71, 9, 7] | [5, 6, 41, 40, 4, 79, 46, 71, 9, 7] | [5, 6, 41, 40, 7, 4, 79, 46, 71, 9, 7] |
c027 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 2 if element 1 = element 2, else remove element 3". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 7, 4, 2, 9, 0, 8] -> [6, 7, 2, 9, 0, 8]
[3, 6, 0, 1, 5, 7, 4, 2] -> [3, 6, 1, 5, 7, 4, 2]
[9, 9, 3, 9, 5, 5] -> [9, 3, 9, 5, 5]
[9, 3, 0, 1, 2, 6, 8, 7] -> [9, 3, 1, 2, 6, 8, 7]
[1, 9... | [0, 9, 2, 5, 1, 6, 4] -> [0, 9, 5, 1, 6, 4] | [0, 9, 2, 5, 1, 6, 4] | [0, 9, 5, 1, 6, 4] |
c094 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 3 and elements 2 and 4". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[27, 4, 70, 28, 91, 82, 80, 7, 0] -> [70, 28, 27, 4, 91, 82, 80, 7, 0]
[37, 5, 34, 45, 63, 25] -> [34, 45, 37, 5, 63, 25]
[34, 8, 5, 0, 86, 52, 53, 33, 4, 1] -> [5, 0, 34, 8, 86, 52, 53, ... | [19, 6, 10, 5, 72] -> [10, 5, 19, 6, 72] | [19, 6, 10, 5, 72] | [10, 5, 19, 6, 72] |
c032 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove two elements: the first two if element 1 > last element, else the last two". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 2, 8, 7, 6, 5, 1, 0] -> [8, 7, 6, 5, 1, 0]
[8, 6, 7] -> [7]
[3, 8, 6, 0] -> [6, 0]
[0, 8, 5, 6, 3, 1, 7, 4, 9] -> [0, 8, 5, 6, 3, 1, 7]
[0, 8, 3, 4, 2, 6, 5, 9, 7, 1] -> [0, 8, 3, 4, ... | [1, 6, 9, 7, 4, 0, 5, 2] -> [1, 6, 9, 7, 4, 0] | [1, 6, 9, 7, 4, 0, 5, 2] | [1, 6, 9, 7, 4, 0] |
c128 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements in ascending order after removing elements 1, 2, and 5". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[75, 9, 69, 22, 27, 5] -> [5, 22, 69]
[9, 6, 24, 65, 25, 54, 21, 79, 18] -> [18, 21, 24, 54, 65, 79]
[2, 54, 4, 58, 9, 6, 49, 36, 56] -> [4, 6, 36, 49, 56, 58]
[85, 9, 3, 5, 50, 7, 1, 10,... | [8, 9, 1, 0, 73, 77, 71] -> [0, 1, 71, 77] | [8, 9, 1, 0, 73, 77, 71] | [0, 1, 71, 77] |
c150 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count from element 1 up to each element, in order of appearance". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[17, 7, 2, 4] -> [17, 7, 2, 4]
[52, 18, 3] -> [52, 18, 3]
[80, 0, 7, 52, 62, 73] -> [80, 0, 7, 52, 62, 73]
[2, 0, 3, 6, 1] -> [2, 0, 2, 3, 2, 3, 4, 5, 6, 1]
[45, 23, 7, 4, 1, 47] -> [45, ... | [85, 71, 8, 56, 81, 90] -> [85, 71, 8, 56, 81, 85, 86, 87, 88, 89, 90] | [85, 71, 8, 56, 81, 90] | [85, 71, 8, 56, 81, 85, 86, 87, 88, 89, 90] |
c215 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element M + 1 with the length of the input, M = element 1; drop element 1". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 9, 4, 1, 93] -> [9, 4, 5, 93]
[3, 87, 87, 33, 59, 2, 6, 72, 45, 8] -> [87, 87, 10, 59, 2, 6, 72, 45, 8]
[2, 61, 0, 27, 1, 4, 72, 92, 84] -> [61, 9, 27, 1, 4, 72, 92, 84]
[4, 1, 5, 2, ... | [3, 18, 9, 7, 4] -> [18, 9, 5, 4] | [3, 18, 9, 7, 4] | [18, 9, 5, 4] |
c143 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace every occurrence of the largest element with the smallest element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[31, 31, 0] -> [0, 0, 0]
[35, 7, 63, 78, 78, 27, 46] -> [35, 7, 63, 7, 7, 27, 46]
[6, 6] -> [6, 6]
[57, 60, 42, 97, 4, 7, 97, 5, 8, 49] -> [57, 60, 42, 4, 4, 7, 4, 5, 8, 49]
[83, 83, 45] ... | [62, 0, 4, 88, 54, 88, 7, 1, 16, 49] -> [62, 0, 4, 0, 54, 0, 7, 1, 16, 49] | [62, 0, 4, 88, 54, 88, 7, 1, 16, 49] | [62, 0, 4, 0, 54, 0, 7, 1, 16, 49] |
c211 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse input; insert elements 4 and 5 so they are fourth and third from last, respectively". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 9, 6, 5, 71, 67] -> [67, 71, 5, 5, 71, 6, 9, 2]
[43, 77, 6, 1, 80, 5, 8, 57] -> [57, 8, 5, 80, 1, 1, 80, 6, 77, 43]
[82, 9, 57, 3, 22, 31] -> [31, 22, 3, 3, 22, 57, 9, 82]
[23, 19, 7,... | [62, 96, 6, 7, 40, 3, 25] -> [25, 3, 40, 7, 7, 40, 6, 96, 62] | [62, 96, 6, 7, 40, 3, 25] | [25, 3, 40, 7, 7, 40, 6, 96, 62] |
c064 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the first and last elements". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 8, 4] -> [8]
[7, 1, 2, 9, 3, 0, 8, 4, 5, 6] -> [1, 2, 9, 3, 0, 8, 4, 5]
[7, 9, 3, 6, 5, 1, 2, 8, 0] -> [9, 3, 6, 5, 1, 2, 8]
[1, 6, 7, 2, 3, 5, 0, 4, 9] -> [6, 7, 2, 3, 5, 0, 4]
[0, 5... | [4, 1, 0, 3, 8, 5, 7] -> [1, 0, 3, 8, 5] | [4, 1, 0, 3, 8, 5, 7] | [1, 0, 3, 8, 5] |
c211 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse input; insert elements 4 and 5 so they are fourth and third from last, respectively". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 9, 6, 5, 71, 67] -> [67, 71, 5, 5, 71, 6, 9, 2]
[43, 77, 6, 1, 80, 5, 8, 57] -> [57, 8, 5, 80, 1, 1, 80, 6, 77, 43]
[82, 9, 57, 3, 22, 31] -> [31, 22, 3, 3, 22, 57, 9, 82]
[23, 19, 7,... | [85, 1, 68, 6, 64, 63] -> [63, 64, 6, 6, 64, 68, 1, 85] | [85, 1, 68, 6, 64, 63] | [63, 64, 6, 6, 64, 68, 1, 85] |
c102 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the input". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[39, 8, 4] -> [39, 8, 4]
[3, 89] -> [3, 89]
[52, 67] -> [52, 67]
[96, 68] -> [96, 68]
[58, 53, 8, 59, 70] -> [58, 53, 8, 59, 70]
[93, 24, 9, 73, 71] -> [93, 24, 9, 73, 71]
[60, 92] -> [60... | [30] -> [30] | [30] | [30] |
c072 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repeat every element 2 times in order of appearance". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 6, 0, 2, 7] -> [1, 1, 6, 6, 0, 0, 2, 2, 7, 7]
[8, 1, 7, 4, 2] -> [8, 8, 1, 1, 7, 7, 4, 4, 2, 2]
[9, 4, 0, 1, 2, 6] -> [9, 9, 4, 4, 0, 0, 1, 1, 2, 2, 6, 6]
[3, 8, 9, 5, 1, 6, 0] -> [3,... | [9, 0, 8] -> [9, 9, 0, 0, 8, 8] | [9, 0, 8] | [9, 9, 0, 0, 8, 8] |
c213 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "three smallest elements in ascending order". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 51, 55, 73, 3, 56, 87, 10, 5] -> [3, 5, 8]
[70, 76, 71, 10, 60, 42, 7, 40] -> [7, 10, 40]
[6, 59, 22, 7, 30, 68] -> [6, 7, 22]
[40, 1, 72, 18, 61, 27, 48] -> [1, 18, 27]
[75, 7, 16, 2... | [88, 32, 61, 8, 4] -> [4, 8, 32] | [88, 32, 61, 8, 4] | [4, 8, 32] |
c078 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "maximum element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 7, 1, 2, 0, 3, 9, 4] -> [9]
[2, 4] -> [4]
[1, 9, 5, 7, 4, 6, 2, 3] -> [9]
[2, 7, 4, 3, 5, 0, 6, 1] -> [7]
[0, 6, 5] -> [6]
[2, 7, 0, 8, 3] -> [8]
[0, 1] -> [1]
[8, 1, 9, 6, 3, 0, 2, 4... | [1, 0, 5] -> [5] | [1, 0, 5] | [5] |
c089 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 2 and 3 if element 2 > element 3, else swap elements 1 and 4". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[69, 0, 0, 42] -> [42, 0, 0, 69]
[3, 30, 6, 6] -> [3, 6, 30, 6]
[21, 6, 7, 14, 26, 26, 5, 8, 13, 67] -> [14, 6, 7, 21, 26, 26, 5, 8, 13, 67]
[25, 19, 1, 31, 12, 13, 57, 7, 32] -> [25, 1, ... | [25, 6, 39, 18, 5, 9, 8, 0, 1] -> [18, 6, 39, 25, 5, 9, 8, 0, 1] | [25, 6, 39, 18, 5, 9, 8, 0, 1] | [18, 6, 39, 25, 5, 9, 8, 0, 1] |
c229 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only first N elements of the reversed input, N = element 1". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 96] -> [96]
[4, 43, 0, 31, 71, 39, 97, 6, 8] -> [8, 6, 97, 39]
[2, 90, 2, 60, 9, 94] -> [94, 9]
[5, 53, 66, 42, 56, 20, 15, 92, 9] -> [9, 92, 15, 20, 56]
[1, 6, 55, 0, 32] -> [32]
[9,... | [1, 92, 0, 6, 19, 4, 48] -> [48] | [1, 92, 0, 6, 19, 4, 48] | [48] |
c050 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "prepend element 1". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 7, 0, 5] -> [4, 4, 7, 0, 5]
[1] -> [1, 1]
[5, 2] -> [5, 5, 2]
[1, 4, 0, 8, 6, 7, 3, 2] -> [1, 1, 4, 0, 8, 6, 7, 3, 2]
[5] -> [5, 5]
[6, 9, 2, 1, 3] -> [6, 6, 9, 2, 1, 3]
[4, 3, 6, 2, ... | [7, 8, 9, 0, 3] -> [7, 7, 8, 9, 0, 3] | [7, 8, 9, 0, 3] | [7, 7, 8, 9, 0, 3] |
c055 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 3 and elements 2 and 4". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 7, 9, 8, 6] -> [9, 8, 5, 7, 6]
[4, 3, 2, 8, 9, 6, 7, 1, 0] -> [2, 8, 4, 3, 9, 6, 7, 1, 0]
[3, 8, 0, 7] -> [0, 7, 3, 8]
[3, 8, 7, 0, 9, 6, 5, 2, 4] -> [7, 0, 3, 8, 9, 6, 5, 2, 4]
[0, 3... | [4, 7, 2, 1, 0, 6, 5, 8] -> [2, 1, 4, 7, 0, 6, 5, 8] | [4, 7, 2, 1, 0, 6, 5, 8] | [2, 1, 4, 7, 0, 6, 5, 8] |
c219 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only every other element, starting from the end of the list". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 1, 25, 6, 27, 27, 61, 20, 33] -> [3, 25, 27, 61, 33]
[5, 50, 75, 58, 64, 30, 26] -> [5, 75, 64, 26]
[5, 1, 18, 89, 17, 35, 58] -> [5, 18, 17, 58]
[48, 6, 25, 14, 3, 55, 47, 38, 1] -> ... | [81, 3, 35, 88, 5, 4, 27, 0, 84, 22] -> [3, 88, 4, 0, 22] | [81, 3, 35, 88, 5, 4, 27, 0, 84, 22] | [3, 88, 4, 0, 22] |
c003 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 7". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 0, 6, 2, 3, 8, 5, 9, 4] -> [5]
[5, 6, 2, 3, 9, 7, 1, 0] -> [1]
[9, 8, 7, 4, 0, 3, 6, 5, 2, 1] -> [6]
[1, 2, 0, 8, 5, 9, 3, 6, 7, 4] -> [3]
[1, 0, 9, 5, 4, 2, 8] -> [8]
[4, 5, 8, 3, 1,... | [8, 9, 2, 4, 0, 6, 5, 3] -> [5] | [8, 9, 2, 4, 0, 6, 5, 3] | [5] |
c042 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [5, 2]". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 7, 8] -> [5, 2]
[1, 8, 7, 7, 8] -> [5, 2]
[4, 0, 1, 4, 0, 6, 0, 9, 6, 6] -> [5, 2]
[3, 7, 0, 7, 7, 0] -> [5, 2]
[0, 8, 4, 8] -> [5, 2]
[6, 3, 7, 7, 4, 6] -> [5, 2]
[3, 4, 4, 1, 1, 3, ... | [6] -> [5, 2] | [6] | [5, 2] |
c168 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count from 1 to 10, skipping the input’s length". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[20, 9, 16, 92, 82, 3] -> [1, 2, 3, 4, 5, 7, 8, 9, 10]
[77, 76, 34, 12, 26, 20, 79] -> [1, 2, 3, 4, 5, 6, 8, 9, 10]
[6, 74, 2, 9, 5, 67] -> [1, 2, 3, 4, 5, 7, 8, 9, 10]
[95] -> [2, 3, 4, ... | [0, 57, 9, 28, 7, 5, 14, 77, 10, 61] -> [1, 2, 3, 4, 5, 6, 7, 8, 9] | [0, 57, 9, 28, 7, 5, 14, 77, 10, 61] | [1, 2, 3, 4, 5, 6, 7, 8, 9] |
c246 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of unique elements". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[34, 44, 0, 2, 3, 5, 8, 98, 9, 73] -> [10]
[4, 66, 92, 99, 23, 7, 19, 5, 56, 91] -> [10]
[31, 3, 40, 34, 9, 0, 67, 1] -> [8]
[21, 30, 8, 79, 51, 0, 84, 49, 15] -> [9]
[53, 39, 61, 7, 97, ... | [4, 88, 70, 86, 3, 70, 48] -> [6] | [4, 88, 70, 86, 3, 70, 48] | [6] |
c015 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements M + 2 through N + 2, M = element 1, N = element 2". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 5, 1, 6, 3, 1, 6, 0] -> [1, 6, 3, 1, 6]
[3, 4, 5, 7, 6, 0, 8, 9, 2, 1] -> [6, 0]
[2, 4, 0, 3, 7, 9, 6, 1] -> [3, 7, 9]
[2, 7, 9, 1, 0, 8, 3, 4, 5, 6] -> [1, 0, 8, 3, 4, 5]
[1, 4, 9, 3... | [3, 5, 0, 4, 4, 2, 1, 8, 9, 6] -> [4, 2, 1] | [3, 5, 0, 4, 4, 2, 1, 8, 9, 6] | [4, 2, 1] |
c196 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate [17, 38, 82], input, and [1, 55, 27]". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[22] -> [17, 38, 82, 22, 1, 55, 27]
[2, 0, 73, 50] -> [17, 38, 82, 2, 0, 73, 50, 1, 55, 27]
[12, 94, 98] -> [17, 38, 82, 12, 94, 98, 1, 55, 27]
[36, 1, 78, 8, 0] -> [17, 38, 82, 36, 1, 78... | [97] -> [17, 38, 82, 97, 1, 55, 27] | [97] | [17, 38, 82, 97, 1, 55, 27] |
c124 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element M, M = element N, N = element 1". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 0, 0] -> [1]
[8, 24, 5, 24, 0, 82, 5, 4, 2] -> [24]
[1, 1, 1, 1, 1, 1, 1, 1] -> [1]
[2, 8, 2, 65, 7, 7, 9, 11, 2] -> [11]
[7, 2, 7, 7, 3, 2, 3, 3, 63, 2] -> [7]
[2, 5, 4, 55, 81, 0] -... | [4, 9, 6, 7, 1, 0, 36, 4, 5] -> [36] | [4, 9, 6, 7, 1, 0, 36, 4, 5] | [36] |
c158 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with 1 if element N equals N, else 0". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 5, 3, 5, 8, 3, 7] -> [0, 0, 1, 0, 0, 0, 1]
[1, 3, 29, 9, 40, 4, 72, 0, 26, 5] -> [1, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7] -> [0, 0, 0, 0, 0, 0, 1, 0, 0, 0]
[8, 0,... | [3, 3, 3, 3, 3, 3] -> [0, 0, 1, 0, 0, 0] | [3, 3, 3, 3, 3, 3] | [0, 0, 1, 0, 0, 0] |
c021 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "insert an 8 as element 2". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 2, 6, 5] -> [9, 8, 2, 6, 5]
[4, 1] -> [4, 8, 1]
[2, 3] -> [2, 8, 3]
[5, 0, 1, 3, 8, 2, 4, 9, 6, 7] -> [5, 8, 0, 1, 3, 8, 2, 4, 9, 6, 7]
[6, 0, 8, 4, 9, 1, 3] -> [6, 8, 0, 8, 4, 9, 1, ... | [9, 6, 4, 3, 5, 1, 0] -> [9, 8, 6, 4, 3, 5, 1, 0] | [9, 6, 4, 3, 5, 1, 0] | [9, 8, 6, 4, 3, 5, 1, 0] |
c185 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace the sublist between the first and last elements with its sum". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[33, 7, 8, 24, 29, 21, 1, 5] -> [33, 90, 5]
[8, 81, 7, 1, 3, 0] -> [8, 92, 0]
[6, 22, 1, 7, 20, 14, 14, 14] -> [6, 78, 14]
[60, 11, 63, 4, 11, 1, 7] -> [60, 90, 7]
[96, 4, 0, 1, 63, 17] -... | [84, 70, 9, 0, 1, 32] -> [84, 80, 32] | [84, 70, 9, 0, 1, 32] | [84, 80, 32] |
c020 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace the first element with the last element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 1, 7, 8, 9, 4, 0, 3, 2] -> [2, 1, 7, 8, 9, 4, 0, 3, 2]
[0, 8, 5, 2, 7, 1, 4, 6, 9, 3] -> [3, 8, 5, 2, 7, 1, 4, 6, 9, 3]
[7, 1, 0, 6, 3] -> [3, 1, 0, 6, 3]
[5, 8, 6, 1, 0, 9, 7] -> [7,... | [4, 6, 8] -> [8, 6, 8] | [4, 6, 8] | [8, 6, 8] |
c079 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "sum of elements". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 6, 0] -> [9]
[8, 1] -> [9]
[0, 8] -> [8]
[0, 1, 3] -> [4]
[5, 2] -> [7]
[1, 7] -> [8]
[2, 4, 3] -> [9]
[2, 0] -> [2]
Questions:
[2, 5, 1] -> ?
Answer:
| [2, 5, 1] -> [8] | [2, 5, 1] | [8] |
c088 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 4 if element 2 = element 3, else swap elements 2 and 3". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 9, 9, 4, 67, 67, 2] -> [4, 9, 9, 7, 67, 67, 2]
[6, 6, 38, 6, 12, 2, 2, 21, 13, 6] -> [6, 38, 6, 6, 12, 2, 2, 21, 13, 6]
[1, 6, 4, 1, 26, 48, 0] -> [1, 4, 6, 1, 26, 48, 0]
[67, 87, 9, ... | [38, 0, 6, 38, 36, 36, 6, 6, 38] -> [38, 6, 0, 38, 36, 36, 6, 6, 38] | [38, 0, 6, 38, 36, 36, 6, 6, 38] | [38, 6, 0, 38, 36, 36, 6, 6, 38] |
c078 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "maximum element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 7, 1, 2, 0, 3, 9, 4] -> [9]
[2, 4] -> [4]
[1, 9, 5, 7, 4, 6, 2, 3] -> [9]
[2, 7, 4, 3, 5, 0, 6, 1] -> [7]
[0, 6, 5] -> [6]
[2, 7, 0, 8, 3] -> [8]
[0, 1] -> [1]
[8, 1, 9, 6, 3, 0, 2, 4... | [2, 7, 6, 5, 4, 3, 1] -> [7] | [2, 7, 6, 5, 4, 3, 1] | [7] |
c238 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements that appear exactly once". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 7, 7, 7, 7, 8, 7, 8, 8] -> []
[5, 8, 8, 6, 8, 8] -> [5, 6]
[8, 12, 12, 1, 5, 3] -> [8, 1, 5, 3]
[7, 6, 1, 1, 1, 3, 22] -> [7, 6, 3, 22]
[4, 7, 10, 4, 7, 7, 1] -> [10, 1]
[9, 47, 7, 5,... | [8, 5, 8, 9, 8, 8] -> [5, 9] | [8, 5, 8, 9, 8, 8] | [5, 9] |
c068 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate input and [7, 3, 8, 4, 3]". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 9] -> [0, 9, 7, 3, 8, 4, 3]
[4, 6, 9, 0, 5] -> [4, 6, 9, 0, 5, 7, 3, 8, 4, 3]
[9, 5, 7, 0, 1, 6, 2, 4, 8, 3] -> [9, 5, 7, 0, 1, 6, 2, 4, 8, 3, 7, 3, 8, 4, 3]
[2, 7] -> [2, 7, 7, 3, 8,... | [9, 7, 0, 2, 4, 6] -> [9, 7, 0, 2, 4, 6, 7, 3, 8, 4, 3] | [9, 7, 0, 2, 4, 6] | [9, 7, 0, 2, 4, 6, 7, 3, 8, 4, 3] |
c090 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [18, 42, 77, 20, 36]". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 6, 9, 49, 90, 34, 24, 51, 35] -> [18, 42, 77, 20, 36]
[24, 55] -> [18, 42, 77, 20, 36]
[89, 4, 30, 8, 82, 63, 7, 1] -> [18, 42, 77, 20, 36]
[37, 6, 37, 37, 10, 10, 10, 37] -> [18, 42,... | [75, 4, 6, 14] -> [18, 42, 77, 20, 36] | [75, 4, 6, 14] | [18, 42, 77, 20, 36] |
c024 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "insert as element 2: 8 if element 1 > 5 else 5". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 3, 2, 4, 6, 7] -> [9, 5, 3, 2, 4, 6, 7]
[6, 8, 2, 0, 1] -> [6, 5, 8, 2, 0, 1]
[0, 1, 8, 4, 2, 6, 9, 7, 5] -> [0, 8, 1, 8, 4, 2, 6, 9, 7, 5]
[0, 1, 5, 3, 2, 6, 9] -> [0, 8, 1, 5, 3, 2,... | [8, 1, 9] -> [8, 5, 1, 9] | [8, 1, 9] | [8, 5, 1, 9] |
c205 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "product of elements divisible by 4". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[81, 53, 4, 4] -> [16]
[4, 84, 0, 35, 99, 6, 57, 94] -> [0]
[5, 9, 83, 51, 4, 8, 53, 3] -> [32]
[4, 9, 4, 30, 9] -> [16]
[2, 9, 5, 8, 5, 83, 66, 4, 65] -> [32]
[6, 4, 55, 2, 4, 97, 55, 1,... | [57, 9, 9, 21, 8, 9, 8] -> [64] | [57, 9, 9, 21, 8, 9, 8] | [64] |
c137 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all occurrences of 3". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 3, 3] -> []
[4, 24, 84, 7, 4, 24, 1, 3, 3, 3] -> [4, 24, 84, 7, 4, 24, 1]
[2, 10, 1, 3, 7, 6, 3] -> [2, 10, 1, 7, 6]
[26, 3, 55, 87, 73] -> [26, 55, 87, 73]
[5, 0, 7, 39, 50, 76, 6, 1... | [28, 3] -> [28] | [28, 3] | [28] |
c071 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "add 2 to every element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 6] -> [2, 8]
[0, 4, 6, 2, 3, 1] -> [2, 6, 8, 4, 5, 3]
[2] -> [4]
[3, 6, 5, 0, 1, 2] -> [5, 8, 7, 2, 3, 4]
[1, 6] -> [3, 8]
[1, 2] -> [3, 4]
[1] -> [3]
[5, 3, 0, 1] -> [7, 5, 2, 3]
Que... | [4, 2, 6] -> [6, 4, 8] | [4, 2, 6] | [6, 4, 8] |
c209 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements in ascending order; insert sum of smallest and largest elements at index 3". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[94, 76, 5] -> [5, 76, 99, 94]
[53, 17, 64] -> [17, 53, 81, 64]
[77, 21, 20, 2] -> [2, 20, 79, 21, 77]
[2, 39, 42] -> [2, 39, 44, 42]
[7, 76, 86] -> [7, 76, 93, 86]
[8, 1, 35, 56, 32, 63]... | [1, 97, 2, 90, 47, 50] -> [1, 2, 98, 47, 50, 90, 97] | [1, 97, 2, 90, 47, 50] | [1, 2, 98, 47, 50, 90, 97] |
c046 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "prepend 7". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 0, 4, 1, 6, 8, 9] -> [7, 5, 0, 4, 1, 6, 8, 9]
[2, 6, 9, 8] -> [7, 2, 6, 9, 8]
[0, 6, 2, 4, 8, 1, 9] -> [7, 0, 6, 2, 4, 8, 1, 9]
[1, 8, 2, 4, 9, 0, 3] -> [7, 1, 8, 2, 4, 9, 0, 3]
[1, 9... | [6, 1, 3, 9, 0, 4] -> [7, 6, 1, 3, 9, 0, 4] | [6, 1, 3, 9, 0, 4] | [7, 6, 1, 3, 9, 0, 4] |
c153 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "each unique element followed by its number of occurrences, in order of appearance". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 81, 81, 1, 1, 17, 81, 17] -> [1, 3, 81, 3, 17, 2]
[71, 9, 9, 71, 71, 9, 42, 9, 42] -> [71, 3, 9, 4, 42, 2]
[43, 43, 91, 91, 91] -> [43, 2, 91, 3]
[6, 54, 6, 67, 67, 54, 83, 83, 6, 67]... | [69, 66, 6, 3, 6, 3, 69, 66] -> [69, 2, 66, 2, 6, 2, 3, 2] | [69, 66, 6, 3, 6, 3, 69, 66] | [69, 2, 66, 2, 6, 2, 3, 2] |
c043 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [8, 2, 7, 0, 3]". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 6, 6, 6, 6, 3] -> [8, 2, 7, 0, 3]
[6] -> [8, 2, 7, 0, 3]
[5, 5, 5, 5, 5, 5, 5, 5, 5, 5] -> [8, 2, 7, 0, 3]
[5, 5, 5, 5, 5] -> [8, 2, 7, 0, 3]
[1, 1, 1, 1, 1, 1] -> [8, 2, 7, 0, 3]
[5,... | [5, 6, 6, 6] -> [8, 2, 7, 0, 3] | [5, 6, 6, 6] | [8, 2, 7, 0, 3] |
c045 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the input". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 4, 5, 0, 3, 6, 9, 1] -> [8, 4, 5, 0, 3, 6, 9, 1]
[7, 4, 2, 3] -> [7, 4, 2, 3]
[0, 9, 5] -> [0, 9, 5]
[5, 3, 7, 6, 0, 9, 2, 1, 8] -> [5, 3, 7, 6, 0, 9, 2, 1, 8]
[0, 3, 4, 6, 1, 8, 9, 7... | [5, 8, 0, 4, 7, 6, 1, 2, 3, 9] -> [5, 8, 0, 4, 7, 6, 1, 2, 3, 9] | [5, 8, 0, 4, 7, 6, 1, 2, 3, 9] | [5, 8, 0, 4, 7, 6, 1, 2, 3, 9] |
c146 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "absolute difference of each consecutive pair, in order of appearance". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[93, 5] -> [88]
[1, 96, 12, 76, 6, 51, 38, 5, 25, 88] -> [95, 84, 64, 70, 45, 13, 33, 20, 63]
[1, 17, 3, 96, 5] -> [16, 14, 93, 91]
[70, 92, 34] -> [22, 58]
[89, 53, 20, 48, 2] -> [36, 33... | [36, 82, 49, 9] -> [46, 33, 40] | [36, 82, 49, 9] | [46, 33, 40] |
c185 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace the sublist between the first and last elements with its sum". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[33, 7, 8, 24, 29, 21, 1, 5] -> [33, 90, 5]
[8, 81, 7, 1, 3, 0] -> [8, 92, 0]
[6, 22, 1, 7, 20, 14, 14, 14] -> [6, 78, 14]
[60, 11, 63, 4, 11, 1, 7] -> [60, 90, 7]
[96, 4, 0, 1, 63, 17] -... | [30, 11, 41, 0, 9, 6] -> [30, 61, 6] | [30, 11, 41, 0, 9, 6] | [30, 61, 6] |
c210 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements with last element inserted at index M, where M is element 1". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 9, 83, 7, 52] -> [2, 52, 9, 83, 7, 52]
[1, 22] -> [22, 1, 22]
[4, 8, 73, 99, 6, 1, 90, 1, 45, 83] -> [4, 8, 73, 83, 99, 6, 1, 90, 45, 83]
[5, 8, 33, 0, 7, 80] -> [5, 8, 33, 0, 80, 7, ... | [6, 9, 7, 0, 0, 4, 1, 16, 5, 3] -> [6, 9, 7, 0, 4, 3, 1, 16, 5, 3] | [6, 9, 7, 0, 0, 4, 1, 16, 5, 3] | [6, 9, 7, 0, 4, 3, 1, 16, 5, 3] |
c163 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with 2 * M - 10". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 8, 5, 35] -> [0, 6, 0, 60]
[21, 6, 6, 21, 21] -> [32, 2, 2, 32, 32]
[48, 48, 48, 47, 48] -> [86, 86, 86, 84, 86]
[8, 8, 8, 8, 8] -> [6, 6, 6, 6, 6]
[21, 7, 5, 33] -> [32, 4, 0, 56]
[7... | [7, 8, 5, 42] -> [4, 6, 0, 74] | [7, 8, 5, 42] | [4, 6, 0, 74] |
c238 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements that appear exactly once". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 7, 7, 7, 7, 8, 7, 8, 8] -> []
[5, 8, 8, 6, 8, 8] -> [5, 6]
[8, 12, 12, 1, 5, 3] -> [8, 1, 5, 3]
[7, 6, 1, 1, 1, 3, 22] -> [7, 6, 3, 22]
[4, 7, 10, 4, 7, 7, 1] -> [10, 1]
[9, 47, 7, 5,... | [41, 4, 4, 2, 79, 13, 7, 13, 79] -> [41, 2, 7] | [41, 4, 4, 2, 79, 13, 7, 13, 79] | [41, 2, 7] |
c005 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element N + 1, N = element 1". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 4, 6, 4] -> [4]
[3, 7, 9, 7, 1, 1, 8, 9] -> [7]
[2, 5, 3, 1, 0, 4, 7, 8] -> [3]
[7, 6, 8, 3, 1, 9, 0, 2, 4] -> [2]
[4, 2, 6, 3, 1, 0] -> [1]
[2, 6, 6] -> [6]
[2, 8, 6, 3, 1] -> [6]
[4... | [4, 9, 2, 3, 6, 0] -> [6] | [4, 9, 2, 3, 6, 0] | [6] |
c163 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with 2 * M - 10". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 8, 5, 35] -> [0, 6, 0, 60]
[21, 6, 6, 21, 21] -> [32, 2, 2, 32, 32]
[48, 48, 48, 47, 48] -> [86, 86, 86, 84, 86]
[8, 8, 8, 8, 8] -> [6, 6, 6, 6, 6]
[21, 7, 5, 33] -> [32, 4, 0, 56]
[7... | [24, 20, 45, 24] -> [38, 30, 80, 38] | [24, 20, 45, 24] | [38, 30, 80, 38] |
c007 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but the first 2 elements". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 6, 4, 5, 7] -> [8, 6]
[2, 4, 7, 0, 8, 3, 5, 6, 1, 9] -> [2, 4]
[3, 4, 2, 1] -> [3, 4]
[3] -> [3]
[3, 1, 0, 5, 7, 6, 2, 8] -> [3, 1]
[0, 1, 4, 7, 5, 6, 3, 8, 2, 9] -> [0, 1]
[5] -> [5]... | [7, 8, 2, 9] -> [7, 8] | [7, 8, 2, 9] | [7, 8] |
c007 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but the first 2 elements". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 6, 4, 5, 7] -> [8, 6]
[2, 4, 7, 0, 8, 3, 5, 6, 1, 9] -> [2, 4]
[3, 4, 2, 1] -> [3, 4]
[3] -> [3]
[3, 1, 0, 5, 7, 6, 2, 8] -> [3, 1]
[0, 1, 4, 7, 5, 6, 3, 8, 2, 9] -> [0, 1]
[5] -> [5]... | [6, 5, 1, 7, 3, 0, 4, 2, 9] -> [6, 5] | [6, 5, 1, 7, 3, 0, 4, 2, 9] | [6, 5] |
c008 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the first 6 elements". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 5, 9, 3, 1, 6, 0, 7, 4, 2] -> [8, 5, 9, 3, 1, 6]
[0, 4, 6] -> [0, 4, 6]
[4, 8, 2, 3, 6] -> [4, 8, 2, 3, 6]
[1, 0, 7, 3, 4, 2, 8, 9, 6, 5] -> [1, 0, 7, 3, 4, 2]
[1] -> [1]
[6, 4, 2, 1,... | [5, 7, 2, 3, 8, 6, 0, 9, 1, 4] -> [5, 7, 2, 3, 8, 6] | [5, 7, 2, 3, 8, 6, 0, 9, 1, 4] | [5, 7, 2, 3, 8, 6] |
c143 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace every occurrence of the largest element with the smallest element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[31, 31, 0] -> [0, 0, 0]
[35, 7, 63, 78, 78, 27, 46] -> [35, 7, 63, 7, 7, 27, 46]
[6, 6] -> [6, 6]
[57, 60, 42, 97, 4, 7, 97, 5, 8, 49] -> [57, 60, 42, 4, 4, 7, 4, 5, 8, 49]
[83, 83, 45] ... | [0, 70, 6, 13, 1, 74, 73, 75, 5, 54] -> [0, 70, 6, 13, 1, 74, 73, 0, 5, 54] | [0, 70, 6, 13, 1, 74, 73, 75, 5, 54] | [0, 70, 6, 13, 1, 74, 73, 0, 5, 54] |
c038 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "append 9". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 1, 5] -> [4, 1, 5, 9]
[1, 4, 8, 2, 3, 5, 9, 0, 7, 6] -> [1, 4, 8, 2, 3, 5, 9, 0, 7, 6, 9]
[2, 6] -> [2, 6, 9]
[4, 6, 1, 0, 5, 8] -> [4, 6, 1, 0, 5, 8, 9]
[2, 5, 3, 0, 6, 8, 1, 9] -> [... | [0, 5, 6, 3, 2, 1, 4, 7, 8] -> [0, 5, 6, 3, 2, 1, 4, 7, 8, 9] | [0, 5, 6, 3, 2, 1, 4, 7, 8] | [0, 5, 6, 3, 2, 1, 4, 7, 8, 9] |
c207 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element-wise sum of the input and the reversed input". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[56, 9, 72, 7] -> [63, 81, 81, 63]
[2, 5, 6, 59, 93, 1] -> [3, 98, 65, 65, 98, 3]
[21, 39, 5, 9, 40, 4] -> [25, 79, 14, 14, 79, 25]
[7, 37, 64] -> [71, 74, 71]
[8, 4, 45] -> [53, 8, 53]
[... | [65, 84, 9, 3] -> [68, 93, 93, 68] | [65, 84, 9, 3] | [68, 93, 93, 68] |
c247 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements before the first 0". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[30, 6, 0, 8, 0, 88, 3] -> [30, 6]
[62, 0, 3, 0, 5, 56, 49] -> [62]
[66, 0, 66, 66, 1] -> [66]
[39, 39, 0, 39, 0, 39, 39, 39, 39] -> [39, 39]
[6, 1, 7, 0, 6, 2, 0, 6, 69] -> [6, 1, 7]
[84... | [9, 0, 9, 9, 0, 9, 5] -> [9] | [9, 0, 9, 9, 0, 9, 5] | [9] |
c101 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [11,19, 24, 33, 42, 5, 82, 0, 64, 9]". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[47, 59, 59, 23, 4, 78, 23] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[43, 7, 78, 7, 43, 4, 4] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[83] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[58, 5... | [21, 21] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] | [21, 21] | [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] |
c051 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "prepend element 1 five times". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 8, 3, 5, 4] -> [0, 0, 0, 0, 0, 0, 8, 3, 5, 4]
[4, 0, 6, 5, 3, 8, 9, 1, 7, 2] -> [4, 4, 4, 4, 4, 4, 0, 6, 5, 3, 8, 9, 1, 7, 2]
[9, 4] -> [9, 9, 9, 9, 9, 9, 4]
[0] -> [0, 0, 0, 0, 0, 0]... | [1, 9, 0, 3, 4, 7, 8, 6] -> [1, 1, 1, 1, 1, 1, 9, 0, 3, 4, 7, 8, 6] | [1, 9, 0, 3, 4, 7, 8, 6] | [1, 1, 1, 1, 1, 1, 9, 0, 3, 4, 7, 8, 6] |
c218 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements 2 and following equal to element 1". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[35, 35, 1, 35, 1, 35, 35, 1] -> [35, 35, 35, 35]
[27, 27, 13, 13, 27, 27, 27, 13, 27, 13] -> [27, 27, 27, 27, 27]
[42, 0, 0, 42, 0, 42, 0, 42, 42, 0] -> [42, 42, 42, 42]
[41, 41, 41, 41,... | [29, 29, 29, 29, 29, 29, 29, 29, 29, 29] -> [29, 29, 29, 29, 29, 29, 29, 29, 29] | [29, 29, 29, 29, 29, 29, 29, 29, 29, 29] | [29, 29, 29, 29, 29, 29, 29, 29, 29] |
c077 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "input length". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 4, 8, 5, 7] -> [5]
[9, 4, 5, 2, 0, 1, 8, 6, 3] -> [9]
[6, 4, 3] -> [3]
[6, 2, 1, 4, 3, 0, 5, 7] -> [8]
[1, 6, 4, 8, 7, 0, 5] -> [7]
[9, 8, 0, 7] -> [4]
[8, 4, 5, 3, 7, 2, 9, 0, 6] -> ... | [3, 2, 8, 0] -> [4] | [3, 2, 8, 0] | [4] |
c136 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the first occurrence of the largest element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[64, 3, 64, 64, 1, 55] -> [3, 64, 64, 1, 55]
[5, 24, 11, 26, 73, 41, 60, 73] -> [5, 24, 11, 26, 41, 60, 73]
[82, 5, 82, 82, 81, 12, 31, 5, 31] -> [5, 82, 82, 81, 12, 31, 5, 31]
[59, 4, 5,... | [2, 4, 59, 53, 77, 5, 77] -> [2, 4, 59, 53, 5, 77] | [2, 4, 59, 53, 77, 5, 77] | [2, 4, 59, 53, 5, 77] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.