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 |
|---|---|---|---|---|---|
c195 | 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 1, followed by 23, 68, 42, 99, 71, followed by last element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[51, 77, 5, 1, 79, 26, 2, 98] -> [51, 23, 68, 42, 99, 71, 98]
[9, 46, 74, 56, 4, 83, 1, 10, 8, 7] -> [9, 23, 68, 42, 99, 71, 7]
[14, 69, 33, 96, 22, 1, 40, 21, 54] -> [14, 23, 68, 42, 99,... | [3, 6, 8] -> [3, 23, 68, 42, 99, 71, 8] | [3, 6, 8] | [3, 23, 68, 42, 99, 71, 8] |
c076 | 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 maximum, last element, length, first element, and minimum, in that order". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[31, 21, 57] -> [57, 57, 3, 31, 21]
[61] -> [61, 61, 1, 61, 61]
[90, 60, 70, 14, 44, 86, 43, 80, 56, 2] -> [90, 2, 10, 90, 2]
[65] -> [65, 65, 1, 65, 65]
[8, 63, 25, 2, 35, 41, 61, 79, 95... | [0, 74, 19, 18, 96, 3, 27, 40, 6, 75] -> [96, 75, 10, 0, 0] | [0, 74, 19, 18, 96, 3, 27, 40, 6, 75] | [96, 75, 10, 0, 0] |
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,... | [85, 15, 13, 27, 15, 15, 7, 27, 85, 1] -> [18, 42, 77, 20, 36] | [85, 15, 13, 27, 15, 15, 7, 27, 85, 1] | [18, 42, 77, 20, 36] |
c070 | 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 with itself". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 3, 6, 7] -> [8, 3, 6, 7, 8, 3, 6, 7]
[2, 6, 4, 8, 7] -> [2, 6, 4, 8, 7, 2, 6, 4, 8, 7]
[0, 1, 4, 7, 8] -> [0, 1, 4, 7, 8, 0, 1, 4, 7, 8]
[2, 4, 9, 3, 5, 1] -> [2, 4, 9, 3, 5, 1, 2, 4,... | [4] -> [4, 4] | [4] | [4, 4] |
c195 | 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 1, followed by 23, 68, 42, 99, 71, followed by last element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[51, 77, 5, 1, 79, 26, 2, 98] -> [51, 23, 68, 42, 99, 71, 98]
[9, 46, 74, 56, 4, 83, 1, 10, 8, 7] -> [9, 23, 68, 42, 99, 71, 7]
[14, 69, 33, 96, 22, 1, 40, 21, 54] -> [14, 23, 68, 42, 99,... | [46, 4, 5, 1, 94] -> [46, 23, 68, 42, 99, 71, 94] | [46, 4, 5, 1, 94] | [46, 23, 68, 42, 99, 71, 94] |
c142 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "every digit in order of appearance". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[36] -> [3, 6]
[44, 94] -> [4, 4, 9, 4]
[8, 79, 9, 85] -> [0, 8, 7, 9, 0, 9, 8, 5]
[6, 37, 2, 25] -> [0, 6, 3, 7, 0, 2, 2, 5]
[98, 7, 22, 58, 73, 43, 78] -> [9, 8, 0, 7, 2, 2, 5, 8, 7, 3,... | [56, 24, 15] -> [5, 6, 2, 4, 1, 5] | [56, 24, 15] | [5, 6, 2, 4, 1, 5] |
c035 | 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:
[0, 5, 1, 0] -> [0, 1, 5, 0]
[7, 5, 7, 7, 4, 2, 8] -> [7, 7, 5, 7, 4, 2, 8]
[0, 7, 5, 0, 8, 5, 0, 1, 9, 7] -> [0, 5, 7, 0, 8, 5, 0, 1, 9, 7]
[4, 9, 9, 9, 4, 4, 6, 9] -> [9, 9, 9, 4, 4, 4,... | [1, 5, 5, 5] -> [5, 5, 5, 1] | [1, 5, 5, 5] | [5, 5, 5, 1] |
c002 | 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 3". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 0] -> []
[3, 2, 9, 7] -> [9]
[8, 9, 2, 6, 5, 0] -> [2]
[9, 1] -> []
[0, 8, 4, 3, 2, 5, 9, 7, 6] -> [4]
[6] -> []
[8, 4, 5, 6, 7, 3, 2, 9] -> [5]
[6, 4, 8, 1, 7, 0, 2] -> [8]
Questions... | [6, 3, 4, 1, 7, 2, 9, 8, 0] -> [4] | [6, 3, 4, 1, 7, 2, 9, 8, 0] | [4] |
c164 | 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 M / 4 + 5". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 13, 9, 2, 6, 63, 0, 3, 15, 7] -> [7, 8, 7, 5, 6, 20, 5, 5, 8, 6]
[27] -> [11]
[0, 16, 98, 4, 46, 52, 40, 2] -> [5, 9, 29, 6, 16, 18, 15, 5]
[12, 28, 22, 1, 5, 4] -> [8, 12, 10, 5, 6, ... | [53, 57, 17, 67, 99, 95, 5, 4, 3] -> [18, 19, 9, 21, 29, 28, 6, 6, 5] | [53, 57, 17, 67, 99, 95, 5, 4, 3] | [18, 19, 9, 21, 29, 28, 6, 6, 5] |
c092 | 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 [92, 63, 34, 18, 55] with input". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[21, 40, 9, 52, 7, 80] -> [92, 63, 34, 18, 55, 21, 40, 9, 52, 7, 80]
[12, 27, 65, 4, 31, 8] -> [92, 63, 34, 18, 55, 12, 27, 65, 4, 31, 8]
[23, 33, 76, 58, 90, 8] -> [92, 63, 34, 18, 55, 2... | [5, 60] -> [92, 63, 34, 18, 55, 5, 60] | [5, 60] | [92, 63, 34, 18, 55, 5, 60] |
c121 | 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 last element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[99, 62, 65, 0, 95] -> [95]
[6, 8, 39] -> [39]
[38, 2] -> [2]
[56, 65, 74] -> [74]
[19, 32, 3, 78, 41, 51, 8, 80] -> [80]
[3, 53, 92, 4, 9, 19, 38, 61, 27] -> [27]
[36, 22, 3, 55, 23] -> ... | [7, 11, 61, 9, 44, 30, 6] -> [6] | [7, 11, 61, 9, 44, 30, 6] | [6] |
c188 | 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 it is divisible by 3, else 0". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[53, 24, 70, 15, 7, 23, 4] -> [0, 1, 0, 1, 0, 0, 0]
[89, 88, 2, 5, 0, 25, 3, 74, 9, 4] -> [0, 0, 0, 0, 1, 0, 1, 0, 1, 0]
[54, 12, 73] -> [1, 1, 0]
[71, 48, 3, 6] -> [0, 1, 1, 1]
[27, 8, 7... | [8, 65, 0, 4, 11, 5, 70, 77, 36] -> [0, 0, 1, 0, 0, 0, 0, 0, 1] | [8, 65, 0, 4, 11, 5, 70, 77, 36] | [0, 0, 1, 0, 0, 0, 0, 0, 1] |
c013 | 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 3 through 7". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 9, 0, 6, 5] -> [0, 6, 5]
[2, 6, 1, 3] -> [1, 3]
[4, 5, 7] -> [7]
[8, 3] -> []
[4, 2, 8, 0, 5, 9, 7, 1, 3] -> [8, 0, 5, 9, 7]
[2] -> []
[7, 9, 1, 6, 5, 2] -> [1, 6, 5, 2]
[9, 7] -> []
... | [8, 6, 9, 3, 1, 5, 2, 4, 0] -> [9, 3, 1, 5, 2] | [8, 6, 9, 3, 1, 5, 2, 4, 0] | [9, 3, 1, 5, 2] |
c234 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repetitions in order of first appearance". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[76, 42, 17, 76, 17] -> [76, 17]
[57, 77, 57, 77, 77, 77] -> [57, 77, 77, 77]
[0, 17, 17, 17, 70, 17] -> [17, 17, 17]
[62, 6, 48, 1, 67, 69, 0, 59, 15, 48] -> [48]
[81, 58, 58, 58, 58, 81... | [96, 96, 50, 50, 50, 50, 96, 96, 96] -> [96, 96, 96, 96, 50, 50, 50] | [96, 96, 50, 50, 50, 50, 96, 96, 96] | [96, 96, 96, 96, 50, 50, 50] |
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,... | [15, 2, 1, 2, 2, 15, 6, 15, 4, 2] -> [1, 6, 4] | [15, 2, 1, 2, 2, 15, 6, 15, 4, 2] | [1, 6, 4] |
c177 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "interleave 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:
[13, 94] -> [13, 94, 94, 13]
[77, 7, 11] -> [77, 11, 7, 7, 11, 77]
[8, 0, 65, 60] -> [8, 60, 0, 65, 65, 0, 60, 8]
[26, 1, 9, 12, 98] -> [26, 98, 1, 12, 9, 9, 12, 1, 98, 26]
[49, 40, 73, 4... | [3, 6, 4, 63] -> [3, 63, 6, 4, 4, 6, 63, 3] | [3, 6, 4, 63] | [3, 63, 6, 4, 4, 6, 63, 3] |
c202 | 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 indices of every even number". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[79, 74, 7, 82, 61, 9, 80, 22] -> [2, 4, 7, 8]
[11, 2, 24, 52, 6, 51, 4] -> [2, 3, 4, 5, 7]
[3, 99, 1, 28, 8, 2] -> [4, 5, 6]
[80, 23, 89, 36, 5, 4, 3, 18, 8] -> [1, 4, 6, 8, 9]
[18, 7, 5... | [90, 75, 87, 48] -> [1, 4] | [90, 75, 87, 48] | [1, 4] |
c047 | 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 [9, 6, 3, 8, 5] and input". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 2, 0, 6, 3, 1, 5, 7, 9] -> [9, 6, 3, 8, 5, 8, 2, 0, 6, 3, 1, 5, 7, 9]
[7, 1, 9, 2] -> [9, 6, 3, 8, 5, 7, 1, 9, 2]
[0, 5, 4] -> [9, 6, 3, 8, 5, 0, 5, 4]
[1] -> [9, 6, 3, 8, 5, 1]
[6, 1... | [1, 2, 3, 7] -> [9, 6, 3, 8, 5, 1, 2, 3, 7] | [1, 2, 3, 7] | [9, 6, 3, 8, 5, 1, 2, 3, 7] |
c208 | 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 the last N elements, where N is the last element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 33, 8, 97, 71, 74, 90, 3] -> [74, 90, 3]
[6, 37, 19, 13, 4, 9, 19, 2] -> [19, 2]
[6, 25, 2, 35, 8, 4, 0, 83, 63, 5] -> [4, 0, 83, 63, 5]
[43, 3, 4, 3, 6, 8, 60, 90, 7] -> [4, 3, 6, 8,... | [0, 8, 1, 9, 19, 7, 76, 13, 53, 2] -> [53, 2] | [0, 8, 1, 9, 19, 7, 76, 13, 53, 2] | [53, 2] |
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]
... | [2, 5, 9, 0, 8, 3] -> [3, 5, 9, 0, 8, 2] | [2, 5, 9, 0, 8, 3] | [3, 5, 9, 0, 8, 2] |
c029 | 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 two elements". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 5, 0, 4, 2, 6] -> [0, 4, 2, 6]
[8, 3] -> []
[2, 8, 1] -> [1]
[2, 1, 3, 8] -> [3, 8]
[5, 2, 6, 3, 9, 0, 8, 1] -> [6, 3, 9, 0, 8, 1]
[0, 9, 6, 5, 3, 8, 2, 1] -> [6, 5, 3, 8, 2, 1]
[5, 4... | [2, 6, 7, 9, 1, 3, 5, 4, 8] -> [7, 9, 1, 3, 5, 4, 8] | [2, 6, 7, 9, 1, 3, 5, 4, 8] | [7, 9, 1, 3, 5, 4, 8] |
c013 | 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 3 through 7". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 9, 0, 6, 5] -> [0, 6, 5]
[2, 6, 1, 3] -> [1, 3]
[4, 5, 7] -> [7]
[8, 3] -> []
[4, 2, 8, 0, 5, 9, 7, 1, 3] -> [8, 0, 5, 9, 7]
[2] -> []
[7, 9, 1, 6, 5, 2] -> [1, 6, 5, 2]
[9, 7] -> []
... | [7, 6, 3, 4, 0] -> [3, 4, 0] | [7, 6, 3, 4, 0] | [3, 4, 0] |
c177 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "interleave 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:
[13, 94] -> [13, 94, 94, 13]
[77, 7, 11] -> [77, 11, 7, 7, 11, 77]
[8, 0, 65, 60] -> [8, 60, 0, 65, 65, 0, 60, 8]
[26, 1, 9, 12, 98] -> [26, 98, 1, 12, 9, 9, 12, 1, 98, 26]
[49, 40, 73, 4... | [54, 9, 53, 3, 52, 35] -> [54, 35, 9, 52, 53, 3, 3, 53, 52, 9, 35, 54] | [54, 9, 53, 3, 52, 35] | [54, 35, 9, 52, 53, 3, 3, 53, 52, 9, 35, 54] |
c121 | 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 last element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[99, 62, 65, 0, 95] -> [95]
[6, 8, 39] -> [39]
[38, 2] -> [2]
[56, 65, 74] -> [74]
[19, 32, 3, 78, 41, 51, 8, 80] -> [80]
[3, 53, 92, 4, 9, 19, 38, 61, 27] -> [27]
[36, 22, 3, 55, 23] -> ... | [58, 19, 1, 55, 88, 3, 36, 26, 28] -> [28] | [58, 19, 1, 55, 88, 3, 36, 26, 28] | [28] |
c188 | 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 it is divisible by 3, else 0". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[53, 24, 70, 15, 7, 23, 4] -> [0, 1, 0, 1, 0, 0, 0]
[89, 88, 2, 5, 0, 25, 3, 74, 9, 4] -> [0, 0, 0, 0, 1, 0, 1, 0, 1, 0]
[54, 12, 73] -> [1, 1, 0]
[71, 48, 3, 6] -> [0, 1, 1, 1]
[27, 8, 7... | [6, 77, 72, 2, 7, 4, 35] -> [1, 0, 1, 0, 0, 0, 0] | [6, 77, 72, 2, 7, 4, 35] | [1, 0, 1, 0, 0, 0, 0] |
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, ... | [5, 8, 25, 77, 45, 9, 48, 96, 39, 80] -> [1, 2, 3, 4, 5, 6, 7, 8, 9] | [5, 8, 25, 77, 45, 9, 48, 96, 39, 80] | [1, 2, 3, 4, 5, 6, 7, 8, 9] |
c069 | 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 [9, 3, 4, 0], input, and [7, 2, 9, 1]". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 2, 7, 0, 5, 3] -> [9, 3, 4, 0, 4, 2, 7, 0, 5, 3, 7, 2, 9, 1]
[4, 0, 6, 5, 8] -> [9, 3, 4, 0, 4, 0, 6, 5, 8, 7, 2, 9, 1]
[9, 8] -> [9, 3, 4, 0, 9, 8, 7, 2, 9, 1]
[6, 5, 2, 0, 1, 7, 9] ... | [6, 8, 5, 7] -> [9, 3, 4, 0, 6, 8, 5, 7, 7, 2, 9, 1] | [6, 8, 5, 7] | [9, 3, 4, 0, 6, 8, 5, 7, 7, 2, 9, 1] |
c175 | 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 larger than any preceding element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 21, 43, 0, 26, 2, 66, 5, 32, 83] -> [9, 21, 43, 66, 83]
[1, 9, 60, 0, 60, 38] -> [1, 9, 60]
[6, 2, 4, 1, 7, 0, 67] -> [6, 7, 67]
[0, 7, 8, 1, 9, 7, 2, 0, 4, 53] -> [0, 7, 8, 9, 53]
[9... | [2, 3, 35, 73, 11, 9, 36, 41] -> [2, 3, 35, 73] | [2, 3, 35, 73, 11, 9, 36, 41] | [2, 3, 35, 73] |
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... | [3, 3, 7, 9, 6] -> [3, 7, 9, 6] | [3, 3, 7, 9, 6] | [3, 7, 9, 6] |
c161 | 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 M + the input length - M’s index". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[40, 5, 83, 3, 29, 8] -> [45, 9, 86, 5, 30, 8]
[40, 4, 83, 6, 5, 61, 9] -> [46, 9, 87, 9, 7, 62, 9]
[0, 87, 50, 11, 7, 72] -> [5, 91, 53, 13, 8, 72]
[4, 6, 46, 96, 1, 9] -> [9, 10, 49, 98... | [84, 7, 20, 60, 62, 9, 45, 14, 2] -> [92, 14, 26, 65, 66, 12, 47, 15, 2] | [84, 7, 20, 60, 62, 9, 45, 14, 2] | [92, 14, 26, 65, 66, 12, 47, 15, 2] |
c100 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reversed input". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[96, 69] -> [69, 96]
[3, 53, 99, 51, 50, 92, 6] -> [6, 92, 50, 51, 99, 53, 3]
[87, 91, 74] -> [74, 91, 87]
[90, 5, 0, 96] -> [96, 0, 5, 90]
[32, 0, 88, 5, 83, 2, 44, 16, 1, 97] -> [97, 1,... | [2, 55, 62] -> [62, 55, 2] | [2, 55, 62] | [62, 55, 2] |
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,... | [76, 61, 21, 86, 8] -> [76, 61, 21, 86, 61, 21, 86, 8] | [76, 61, 21, 86, 8] | [76, 61, 21, 86, 61, 21, 86, 8] |
c069 | 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 [9, 3, 4, 0], input, and [7, 2, 9, 1]". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 2, 7, 0, 5, 3] -> [9, 3, 4, 0, 4, 2, 7, 0, 5, 3, 7, 2, 9, 1]
[4, 0, 6, 5, 8] -> [9, 3, 4, 0, 4, 0, 6, 5, 8, 7, 2, 9, 1]
[9, 8] -> [9, 3, 4, 0, 9, 8, 7, 2, 9, 1]
[6, 5, 2, 0, 1, 7, 9] ... | [8] -> [9, 3, 4, 0, 8, 7, 2, 9, 1] | [8] | [9, 3, 4, 0, 8, 7, 2, 9, 1] |
c099 | 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 elements whose value < 50". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 70, 6, 1, 72, 5, 86, 58, 61] -> [70, 72, 86, 58, 61]
[9, 81, 8, 65, 28, 52, 54, 7] -> [81, 65, 52, 54]
[32, 68, 33, 7, 21] -> [68]
[6, 14, 3] -> []
[85, 76, 66, 73, 89, 74, 16, 64, 1,... | [9, 44, 4, 71, 67, 27, 3, 7, 12, 96] -> [71, 67, 96] | [9, 44, 4, 71, 67, 27, 3, 7, 12, 96] | [71, 67, 96] |
c106 | 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". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[43, 0, 98, 5, 2] -> [0, 2, 5, 43, 98]
[76, 70, 7, 2, 0, 7] -> [0, 2, 7, 7, 70, 76]
[66, 28, 1, 11, 96, 80, 64] -> [1, 11, 28, 64, 66, 80, 96]
[72, 93, 0, 43] -> [0, 43, 72, 93]
[87, 2, 5... | [1, 71, 33, 5] -> [1, 5, 33, 71] | [1, 71, 33, 5] | [1, 5, 33, 71] |
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,... | [9, 5, 9, 0, 9, 5, 9, 5, 5, 5] -> [8, 2, 7, 0, 3] | [9, 5, 9, 0, 9, 5, 9, 5, 5, 5] | [8, 2, 7, 0, 3] |
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]... | [8, 40, 3, 40, 5, 40, 5, 5, 8, 3] -> [8, 2, 40, 3, 3, 2, 5, 3] | [8, 40, 3, 40, 5, 40, 5, 5, 8, 3] | [8, 2, 40, 3, 3, 2, 5, 3] |
c037 | 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". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 0, 2, 1, 3, 6, 8, 9, 7, 5] -> [4, 0, 2, 1, 3, 6, 8, 9, 7, 5, 3]
[2, 8, 7, 5, 0, 4, 6, 1] -> [2, 8, 7, 5, 0, 4, 6, 1, 3]
[5, 3, 4, 1, 9] -> [5, 3, 4, 1, 9, 3]
[6, 5, 0] -> [6, 5, 0, 3]... | [5, 7, 4] -> [5, 7, 4, 3] | [5, 7, 4] | [5, 7, 4, 3] |
c231 | 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 number of occurrences of each unique element in ascending order". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[28, 7, 7, 28, 28] -> [2, 3]
[28, 28, 28] -> [3]
[59, 59, 59, 59, 59, 59, 59] -> [7]
[4, 71, 32, 71, 71, 71, 32, 4, 32] -> [2, 3, 4]
[6, 6, 0, 18, 5, 12, 4, 6, 53, 65] -> [1, 1, 1, 1, 1, ... | [91, 98, 0, 8, 50, 0, 7, 40, 54, 5] -> [1, 1, 1, 1, 1, 1, 1, 1, 2] | [91, 98, 0, 8, 50, 0, 7, 40, 54, 5] | [1, 1, 1, 1, 1, 1, 1, 1, 2] |
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,... | [3, 76, 5, 53, 90, 4, 63, 46, 2] -> [2, 4, 5, 46, 53, 63] | [3, 76, 5, 53, 90, 4, 63, 46, 2] | [2, 4, 5, 46, 53, 63] |
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, 9, 3, 6, 2, 8, 7] -> [7, 9, 3, 6, 2, 8, 7] | [4, 9, 3, 6, 2, 8, 7] | [7, 9, 3, 6, 2, 8, 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... | [6, 2, 5, 8, 3, 4, 9, 7] -> [6, 2, 8, 3, 4, 9, 7] | [6, 2, 5, 8, 3, 4, 9, 7] | [6, 2, 8, 3, 4, 9, 7] |
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,... | [8, 32, 77, 0, 53, 26, 9, 35, 71, 6] -> [77, 0, 53, 26, 9, 35] | [8, 32, 77, 0, 53, 26, 9, 35, 71, 6] | [77, 0, 53, 26, 9, 35] |
c034 | 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". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 6, 8, 9, 2] -> [1, 8, 6, 9, 2]
[1, 4, 3, 8, 5, 0, 2] -> [1, 3, 4, 8, 5, 0, 2]
[9, 0, 3, 1, 7, 2, 6, 5] -> [9, 3, 0, 1, 7, 2, 6, 5]
[0, 8, 5, 4, 3, 2, 7] -> [0, 5, 8, 4, 3, 2, 7]
[7, 6... | [9, 5, 7] -> [9, 7, 5] | [9, 5, 7] | [9, 7, 5] |
c013 | 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 3 through 7". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 9, 0, 6, 5] -> [0, 6, 5]
[2, 6, 1, 3] -> [1, 3]
[4, 5, 7] -> [7]
[8, 3] -> []
[4, 2, 8, 0, 5, 9, 7, 1, 3] -> [8, 0, 5, 9, 7]
[2] -> []
[7, 9, 1, 6, 5, 2] -> [1, 6, 5, 2]
[9, 7] -> []
... | [2, 7, 3, 5, 1, 8] -> [3, 5, 1, 8] | [2, 7, 3, 5, 1, 8] | [3, 5, 1, 8] |
c108 | 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, 83] -> [86]
[10, 0, 59, 5, 1, 9, 4] -> [88]
[14, 4, 12] -> [30]
[6, 0, 3, 82] -> [91]
[5, 7, 4, 2] -> [18]
[] -> [0]
[62] -> [62]
[22, 6, 1] -> [29]
Questions:
[7, 5, 14] -> ?
Answer:... | [7, 5, 14] -> [26] | [7, 5, 14] | [26] |
c120 | 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 first element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[99, 2] -> [99]
[2, 24, 1, 76, 46, 48, 13, 0] -> [2]
[18, 6, 95, 2, 5, 1] -> [18]
[65, 71, 30] -> [65]
[52, 9, 1, 13, 49, 5, 35, 87] -> [52]
[55, 81, 20, 8, 29] -> [55]
[32, 49, 44] -> [3... | [75, 97, 96, 7, 56] -> [75] | [75, 97, 96, 7, 56] | [75] |
c230 | 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 by 2 from the smallest element to the largest element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[40] -> [40]
[6, 28, 4, 7] -> [4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28]
[35] -> [35]
[6, 13] -> [6, 8, 10, 12]
[44, 63, 44, 44, 63] -> [44, 46, 48, 50, 52, 54, 56, 58, 60, 62]
[11... | [9, 6, 3, 5] -> [3, 5, 7, 9] | [9, 6, 3, 5] | [3, 5, 7, 9] |
c152 | 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 the product of its digits". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[81, 3] -> [8, 0]
[54, 72, 98, 65, 61, 7] -> [20, 14, 72, 30, 6, 0]
[48] -> [32]
[29, 3, 45] -> [18, 0, 20]
[90, 5, 68, 2] -> [0, 0, 48, 0]
[28, 25, 5, 6, 73, 0, 13, 33, 7, 4] -> [16, 10,... | [29] -> [18] | [29] | [18] |
c233 | 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 occurrences of each unique element, in order of appearance". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 80, 86, 80, 62, 7, 78, 62, 4] -> [1, 2, 1, 2, 1, 1, 1]
[81, 76, 71, 76, 71] -> [1, 2, 2]
[0, 0, 4] -> [2, 1]
[47, 5, 90, 19, 0, 86, 63, 86, 87] -> [1, 1, 1, 1, 1, 2, 1, 1]
[68, 6, 8, ... | [59, 59, 11, 11, 63, 4, 56, 63, 63] -> [2, 2, 3, 1, 1] | [59, 59, 11, 11, 63, 4, 56, 63, 63] | [2, 2, 3, 1, 1] |
c142 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "every digit in order of appearance". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[36] -> [3, 6]
[44, 94] -> [4, 4, 9, 4]
[8, 79, 9, 85] -> [0, 8, 7, 9, 0, 9, 8, 5]
[6, 37, 2, 25] -> [0, 6, 3, 7, 0, 2, 2, 5]
[98, 7, 22, 58, 73, 43, 78] -> [9, 8, 0, 7, 2, 2, 5, 8, 7, 3,... | [63, 86, 57, 42, 5] -> [6, 3, 8, 6, 5, 7, 4, 2, 0, 5] | [63, 86, 57, 42, 5] | [6, 3, 8, 6, 5, 7, 4, 2, 0, 5] |
c121 | 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 last element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[99, 62, 65, 0, 95] -> [95]
[6, 8, 39] -> [39]
[38, 2] -> [2]
[56, 65, 74] -> [74]
[19, 32, 3, 78, 41, 51, 8, 80] -> [80]
[3, 53, 92, 4, 9, 19, 38, 61, 27] -> [27]
[36, 22, 3, 55, 23] -> ... | [67, 9, 4, 6, 0, 96, 33, 1, 2, 85] -> [85] | [67, 9, 4, 6, 0, 96, 33, 1, 2, 85] | [85] |
c214 | 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 1 and N+1, where N is element 1". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 60, 15, 5, 4, 42, 29] -> [60, 15, 4, 42, 29]
[5, 1, 24, 34, 1, 1, 1] -> [1, 24, 34, 1, 1]
[4, 6, 55, 8, 74, 1] -> [6, 55, 8, 1]
[8, 78, 4, 8, 75, 3, 1, 68, 0, 92] -> [78, 4, 8, 75, 3,... | [2, 9, 2, 33, 8, 4, 8, 80] -> [9, 33, 8, 4, 8, 80] | [2, 9, 2, 33, 8, 4, 8, 80] | [9, 33, 8, 4, 8, 80] |
c188 | 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 it is divisible by 3, else 0". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[53, 24, 70, 15, 7, 23, 4] -> [0, 1, 0, 1, 0, 0, 0]
[89, 88, 2, 5, 0, 25, 3, 74, 9, 4] -> [0, 0, 0, 0, 1, 0, 1, 0, 1, 0]
[54, 12, 73] -> [1, 1, 0]
[71, 48, 3, 6] -> [0, 1, 1, 1]
[27, 8, 7... | [0, 72, 16, 27, 59, 2, 5, 37] -> [1, 1, 0, 1, 0, 0, 0, 0] | [0, 72, 16, 27, 59, 2, 5, 37] | [1, 1, 0, 1, 0, 0, 0, 0] |
c082 | 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 3". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[87, 66, 13, 56, 95, 8, 1, 6, 2] -> [13]
[91, 63, 15, 99, 4, 25, 14, 0, 9] -> [15]
[9, 29, 13, 52, 26, 5, 39, 45, 8, 58] -> [13]
[0, 76, 8, 52, 68] -> [8]
[38] -> []
[1] -> []
[79, 66, 1]... | [89, 0, 70, 86, 87, 9] -> [70] | [89, 0, 70, 86, 87, 9] | [70] |
c076 | 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 maximum, last element, length, first element, and minimum, in that order". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[31, 21, 57] -> [57, 57, 3, 31, 21]
[61] -> [61, 61, 1, 61, 61]
[90, 60, 70, 14, 44, 86, 43, 80, 56, 2] -> [90, 2, 10, 90, 2]
[65] -> [65, 65, 1, 65, 65]
[8, 63, 25, 2, 35, 41, 61, 79, 95... | [49, 74, 80, 11] -> [80, 11, 4, 49, 11] | [49, 74, 80, 11] | [80, 11, 4, 49, 11] |
c129 | 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, 7, 73, 93, 49, 3, 2, 93, 5, 0] -> [73, 93, 49, 3, 2, 93, 5]
[3, 5, 8, 79, 28, 4, 57, 89] -> [28, 4, 57]
[81, 99, 88] -> []
[4, 6, 5, 23, 8, 34, 0] -> [34, 0]
[4, 4, 4, 4, 4, 4, 4, 4] ... | [2, 3, 3, 3, 8, 1, 91, 77, 3] -> [3, 8] | [2, 3, 3, 3, 8, 1, 91, 77, 3] | [3, 8] |
c198 | 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 in descending order". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[] -> []
[94, 64, 8, 3, 1, 20, 38, 54, 0, 41] -> [94, 64, 54, 41, 38, 20, 8, 3, 1, 0]
[98, 9, 6, 68, 5, 3, 4, 7] -> [98, 68, 9, 7, 6, 5, 4, 3]
[5, 78, 58, 5, 30, 32, 7, 72, 0, 2] -> [78, ... | [1, 27, 27, 7, 61, 61, 27, 7] -> [61, 27, 7, 1] | [1, 27, 27, 7, 61, 61, 27, 7] | [61, 27, 7, 1] |
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... | [6, 0, 37, 37, 87, 0, 20, 32, 6, 2] -> [6, 37, 20] | [6, 0, 37, 37, 87, 0, 20, 32, 6, 2] | [6, 37, 20] |
c009 | 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 6 elements". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 2] -> [7, 2]
[6, 2, 4, 9, 0, 8, 1] -> [6, 2, 4, 9, 0, 8]
[8, 6, 1, 7, 2, 5] -> [8, 6, 1, 7, 2, 5]
[1, 4, 0, 3, 6, 8, 9, 2] -> [1, 4, 0, 3, 6, 8]
[9] -> [9]
[6, 9, 4, 1] -> [6, 9, 4, 1... | [1, 3, 6, 0, 4, 8, 9] -> [1, 3, 6, 0, 4, 8] | [1, 3, 6, 0, 4, 8, 9] | [1, 3, 6, 0, 4, 8] |
c175 | 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 larger than any preceding element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 21, 43, 0, 26, 2, 66, 5, 32, 83] -> [9, 21, 43, 66, 83]
[1, 9, 60, 0, 60, 38] -> [1, 9, 60]
[6, 2, 4, 1, 7, 0, 67] -> [6, 7, 67]
[0, 7, 8, 1, 9, 7, 2, 0, 4, 53] -> [0, 7, 8, 9, 53]
[9... | [29, 92, 98, 9, 55, 42, 3, 22, 4, 27] -> [29, 92, 98] | [29, 92, 98, 9, 55, 42, 3, 22, 4, 27] | [29, 92, 98] |
c014 | 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 elements 3 through 7". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 6, 1, 9] -> [1, 9]
[3, 0] -> []
[8, 1, 6, 9, 7, 2, 3] -> [6, 9, 7, 2, 3]
[1, 9, 7, 3, 0, 5, 8, 6] -> [7, 3, 0, 5, 8]
[3, 0, 9, 2] -> [9, 2]
[3, 9, 7, 4, 6] -> [7, 4, 6]
[2, 5, 1, 8] -... | [8, 3, 5, 6, 7, 0] -> [5, 6, 7, 0] | [8, 3, 5, 6, 7, 0] | [5, 6, 7, 0] |
c030 | 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 last two elements". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 8, 9, 3, 4, 5, 1, 2] -> [7, 8, 9, 3, 4, 5]
[7, 4, 3, 0, 9, 6, 8, 2] -> [7, 4, 3, 0, 9, 6]
[4, 0, 1, 3, 2, 5, 7] -> [4, 0, 1, 3, 2]
[8, 6] -> []
[9, 5, 2, 0, 1] -> [9, 5, 2]
[7, 5, 9, ... | [3, 1, 4, 0, 2, 7, 6, 9, 8] -> [3, 1, 4, 0, 2, 7, 6] | [3, 1, 4, 0, 2, 7, 6, 9, 8] | [3, 1, 4, 0, 2, 7, 6] |
c188 | 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 it is divisible by 3, else 0". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[53, 24, 70, 15, 7, 23, 4] -> [0, 1, 0, 1, 0, 0, 0]
[89, 88, 2, 5, 0, 25, 3, 74, 9, 4] -> [0, 0, 0, 0, 1, 0, 1, 0, 1, 0]
[54, 12, 73] -> [1, 1, 0]
[71, 48, 3, 6] -> [0, 1, 1, 1]
[27, 8, 7... | [93, 87, 13, 10, 12] -> [1, 1, 0, 0, 1] | [93, 87, 13, 10, 12] | [1, 1, 0, 0, 1] |
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,... | [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] -> [] | [0, 0, 0, 0, 0, 0, 0, 0, 0, 0] | [] |
c033 | 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". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 0, 4, 6, 7, 3] -> [6, 0, 4, 2, 7, 3]
[1, 9, 3, 5] -> [5, 9, 3, 1]
[6, 8, 7, 4] -> [4, 8, 7, 6]
[1, 4, 0, 8, 6, 7, 3, 2, 5] -> [8, 4, 0, 1, 6, 7, 3, 2, 5]
[7, 2, 6, 8, 0, 5, 9] -> [8, ... | [1, 5, 0, 2] -> [2, 5, 0, 1] | [1, 5, 0, 2] | [2, 5, 0, 1] |
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,... | [4, 9, 9, 6, 9, 9, 9] -> [8, 2, 7, 0, 3] | [4, 9, 9, 6, 9, 9, 9] | [8, 2, 7, 0, 3] |
c076 | 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 maximum, last element, length, first element, and minimum, in that order". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[31, 21, 57] -> [57, 57, 3, 31, 21]
[61] -> [61, 61, 1, 61, 61]
[90, 60, 70, 14, 44, 86, 43, 80, 56, 2] -> [90, 2, 10, 90, 2]
[65] -> [65, 65, 1, 65, 65]
[8, 63, 25, 2, 35, 41, 61, 79, 95... | [51, 56, 88, 98, 94, 64] -> [98, 64, 6, 51, 51] | [51, 56, 88, 98, 94, 64] | [98, 64, 6, 51, 51] |
c001 | 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 3". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 4, 5, 1, 2] -> [5]
[6, 4, 9, 0, 5, 7, 3, 2, 8, 1] -> [9]
[4, 1, 8, 2, 0, 6, 7] -> [8]
[1, 5, 3, 8, 2, 0, 4, 7] -> [3]
[1, 6, 4] -> [4]
[8, 3, 6, 2, 4, 5, 1, 9] -> [6]
[4, 0, 7] -> [7]... | [2, 1, 5, 3, 6, 0, 8, 4] -> [5] | [2, 1, 5, 3, 6, 0, 8, 4] | [5] |
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, ... | [6, 5, 2] -> [6, 6, 5, 2] | [6, 5, 2] | [6, 6, 5, 2] |
c126 | 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:
[65, 33, 55, 54, 8, 50, 4, 90] -> [33, 55, 54, 8, 50, 4, 90]
[57, 10, 6, 1, 31, 72, 0, 18, 7, 81] -> [10, 6, 1, 31, 72, 0, 18, 7, 81]
[3, 33, 7, 19, 66, 82] -> [33, 7, 19, 66, 82]
[3, 33,... | [0, 74, 8, 93, 4, 80, 6, 47, 52, 25] -> [74, 8, 93, 4, 80, 6, 47, 52, 25] | [0, 74, 8, 93, 4, 80, 6, 47, 52, 25] | [74, 8, 93, 4, 80, 6, 47, 52, 25] |
c135 | 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". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 19, 7, 6, 9, 1, 5, 64, 47, 93] -> [2, 19, 6, 9, 1, 5, 64, 47, 93]
[1, 69, 1, 7, 17, 17, 10, 7, 3, 37] -> [1, 69, 1, 17, 17, 10, 7, 3, 37]
[7, 7, 9, 21, 7, 4, 4, 91, 0] -> [7, 9, 21, 7... | [0, 6, 7, 7, 7, 4, 6, 7] -> [0, 6, 7, 7, 4, 6, 7] | [0, 6, 7, 7, 7, 4, 6, 7] | [0, 6, 7, 7, 4, 6, 7] |
c201 | 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 > element 1, followed by elements < element 1". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 27, 6, 4, 59, 1, 67, 9, 0] -> [27, 59, 67, 9, 6, 4, 1, 0]
[93, 72] -> [72]
[22, 94, 78, 8, 9, 2, 89, 5, 7, 97] -> [94, 78, 89, 97, 8, 9, 2, 5, 7]
[47, 42] -> [42]
[9, 90, 81, 5, 1, 2,... | [26, 3, 64, 20] -> [64, 3, 20] | [26, 3, 64, 20] | [64, 3, 20] |
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,... | [2, 2, 12, 3, 0, 5, 1, 4, 7] -> [12, 3, 0, 5, 1, 4, 7] | [2, 2, 12, 3, 0, 5, 1, 4, 7] | [12, 3, 0, 5, 1, 4, 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... | [3, 9, 5, 7, 6] -> [7] | [3, 9, 5, 7, 6] | [7] |
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... | [95, 73, 50] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] | [95, 73, 50] | [11, 19, 24, 33, 42, 5, 82, 0, 64, 9] |
c126 | 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:
[65, 33, 55, 54, 8, 50, 4, 90] -> [33, 55, 54, 8, 50, 4, 90]
[57, 10, 6, 1, 31, 72, 0, 18, 7, 81] -> [10, 6, 1, 31, 72, 0, 18, 7, 81]
[3, 33, 7, 19, 66, 82] -> [33, 7, 19, 66, 82]
[3, 33,... | [9, 86, 0, 3, 43, 6, 2, 5, 59, 34] -> [86, 0, 3, 43, 6, 2, 5, 59, 34] | [9, 86, 0, 3, 43, 6, 2, 5, 59, 34] | [86, 0, 3, 43, 6, 2, 5, 59, 34] |
c134 | 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 M through N, 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:
[3, 9, 37, 37, 3, 9, 9, 3, 37, 2] -> [3, 9, 2]
[5, 7, 1, 10, 3, 18, 93, 2, 4] -> [5, 7, 1, 10, 2, 4]
[3, 6, 7, 30, 1, 29, 4, 3, 2, 2] -> [3, 6, 4, 3, 2, 2]
[2, 2, 41, 41, 2, 89] -> [2, 41... | [3, 4, 2, 73, 5, 70, 74] -> [3, 4, 5, 70, 74] | [3, 4, 2, 73, 5, 70, 74] | [3, 4, 5, 70, 74] |
c082 | 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 3". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[87, 66, 13, 56, 95, 8, 1, 6, 2] -> [13]
[91, 63, 15, 99, 4, 25, 14, 0, 9] -> [15]
[9, 29, 13, 52, 26, 5, 39, 45, 8, 58] -> [13]
[0, 76, 8, 52, 68] -> [8]
[38] -> []
[1] -> []
[79, 66, 1]... | [4] -> [] | [4] | [] |
c127 | 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 last element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[47] -> []
[51, 40, 36, 45, 20, 7, 6] -> [51, 40, 36, 45, 20, 7]
[7, 0, 38, 5, 23, 3, 1, 14, 84, 92] -> [7, 0, 38, 5, 23, 3, 1, 14, 84]
[9, 43, 60, 83, 5, 18] -> [9, 43, 60, 83, 5]
[8, 25... | [65, 45] -> [65] | [65, 45] | [65] |
c104 | 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, 19] -> [19]
[2, 40, 85, 46, 9] -> [85]
[1, 22, 88, 12, 8, 81, 9, 16, 48, 18] -> [88]
[24, 60, 4] -> [60]
[80, 1, 50, 49, 5, 48, 63] -> [80]
[22, 29, 65, 20, 6] -> [65]
[0, 8, 3, 55, 1... | [77, 1, 43, 78, 38, 82] -> [82] | [77, 1, 43, 78, 38, 82] | [82] |
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,... | [48, 48] -> [48] | [48, 48] | [48] |
c206 | 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 whose value is between the first two elements". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[43, 2, 9, 4, 3] -> [9, 4, 3]
[85, 4, 89, 58, 54, 2, 6, 2, 85] -> [58, 54, 6]
[98, 0, 5, 7, 12] -> [5, 7, 12]
[80, 91, 81, 4, 88, 9, 53, 84] -> [81, 88, 84]
[90, 3, 86, 85, 56, 18] -> [86... | [1, 9, 10, 6, 15, 4, 5, 56, 4, 0] -> [6, 4, 5, 4] | [1, 9, 10, 6, 15, 4, 5, 56, 4, 0] | [6, 4, 5, 4] |
c033 | 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". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 0, 4, 6, 7, 3] -> [6, 0, 4, 2, 7, 3]
[1, 9, 3, 5] -> [5, 9, 3, 1]
[6, 8, 7, 4] -> [4, 8, 7, 6]
[1, 4, 0, 8, 6, 7, 3, 2, 5] -> [8, 4, 0, 1, 6, 7, 3, 2, 5]
[7, 2, 6, 8, 0, 5, 9] -> [8, ... | [8, 1, 6, 4, 5, 2, 9, 3] -> [4, 1, 6, 8, 5, 2, 9, 3] | [8, 1, 6, 4, 5, 2, 9, 3] | [4, 1, 6, 8, 5, 2, 9, 3] |
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, ... | [6, 8, 2, 5, 9, 7] -> [6, 8, 2, 5] | [6, 8, 2, 5, 9, 7] | [6, 8, 2, 5] |
c141 | 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 + 2 with N, M = element 1, N = element 2; remove elements 1 and 2". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 5, 4, 40, 1, 79, 45, 62, 36] -> [4, 40, 1, 79, 45, 62, 5]
[51, 3, 1, 4, 23, 9, 34, 7] -> [1, 4, 23, 9, 34, 7]
[5, 1, 64, 2, 75, 20, 5, 2, 5] -> [64, 2, 75, 20, 1, 2, 5]
[3, 4, 7, 38, ... | [4, 4, 4, 4, 4, 4, 4, 4, 4] -> [4, 4, 4, 4, 4, 4, 4] | [4, 4, 4, 4, 4, 4, 4, 4, 4] | [4, 4, 4, 4, 4, 4, 4] |
c228 | 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 the number of occurrences of that element so far in the input". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 6, 6, 6] -> [1, 2, 3, 4]
[36, 60, 36, 36, 60, 60, 36] -> [1, 1, 2, 3, 2, 3, 4]
[80, 80, 80] -> [1, 2, 3]
[62, 62, 62, 62, 62] -> [1, 2, 3, 4, 5]
[5, 5, 5, 5] -> [1, 2, 3, 4]
[17, 69, ... | [21, 82, 82, 82, 21, 82] -> [1, 1, 2, 3, 2, 4] | [21, 82, 82, 82, 21, 82] | [1, 1, 2, 3, 2, 4] |
c036 | 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:
[9, 0, 6, 5, 4, 7, 1] -> [5, 0, 6, 9, 4, 7, 1]
[9, 1, 8, 7, 5, 0] -> [7, 1, 8, 9, 5, 0]
[7, 2, 0, 7] -> [7, 0, 2, 7]
[4, 8, 2, 9, 6, 0, 5, 1] -> [4, 2, 8, 9, 6, 0, 5, 1]
[0, 7, 5, 2, 1, 8... | [3, 6, 8, 1, 9] -> [1, 6, 8, 3, 9] | [3, 6, 8, 1, 9] | [1, 6, 8, 3, 9] |
c172 | 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 product of elements". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6] -> [6]
[0, 13, 6, 70, 7, 12, 13, 7] -> [0, 0, 0, 0, 0, 0, 0, 0]
[1, 1, 82] -> [1, 1, 82]
[3, 4, 8] -> [3, 12, 96]
[3, 3, 1, 1] -> [3, 9, 9, 9]
[3, 0, 42, 33, 5, 98, 62, 2, 41, 77] -> ... | [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] -> [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] | [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] | [1, 1, 1, 1, 1, 1, 1, 1, 1, 1] |
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,... | [3, 6, 4, 80, 2, 79] -> [3, 79] | [3, 6, 4, 80, 2, 79] | [3, 79] |
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, ... | [5, 1] -> [5, 1] | [5, 1] | [5, 1] |
c190 | 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 by 2 from the first element to the last element". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 84, 9] -> [1, 3, 5, 7, 9]
[44, 7, 45, 40, 2, 8, 3, 6, 26] -> []
[68, 1, 84] -> [68, 70, 72, 74, 76, 78, 80, 82, 84]
[62, 45, 75, 38, 97, 7, 2, 0] -> []
[3, 6, 7, 82, 70, 5] -> [3, 5]
... | [8, 37, 85, 7, 55, 2, 3, 34, 14] -> [8, 10, 12, 14] | [8, 37, 85, 7, 55, 2, 3, 34, 14] | [8, 10, 12, 14] |
c183 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "list the index minus 1 of 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:
[1, 1, 6, 6, 6, 1, 1, 1, 6, 1] -> [1, 5, 6, 7, 9]
[2, 6, 9, 9, 6, 9, 6, 2, 2] -> [7, 8]
[2, 2, 2, 2, 2] -> [1, 2, 3, 4]
[3, 3, 63, 71, 3, 38, 38, 80, 6] -> [1, 4]
[5, 5, 2, 5, 2, 6, 2, 5,... | [9, 9, 9] -> [1, 2] | [9, 9, 9] | [1, 2] |
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,... | [6, 7, 0, 5, 4] -> [6, 0, 4] | [6, 7, 0, 5, 4] | [6, 0, 4] |
c025 | 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". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 6, 5, 3, 1, 8, 4, 9, 7] -> [0, 5, 3, 1, 8, 4, 9, 7]
[1, 6, 5, 0, 8, 9, 7, 2, 4, 3] -> [1, 5, 0, 8, 9, 7, 2, 4, 3]
[3, 4, 6, 2] -> [3, 6, 2]
[4, 9, 3, 2] -> [4, 3, 2]
[1, 2] -> [1]
[5,... | [6, 8, 4, 9, 2, 1] -> [6, 4, 9, 2, 1] | [6, 8, 4, 9, 2, 1] | [6, 4, 9, 2, 1] |
c066 | Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "left-rotate by 1". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 2, 7, 3, 6, 5, 1, 9] -> [2, 7, 3, 6, 5, 1, 9, 8]
[5, 3] -> [3, 5]
[4, 1, 9, 0] -> [1, 9, 0, 4]
[2, 8, 6, 9, 1] -> [8, 6, 9, 1, 2]
[7] -> [7]
[6, 3, 4] -> [3, 4, 6]
[1, 2, 6, 3, 5, 8, ... | [2, 8] -> [8, 2] | [2, 8] | [8, 2] |
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, 0, 3, 5, 1] -> [0, 3, 5, 1] | [0, 0, 3, 5, 1] | [0, 3, 5, 1] |
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, 87, 11, 91, 1, 43, 9] -> [11, 91, 1] | [3, 87, 11, 91, 1, 43, 9] | [11, 91, 1] |
c093 | 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 element 1 ten times". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 5, 15, 16, 57, 68, 1] -> [7, 7, 7, 7, 7, 7, 7, 7, 7, 7]
[2, 17, 0, 38, 1, 86, 91, 65, 16] -> [2, 2, 2, 2, 2, 2, 2, 2, 2, 2]
[75, 27, 9, 56, 26, 92, 2, 99, 42, 0] -> [75, 75, 75, 75, 7... | [96] -> [96, 96, 96, 96, 96, 96, 96, 96, 96, 96] | [96] | [96, 96, 96, 96, 96, 96, 96, 96, 96, 96] |
c019 | 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 6 with a 3 if there is an element 6". | Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 4, 5, 6, 2, 0, 7, 8] -> [9, 4, 5, 6, 2, 3, 7, 8]
[4] -> [4]
[1, 6, 5, 4, 9, 8, 0, 3] -> [1, 6, 5, 4, 9, 3, 0, 3]
[0, 9, 1, 7, 3, 5] -> [0, 9, 1, 7, 3, 3]
[5, 7, 8, 2, 1, 4, 6] -> [5, ... | [7, 8, 6] -> [7, 8, 6] | [7, 8, 6] | [7, 8, 6] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.