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
|
---|---|---|---|---|---|
c139
|
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 the smallest and largest elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 60, 23, 4, 89, 0, 3, 9, 60, 77] -> [2, 60, 23, 4, 3, 9, 60, 77]
[72, 60, 6, 1, 27, 88, 8, 53, 90] -> [72, 60, 6, 27, 88, 8, 53]
[68, 5, 0, 10, 2, 68, 3] -> [5, 10, 2, 3]
[71, 6, 16, 19, 17, 81, 9, 60] -> [71, 16, 19, 17, 9, 60]
[29, 41, 3, 1, 6, 44, 53, 9, 28] -> [29, 41, 3, 6, 44, 9, 28]
[8, 15, 31, 48, 28, 5, 0, 70] -> [8, 15, 31, 48, 28, 5]
[14, 14, 14] -> []
[39, 39, 39, 5, 7, 11, 3, 35] -> [5, 7, 11, 35]
Questions:
[34, 7, 34, 3, 3, 4] -> ?
Answer:
|
[34, 7, 34, 3, 3, 4] -> [7, 4]
|
[34, 7, 34, 3, 3, 4]
|
[7, 4]
|
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, 77, 3] -> [5, 0, 7, 39, 50, 76, 6, 1, 77]
[3, 4, 7] -> [4, 7]
[3, 3, 7, 0, 3, 0] -> [7, 0, 0]
[17, 3, 3, 4, 39, 3] -> [17, 4, 39]
Questions:
[30, 9, 3, 3, 8] -> ?
Answer:
|
[30, 9, 3, 3, 8] -> [30, 9, 8]
|
[30, 9, 3, 3, 8]
|
[30, 9, 8]
|
c115
|
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 unique elements, prepended and appended by their sum".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[25, 4, 25, 4, 4] -> [29, 25, 4, 29]
[0, 7, 7, 4, 4, 40] -> [51, 0, 7, 4, 40, 51]
[35, 22, 35, 35, 22, 35, 35, 35, 22, 22] -> [57, 35, 22, 57]
[5, 5, 70] -> [75, 5, 70, 75]
[12, 9, 12, 10, 8, 9, 10, 5, 10, 9] -> [44, 12, 9, 10, 8, 5, 44]
[58, 14, 14, 58, 14, 14, 58, 58, 14] -> [72, 58, 14, 72]
[36, 36, 3, 36, 3, 3, 36] -> [39, 36, 3, 39]
[32, 4, 7, 7, 32, 7, 7, 7, 32] -> [43, 32, 4, 7, 43]
Questions:
[51, 51, 5, 5, 5, 51, 51] -> ?
Answer:
|
[51, 51, 5, 5, 5, 51, 51] -> [56, 51, 5, 56]
|
[51, 51, 5, 5, 5, 51, 51]
|
[56, 51, 5, 56]
|
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, 2, 5, 7, 6, 9, 8] -> [6]
Questions:
[8, 9, 1, 4, 3, 2, 5, 7, 0, 6] -> ?
Answer:
|
[8, 9, 1, 4, 3, 2, 5, 7, 0, 6] -> [0]
|
[8, 9, 1, 4, 3, 2, 5, 7, 0, 6]
|
[0]
|
c095
|
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:
[17, 87, 6] -> [87]
[61, 82, 3, 38] -> [82, 3]
[78, 11, 8, 93, 1, 99, 48, 2, 0] -> [11, 8, 93, 1, 99, 48, 2]
[35, 56, 7, 27, 79, 8, 94, 90, 1] -> [56, 7, 27, 79, 8, 94, 90]
[0, 70, 10, 8, 9, 19] -> [70, 10, 8, 9]
[7, 8, 80, 92, 9, 46, 77, 68] -> [8, 80, 92, 9, 46, 77]
[63, 30, 22] -> [30]
[87, 4, 71] -> [4]
Questions:
[66, 38, 51, 8, 15, 9] -> ?
Answer:
|
[66, 38, 51, 8, 15, 9] -> [38, 51, 8, 15]
|
[66, 38, 51, 8, 15, 9]
|
[38, 51, 8, 15]
|
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, 0, 29] -> [90, 81, 29, 5, 1, 2, 0]
[58, 9, 2, 93, 81, 99, 97, 8, 4, 82] -> [93, 81, 99, 97, 82, 9, 2, 8, 4]
[46, 97, 5, 52] -> [97, 52, 5]
[82, 62, 12, 19, 91, 8, 99, 90] -> [91, 99, 90, 62, 12, 19, 8]
Questions:
[78] -> ?
Answer:
|
[78] -> []
|
[78]
|
[]
|
c167
|
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 divisible by 3".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[19, 73, 1, 3, 2, 6] -> [3, 6]
[82, 89, 67, 51, 88, 8] -> [51]
[9, 1, 83, 4, 95, 29, 44, 7] -> [9]
[15, 6, 60, 66, 37, 63, 33, 53, 3, 0] -> [15, 6, 60, 66, 63, 33, 3, 0]
[54, 8, 6, 0, 2, 70, 7, 9, 3, 19] -> [54, 6, 0, 9, 3]
[2, 14, 7, 91, 80, 20, 31, 38] -> []
[0, 4, 73, 8, 8, 78] -> [0, 78]
[96, 94, 9, 12, 7, 57, 0, 5, 1] -> [96, 9, 12, 57, 0]
Questions:
[64, 60, 43, 98, 7, 67, 6, 75, 33, 9] -> ?
Answer:
|
[64, 60, 43, 98, 7, 67, 6, 75, 33, 9] -> [60, 6, 75, 33, 9]
|
[64, 60, 43, 98, 7, 67, 6, 75, 33, 9]
|
[60, 6, 75, 33, 9]
|
c095
|
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:
[17, 87, 6] -> [87]
[61, 82, 3, 38] -> [82, 3]
[78, 11, 8, 93, 1, 99, 48, 2, 0] -> [11, 8, 93, 1, 99, 48, 2]
[35, 56, 7, 27, 79, 8, 94, 90, 1] -> [56, 7, 27, 79, 8, 94, 90]
[0, 70, 10, 8, 9, 19] -> [70, 10, 8, 9]
[7, 8, 80, 92, 9, 46, 77, 68] -> [8, 80, 92, 9, 46, 77]
[63, 30, 22] -> [30]
[87, 4, 71] -> [4]
Questions:
[35, 26] -> ?
Answer:
|
[35, 26] -> []
|
[35, 26]
|
[]
|
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] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
[95, 93, 13] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
[0, 4, 8, 53, 1] -> [1]
[38, 0, 1, 22, 16, 3] -> [1, 2, 3]
[0, 9, 1, 3, 98, 4, 77, 36, 8] -> [1, 2, 3, 4, 5, 6, 7, 8]
Questions:
[24, 1, 23, 2, 91, 0] -> ?
Answer:
|
[24, 1, 23, 2, 91, 0] -> []
|
[24, 1, 23, 2, 91, 0]
|
[]
|
c113
|
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 ones digit is greater than element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 2] -> []
[9, 7, 26, 0, 48, 10, 53] -> [7, 26, 0, 48, 10, 53]
[6, 0, 42, 1] -> [0, 42, 1]
[6, 75, 1, 3, 5, 2, 44] -> [75, 1, 3, 5, 2, 44]
[13, 78, 6, 8, 9] -> [13, 78, 6, 8, 9]
[54, 6, 23, 15] -> [54, 6, 23, 15]
[8, 31, 72, 13, 79, 81] -> [31, 72, 13, 81]
[2, 1, 0, 31, 9, 74, 25, 46, 26, 29] -> [1, 0, 31]
Questions:
[19, 73, 5] -> ?
Answer:
|
[19, 73, 5] -> [19, 73, 5]
|
[19, 73, 5]
|
[19, 73, 5]
|
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, 0, 68, 36, 2, 14, 6] -> [1, 5, 2, 10, 68, 36, 2, 14, 6]
[4, 97, 57, 8, 83, 1] -> [97, 57, 8, 6, 1]
[6, 45, 1, 99, 53, 0, 41, 5, 4] -> [45, 1, 99, 53, 0, 9, 5, 4]
[1, 1, 82] -> [3, 82]
[6, 75, 55, 9, 0, 16, 0, 5] -> [75, 55, 9, 0, 16, 8, 5]
Questions:
[2, 85, 8, 21] -> ?
Answer:
|
[2, 85, 8, 21] -> [85, 4, 21]
|
[2, 85, 8, 21]
|
[85, 4, 21]
|
c065
|
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 9 and append 7".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 6, 1] -> [9, 8, 6, 1, 7]
[3] -> [9, 3, 7]
[9, 4, 0, 2, 1, 8] -> [9, 9, 4, 0, 2, 1, 8, 7]
[2, 7, 1, 6, 9, 8, 5, 4, 0, 3] -> [9, 2, 7, 1, 6, 9, 8, 5, 4, 0, 3, 7]
[3, 0, 8, 6, 2, 5, 4] -> [9, 3, 0, 8, 6, 2, 5, 4, 7]
[1] -> [9, 1, 7]
[0, 2, 3, 4] -> [9, 0, 2, 3, 4, 7]
[9, 4, 2, 3, 5, 1, 8, 7, 0, 6] -> [9, 9, 4, 2, 3, 5, 1, 8, 7, 0, 6, 7]
Questions:
[2, 3, 9, 8, 5, 1] -> ?
Answer:
|
[2, 3, 9, 8, 5, 1] -> [9, 2, 3, 9, 8, 5, 1, 7]
|
[2, 3, 9, 8, 5, 1]
|
[9, 2, 3, 9, 8, 5, 1, 7]
|
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, 58, 81, 81] -> [81, 81, 81, 58, 58, 58, 58]
[97, 97, 97, 97] -> [97, 97, 97]
[95, 95, 79, 5, 6, 22, 2] -> [95]
[98, 2, 77, 98, 19] -> [98]
Questions:
[33, 0, 4, 59, 10, 6, 1, 2, 24, 66] -> ?
Answer:
|
[33, 0, 4, 59, 10, 6, 1, 2, 24, 66] -> []
|
[33, 0, 4, 59, 10, 6, 1, 2, 24, 66]
|
[]
|
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]
[7, 1] -> [7, 1, 3]
[4, 9, 1, 6, 0, 8] -> [4, 9, 1, 6, 0, 8, 3]
[0, 8] -> [0, 8, 3]
[3, 5, 7, 6, 9, 1, 8, 2, 4] -> [3, 5, 7, 6, 9, 1, 8, 2, 4, 3]
Questions:
[1] -> ?
Answer:
|
[1] -> [1, 3]
|
[1]
|
[1, 3]
|
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, 0, 29] -> [90, 81, 29, 5, 1, 2, 0]
[58, 9, 2, 93, 81, 99, 97, 8, 4, 82] -> [93, 81, 99, 97, 82, 9, 2, 8, 4]
[46, 97, 5, 52] -> [97, 52, 5]
[82, 62, 12, 19, 91, 8, 99, 90] -> [91, 99, 90, 62, 12, 19, 8]
Questions:
[14] -> ?
Answer:
|
[14] -> []
|
[14]
|
[]
|
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, 2, 9]
[44, 4, 24, 95, 92, 33, 6] -> [50, 9, 28, 98, 94, 34, 6]
[80, 5, 49, 2, 21, 0, 32] -> [86, 10, 53, 5, 23, 1, 32]
[19, 28, 34, 16, 1, 51] -> [24, 32, 37, 18, 2, 51]
[1, 9, 2, 89, 21, 64, 11, 71, 15, 7] -> [10, 17, 9, 95, 26, 68, 14, 73, 16, 7]
Questions:
[6, 83, 9, 66, 1, 0, 25] -> ?
Answer:
|
[6, 83, 9, 66, 1, 0, 25] -> [12, 88, 13, 69, 3, 1, 25]
|
[6, 83, 9, 66, 1, 0, 25]
|
[12, 88, 13, 69, 3, 1, 25]
|
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, 39, 0, 26, 26, 26, 8, 64, 13] -> [76, 26]
[8, 7, 0, 16, 16, 2, 0, 43, 43, 54] -> [8, 16, 43]
[4, 3, 2, 0, 8, 28, 28, 47, 3, 49] -> [4, 8]
[74, 74, 74, 68, 68, 68, 68, 74, 68] -> [74]
Questions:
[57, 8, 8, 0, 6, 0, 28] -> ?
Answer:
|
[57, 8, 8, 0, 6, 0, 28] -> [57, 6, 28]
|
[57, 8, 8, 0, 6, 0, 28]
|
[57, 6, 28]
|
c080
|
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 reverse order".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 8, 7, 0, 6, 5, 3, 4, 1] -> [1, 4, 3, 5, 6, 0, 7, 8, 2]
[9, 1, 2, 8, 0] -> [0, 8, 2, 1, 9]
[5, 3, 0, 7, 4, 6, 2, 9] -> [9, 2, 6, 4, 7, 0, 3, 5]
[1, 0, 7, 3, 9, 2] -> [2, 9, 3, 7, 0, 1]
[4, 0, 9] -> [9, 0, 4]
[4, 2] -> [2, 4]
[3, 6, 1, 7, 0, 4] -> [4, 0, 7, 1, 6, 3]
[1, 8, 0, 7, 5] -> [5, 7, 0, 8, 1]
Questions:
[7, 6, 3, 0, 4, 1, 5, 2] -> ?
Answer:
|
[7, 6, 3, 0, 4, 1, 5, 2] -> [2, 5, 1, 4, 0, 3, 6, 7]
|
[7, 6, 3, 0, 4, 1, 5, 2]
|
[2, 5, 1, 4, 0, 3, 6, 7]
|
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, 0, 0, 21, 0, 3, 9, 0, 0]
[0, 4, 87, 34, 7, 55, 2, 38, 85] -> [0, 0, 56, 12, 0, 25, 0, 24, 40]
[33, 38, 35, 41] -> [9, 24, 15, 4]
Questions:
[10, 59, 94, 56, 99, 63, 23, 22] -> ?
Answer:
|
[10, 59, 94, 56, 99, 63, 23, 22] -> [0, 45, 36, 30, 81, 18, 6, 4]
|
[10, 59, 94, 56, 99, 63, 23, 22]
|
[0, 45, 36, 30, 81, 18, 6, 4]
|
c010
|
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 N + 1, N = element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 4, 2, 9] -> [4, 2, 9]
[7, 4, 0, 8, 2, 1, 3] -> [4, 0, 8, 2, 1, 3]
[8, 4, 7, 5, 6, 0, 1] -> [4, 7, 5, 6, 0, 1]
[4, 7, 0, 6] -> [7, 0, 6]
[6, 9, 3, 7] -> [9, 3, 7]
[9, 8, 6, 1, 2, 4, 0, 7, 3, 5] -> [8, 6, 1, 2, 4, 0, 7, 3, 5]
[5, 3, 6, 8, 0, 7] -> [3, 6, 8, 0, 7]
[3, 2, 1, 0, 7, 8] -> [2, 1, 0]
Questions:
[9, 2, 1, 3, 5, 8, 6] -> ?
Answer:
|
[9, 2, 1, 3, 5, 8, 6] -> [2, 1, 3, 5, 8, 6]
|
[9, 2, 1, 3, 5, 8, 6]
|
[2, 1, 3, 5, 8, 6]
|
c140
|
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 2 with a 9".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[65, 43, 3, 9, 69, 17, 8, 7, 38, 58] -> [65, 9, 3, 9, 69, 17, 8, 7, 38, 58]
[36, 90] -> [36, 9]
[16, 8, 80, 5, 81] -> [16, 9, 80, 5, 81]
[67, 74, 8, 18, 60, 5, 4, 38, 26] -> [67, 9, 8, 18, 60, 5, 4, 38, 26]
[35, 51, 6] -> [35, 9, 6]
[9, 1] -> [9, 9]
[1, 30, 3, 76, 6, 5, 43, 79] -> [1, 9, 3, 76, 6, 5, 43, 79]
[49, 55, 78, 3] -> [49, 9, 78, 3]
Questions:
[0, 23, 4, 63, 2] -> ?
Answer:
|
[0, 23, 4, 63, 2] -> [0, 9, 4, 63, 2]
|
[0, 23, 4, 63, 2]
|
[0, 9, 4, 63, 2]
|
c226
|
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 M and last N elements, M = element 1, N = last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 25, 4, 98, 0, 8, 30, 82, 1] -> [98, 0, 8, 30, 82]
[1, 37, 4, 88, 4, 1, 88, 1, 1] -> [37, 4, 88, 4, 1, 88, 1]
[3, 77, 41, 5, 28, 1, 2, 6, 69, 3] -> [5, 28, 1, 2]
[2, 4, 21, 0, 0, 1] -> [21, 0, 0]
[1, 33, 1, 95, 1, 6, 9, 3, 2] -> [33, 1, 95, 1, 6, 9]
[1, 8, 32, 0, 3, 40, 62, 6] -> [8]
[1, 85, 34, 95, 58, 68, 9, 2, 4] -> [85, 34, 95, 58]
[5, 9, 9, 8, 4, 55, 1] -> [55]
Questions:
[1, 9, 9, 7, 7, 4] -> ?
Answer:
|
[1, 9, 9, 7, 7, 4] -> [9]
|
[1, 9, 9, 7, 7, 4]
|
[9]
|
c160
|
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 99 - M".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[61, 1, 14, 94, 7, 4, 0, 48, 34] -> [38, 98, 85, 5, 92, 95, 99, 51, 65]
[1, 25, 5, 16, 56, 0, 64, 9, 29, 49] -> [98, 74, 94, 83, 43, 99, 35, 90, 70, 50]
[56, 90, 41, 24, 4, 13, 94, 7, 6, 51] -> [43, 9, 58, 75, 95, 86, 5, 92, 93, 48]
[2, 80, 39, 33, 59, 0, 4] -> [97, 19, 60, 66, 40, 99, 95]
[37, 6, 11, 58, 12, 2, 8, 63] -> [62, 93, 88, 41, 87, 97, 91, 36]
[7, 5, 61, 63, 4, 75, 57, 37, 16] -> [92, 94, 38, 36, 95, 24, 42, 62, 83]
[75, 7, 1, 54, 5, 6] -> [24, 92, 98, 45, 94, 93]
[4, 66, 6, 8, 72, 7, 9] -> [95, 33, 93, 91, 27, 92, 90]
Questions:
[6, 78, 5, 7, 0, 77, 15, 60] -> ?
Answer:
|
[6, 78, 5, 7, 0, 77, 15, 60] -> [93, 21, 94, 92, 99, 22, 84, 39]
|
[6, 78, 5, 7, 0, 77, 15, 60]
|
[93, 21, 94, 92, 99, 22, 84, 39]
|
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] -> [1, 8]
[8, 1, 5, 2] -> [5, 2]
Questions:
[3, 2, 5, 4, 6] -> ?
Answer:
|
[3, 2, 5, 4, 6] -> [5, 4, 6]
|
[3, 2, 5, 4, 6]
|
[5, 4, 6]
|
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, 16, 44, 2, 83, 5, 88, 0, 32]
[18, 59, 10, 83, 86, 64, 0] -> [0, 64, 86, 83, 10, 59, 18]
[0, 42, 11, 2, 35] -> [35, 2, 11, 42, 0]
[39, 65, 0, 1, 49, 30] -> [30, 49, 1, 0, 65, 39]
Questions:
[54, 13, 77, 65, 43] -> ?
Answer:
|
[54, 13, 77, 65, 43] -> [43, 65, 77, 13, 54]
|
[54, 13, 77, 65, 43]
|
[43, 65, 77, 13, 54]
|
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, 0, 7, 3, 5, 9] -> [6, 4, 2, 1, 0, 7]
[1, 5, 6, 9, 0, 4, 8, 2, 3] -> [1, 5, 6, 9, 0, 4]
[0, 6, 1, 3, 8, 9, 7] -> [0, 6, 1, 3, 8, 9]
Questions:
[7] -> ?
Answer:
|
[7] -> [7]
|
[7]
|
[7]
|
c162
|
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 3 * M + 7".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 8, 1, 7, 1, 3] -> [31, 31, 10, 28, 10, 16]
[15, 6, 6, 16, 2, 6, 1, 6, 1, 15] -> [52, 25, 25, 55, 13, 25, 10, 25, 10, 52]
[6, 10, 0, 1, 10, 10, 8, 2, 6] -> [25, 37, 7, 10, 37, 37, 31, 13, 25]
[5, 4, 11, 16, 0, 8, 2] -> [22, 19, 40, 55, 7, 31, 13]
[4, 8, 10, 14, 0, 3, 6] -> [19, 31, 37, 49, 7, 16, 25]
[16, 9, 5, 4, 0, 7] -> [55, 34, 22, 19, 7, 28]
[1, 4, 4, 15, 1, 13, 1, 4, 7, 10] -> [10, 19, 19, 52, 10, 46, 10, 19, 28, 37]
[0, 9, 3, 3, 9, 9] -> [7, 34, 16, 16, 34, 34]
Questions:
[7, 18, 7, 15, 4, 4, 4, 18, 15, 18] -> ?
Answer:
|
[7, 18, 7, 15, 4, 4, 4, 18, 15, 18] -> [28, 61, 28, 52, 19, 19, 19, 61, 52, 61]
|
[7, 18, 7, 15, 4, 4, 4, 18, 15, 18]
|
[28, 61, 28, 52, 19, 19, 19, 61, 52, 61]
|
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, 1, 1, 3]
[76, 9, 27, 9] -> [1, 1, 2]
[69, 69, 50, 69, 69, 50] -> [2, 4]
[4, 74, 4, 58, 74, 58, 58, 4, 74] -> [3, 3, 3]
Questions:
[4, 4, 4, 4] -> ?
Answer:
|
[4, 4, 4, 4] -> [4]
|
[4, 4, 4, 4]
|
[4]
|
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, 9, 3, 5, 1]
[8, 7, 3] -> [8, 7, 3, 8, 7, 3]
[5, 2, 8, 0, 3, 1, 6] -> [5, 2, 8, 0, 3, 1, 6, 5, 2, 8, 0, 3, 1, 6]
[6] -> [6, 6]
[0, 6, 9, 8, 5, 2] -> [0, 6, 9, 8, 5, 2, 0, 6, 9, 8, 5, 2]
Questions:
[2, 3, 7] -> ?
Answer:
|
[2, 3, 7] -> [2, 3, 7, 2, 3, 7]
|
[2, 3, 7]
|
[2, 3, 7, 2, 3, 7]
|
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]
[7, 1] -> [7, 1, 3]
[4, 9, 1, 6, 0, 8] -> [4, 9, 1, 6, 0, 8, 3]
[0, 8] -> [0, 8, 3]
[3, 5, 7, 6, 9, 1, 8, 2, 4] -> [3, 5, 7, 6, 9, 1, 8, 2, 4, 3]
Questions:
[8, 2, 4, 0] -> ?
Answer:
|
[8, 2, 4, 0] -> [8, 2, 4, 0, 3]
|
[8, 2, 4, 0]
|
[8, 2, 4, 0, 3]
|
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] -> [7]
[71, 80] -> [2]
[86, 27, 53] -> [3]
Questions:
[56, 87, 2, 15] -> ?
Answer:
|
[56, 87, 2, 15] -> [4]
|
[56, 87, 2, 15]
|
[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, 0, 7] -> [49, 7, 40, 0, 73, 4, 4, 73, 0, 40, 7, 49]
[46, 59, 1, 76, 17, 8] -> [46, 8, 59, 17, 1, 76, 76, 1, 17, 59, 8, 46]
[94, 86, 36, 43, 8, 74] -> [94, 74, 86, 8, 36, 43, 43, 36, 8, 86, 74, 94]
[13, 76, 25, 8] -> [13, 8, 76, 25, 25, 76, 8, 13]
Questions:
[6, 11, 58, 99] -> ?
Answer:
|
[6, 11, 58, 99] -> [6, 99, 11, 58, 58, 11, 99, 6]
|
[6, 11, 58, 99]
|
[6, 99, 11, 58, 58, 11, 99, 6]
|
c063
|
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 N + 1 elements, N = element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 9, 3, 5, 2, 0, 6, 7, 4] -> [3, 5, 2, 0, 6, 7, 4]
[1, 2, 6, 9] -> [6, 9]
[9] -> []
[2, 9, 6, 0, 3, 5, 4, 7, 8, 1] -> [0, 3, 5, 4, 7, 8, 1]
[0, 5, 9, 6, 2] -> [5, 9, 6, 2]
[1, 4, 8, 5] -> [8, 5]
[0, 7] -> [7]
[0, 9, 6, 2, 3, 8] -> [9, 6, 2, 3, 8]
Questions:
[0, 4, 8, 3, 9, 2, 5] -> ?
Answer:
|
[0, 4, 8, 3, 9, 2, 5] -> [4, 8, 3, 9, 2, 5]
|
[0, 4, 8, 3, 9, 2, 5]
|
[4, 8, 3, 9, 2, 5]
|
c048
|
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 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 3, 8, 7, 9, 2, 5, 1, 0, 6] -> [4]
[7, 6, 5, 9, 0, 4, 2, 3] -> [7]
[9, 7, 1] -> [9]
[7, 8, 1, 9, 6, 2, 4, 5, 3] -> [7]
[9, 4, 0, 8, 6, 7, 5, 2, 3] -> [9]
[7, 2, 4, 5] -> [7]
[0, 5, 2, 8, 7, 6, 4, 1] -> [0]
[1, 8, 7, 9, 0, 3] -> [1]
Questions:
[6, 0, 9, 3, 8, 1, 4, 2, 5] -> ?
Answer:
|
[6, 0, 9, 3, 8, 1, 4, 2, 5] -> [6]
|
[6, 0, 9, 3, 8, 1, 4, 2, 5]
|
[6]
|
c139
|
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 the smallest and largest elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 60, 23, 4, 89, 0, 3, 9, 60, 77] -> [2, 60, 23, 4, 3, 9, 60, 77]
[72, 60, 6, 1, 27, 88, 8, 53, 90] -> [72, 60, 6, 27, 88, 8, 53]
[68, 5, 0, 10, 2, 68, 3] -> [5, 10, 2, 3]
[71, 6, 16, 19, 17, 81, 9, 60] -> [71, 16, 19, 17, 9, 60]
[29, 41, 3, 1, 6, 44, 53, 9, 28] -> [29, 41, 3, 6, 44, 9, 28]
[8, 15, 31, 48, 28, 5, 0, 70] -> [8, 15, 31, 48, 28, 5]
[14, 14, 14] -> []
[39, 39, 39, 5, 7, 11, 3, 35] -> [5, 7, 11, 35]
Questions:
[1, 96, 96, 8, 8, 1] -> ?
Answer:
|
[1, 96, 96, 8, 8, 1] -> [8, 8]
|
[1, 96, 96, 8, 8, 1]
|
[8, 8]
|
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:
[8, 1, 6] -> ?
Answer:
|
[8, 1, 6] -> [1, 6]
|
[8, 1, 6]
|
[1, 6]
|
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, 41, 2, 89]
[6, 7, 23, 2, 1, 8, 4, 4] -> [6, 7, 23, 2, 1, 4]
[3, 7, 86, 3, 3, 7, 3, 86, 86, 86] -> [3, 7, 86, 86, 86]
[2, 5, 3, 3, 37, 2, 3, 3, 1, 94] -> [2, 2, 3, 3, 1, 94]
[6, 7, 1, 40, 5, 8, 27, 89] -> [6, 7, 1, 40, 5, 89]
Questions:
[3, 6, 62, 56, 0, 41, 4] -> ?
Answer:
|
[3, 6, 62, 56, 0, 41, 4] -> [3, 6, 4]
|
[3, 6, 62, 56, 0, 41, 4]
|
[3, 6, 4]
|
c098
|
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 the index to every element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 83, 43, 53, 86, 69, 49, 75] -> [7, 85, 46, 57, 91, 75, 56, 83]
[9, 16, 28, 80] -> [10, 18, 31, 84]
[36, 73, 47, 13, 6, 8, 17, 2, 19, 71] -> [37, 75, 50, 17, 11, 14, 24, 10, 28, 81]
[3, 2, 47, 29, 9, 8, 0, 7, 75] -> [4, 4, 50, 33, 14, 14, 7, 15, 84]
[2, 26] -> [3, 28]
[0, 7, 1, 80, 4, 83, 46, 79] -> [1, 9, 4, 84, 9, 89, 53, 87]
[55, 2, 22, 33, 53, 20, 37] -> [56, 4, 25, 37, 58, 26, 44]
[16] -> [17]
Questions:
[45, 41, 10, 5, 61] -> ?
Answer:
|
[45, 41, 10, 5, 61] -> [46, 43, 13, 9, 66]
|
[45, 41, 10, 5, 61]
|
[46, 43, 13, 9, 66]
|
c244
|
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 3s".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[95, 5, 0, 7, 9, 99, 6, 8] -> [0]
[37, 81, 73, 4, 87, 9, 1, 93, 7] -> [0]
[8, 27, 4, 44, 65, 9, 3, 5, 7] -> [1]
[0, 3, 2, 7, 9, 4, 15, 64, 1, 6] -> [1]
[68, 1, 69, 32, 43, 8, 25, 6, 9] -> [0]
[1, 24, 83, 71, 50, 3, 2, 8, 12, 63] -> [1]
[3, 3, 3, 3, 3, 3, 3, 3, 3, 3] -> [10]
[3, 3, 3, 10, 46, 3, 3] -> [5]
Questions:
[3, 4, 3, 48, 3, 3, 76, 3, 3, 76] -> ?
Answer:
|
[3, 4, 3, 48, 3, 3, 76, 3, 3, 76] -> [6]
|
[3, 4, 3, 48, 3, 3, 76, 3, 3, 76]
|
[6]
|
c221
|
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 even elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[60, 6, 7, 47, 23, 1, 39, 13] -> [66]
[99, 8, 46, 6, 73, 47, 7, 4, 5] -> [64]
[6, 7, 1, 91, 21, 8, 20, 9, 18] -> [52]
[16, 8, 13, 6, 11, 75, 4, 58] -> [92]
[0, 37, 55, 3, 6, 15, 5, 2, 8] -> [16]
[87, 93, 9, 87, 2, 5, 5, 1] -> [2]
[44, 3, 39, 87, 5, 0, 6, 95] -> [50]
[6, 4, 12, 29, 5, 2, 38, 34, 17, 9] -> [96]
Questions:
[0, 1, 8, 6, 67, 97, 6, 45, 5] -> ?
Answer:
|
[0, 1, 8, 6, 67, 97, 6, 45, 5] -> [20]
|
[0, 1, 8, 6, 67, 97, 6, 45, 5]
|
[20]
|
c117
|
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 three elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 3, 5, 85, 89] -> [85, 89, 9, 3, 5]
[9, 7, 69, 88, 6] -> [88, 6, 9, 7, 69]
[7, 1, 4, 26, 58, 72, 2, 5, 67, 8] -> [26, 58, 72, 2, 5, 67, 8, 7, 1, 4]
[14, 6, 83, 86, 8, 61, 18] -> [86, 8, 61, 18, 14, 6, 83]
[70, 5, 77, 54] -> [54, 70, 5, 77]
[64, 0, 42, 49, 75, 48] -> [49, 75, 48, 64, 0, 42]
[2, 45, 32, 14] -> [14, 2, 45, 32]
[4, 9, 3, 2, 57] -> [2, 57, 4, 9, 3]
Questions:
[5, 0, 6, 12, 33, 7] -> ?
Answer:
|
[5, 0, 6, 12, 33, 7] -> [12, 33, 7, 5, 0, 6]
|
[5, 0, 6, 12, 33, 7]
|
[12, 33, 7, 5, 0, 6]
|
c181
|
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 the order of elements with even indices".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 21, 89, 0, 63, 27, 9, 70] -> [8, 70, 89, 27, 63, 0, 9, 21]
[5, 90, 38, 87, 53, 40, 3, 42, 2, 36] -> [5, 36, 38, 42, 53, 40, 3, 87, 2, 90]
[98, 9, 79, 8, 74, 80] -> [98, 80, 79, 8, 74, 9]
[8, 2, 16, 36, 60, 14] -> [8, 14, 16, 36, 60, 2]
[7, 12, 8, 0, 83, 72] -> [7, 72, 8, 0, 83, 12]
[27, 32, 3, 5, 94, 80] -> [27, 80, 3, 5, 94, 32]
[4, 76, 47, 75, 1, 0, 2, 6] -> [4, 6, 47, 0, 1, 75, 2, 76]
[97, 45, 46, 7, 51, 47, 38, 3, 0, 92] -> [97, 92, 46, 3, 51, 47, 38, 7, 0, 45]
Questions:
[2, 96, 98, 80, 7, 24, 4, 5, 82, 68] -> ?
Answer:
|
[2, 96, 98, 80, 7, 24, 4, 5, 82, 68] -> [2, 68, 98, 5, 7, 24, 4, 80, 82, 96]
|
[2, 96, 98, 80, 7, 24, 4, 5, 82, 68]
|
[2, 68, 98, 5, 7, 24, 4, 80, 82, 96]
|
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, 22, 50, 54, 61]
[1, 4, 4, 1, 3, 6, 3] -> [1, 5, 8, 14]
[13, 8, 2, 4, 9, 9, 9] -> [13, 21, 23, 27, 36]
[8, 0, 0, 15, 15, 3, 4] -> [8, 8, 23, 26, 30]
[0, 8, 9, 8, 8, 0, 6] -> [0, 8, 17, 23]
Questions:
[9, 8, 2, 8, 2, 2] -> ?
Answer:
|
[9, 8, 2, 8, 2, 2] -> [9, 17, 19]
|
[9, 8, 2, 8, 2, 2]
|
[9, 17, 19]
|
c217
|
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 by ones digits".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[46, 0, 9, 36] -> [0, 46, 36, 9]
[9, 7, 92, 23] -> [92, 23, 7, 9]
[88, 8, 5, 7, 2, 9, 4] -> [2, 4, 5, 7, 88, 8, 9]
[55, 31, 78, 70] -> [70, 31, 55, 78]
[48, 31, 26, 99, 86, 2] -> [31, 2, 26, 86, 48, 99]
[9, 7, 21, 0] -> [0, 21, 7, 9]
[5, 9, 98, 75, 73, 10] -> [10, 73, 5, 75, 98, 9]
[23, 90, 69, 67, 9] -> [90, 23, 67, 69, 9]
Questions:
[76, 0, 4, 78, 56] -> ?
Answer:
|
[76, 0, 4, 78, 56] -> [0, 4, 76, 56, 78]
|
[76, 0, 4, 78, 56]
|
[0, 4, 76, 56, 78]
|
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, 85, 56, 18]
[86, 1, 73, 8, 85, 9, 0, 42] -> [73, 8, 85, 9, 42]
[75, 7, 9, 5, 48, 2, 8, 21] -> [9, 48, 8, 21]
[29, 76, 62, 14, 4, 67, 89, 1, 88, 50] -> [62, 67, 50]
Questions:
[7, 1, 6, 21, 49, 6, 7, 3, 59, 8] -> ?
Answer:
|
[7, 1, 6, 21, 49, 6, 7, 3, 59, 8] -> [6, 6, 3]
|
[7, 1, 6, 21, 49, 6, 7, 3, 59, 8]
|
[6, 6, 3]
|
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:
[8, 0, 6, 4] -> ?
Answer:
|
[8, 0, 6, 4] -> [6]
|
[8, 0, 6, 4]
|
[6]
|
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, 2] -> [0, 3, 4, 6, 1, 8, 9, 7, 2]
[3, 5, 8, 4, 1, 0, 2, 7] -> [3, 5, 8, 4, 1, 0, 2, 7]
[9, 1, 8, 4, 2] -> [9, 1, 8, 4, 2]
[7] -> [7]
Questions:
[3] -> ?
Answer:
|
[3] -> [3]
|
[3]
|
[3]
|
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, 1, 6, 9, 8, 7] -> [1, 6, 9, 8, 7]
[0, 4, 8, 2, 7, 5, 6] -> [8, 2, 7, 5, 6]
Questions:
[1, 7, 4, 2, 3, 8, 9, 0, 5, 6] -> ?
Answer:
|
[1, 7, 4, 2, 3, 8, 9, 0, 5, 6] -> [4, 2, 3, 8, 9, 0, 5, 6]
|
[1, 7, 4, 2, 3, 8, 9, 0, 5, 6]
|
[4, 2, 3, 8, 9, 0, 5, 6]
|
c174
|
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 the first N elements, where N is the number of unique elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[70, 11, 70, 11, 11, 11, 11, 70] -> [70, 11]
[8, 84, 34, 9, 87, 9, 76] -> [8, 84, 34, 9, 87, 9]
[6, 9, 50, 59, 39, 6] -> [6, 9, 50, 59, 39]
[63, 58, 49, 85, 8, 63, 58, 63] -> [63, 58, 49, 85, 8]
[15, 15, 15, 15, 15, 77, 77, 6, 6] -> [15, 15, 15]
[31, 4, 98, 31, 49, 98, 4, 4, 4, 98] -> [31, 4, 98, 31]
[2, 79, 79, 79, 2, 4, 45] -> [2, 79, 79, 79]
[91, 91, 91, 91, 91, 91, 91] -> [91]
Questions:
[95, 29, 94, 95, 29, 95, 94] -> ?
Answer:
|
[95, 29, 94, 95, 29, 95, 94] -> [95, 29, 94]
|
[95, 29, 94, 95, 29, 95, 94]
|
[95, 29, 94]
|
c116
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reflect the input on itself".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[64, 2, 7, 83] -> [83, 7, 2, 64, 2, 7, 83]
[7, 5, 28, 89, 62] -> [62, 89, 28, 5, 7, 5, 28, 89, 62]
[87, 30, 3, 71, 83, 1, 6, 64] -> [64, 6, 1, 83, 71, 3, 30, 87, 30, 3, 71, 83, 1, 6, 64]
[79] -> [79]
[4, 23, 78] -> [78, 23, 4, 23, 78]
[11, 47] -> [47, 11, 47]
[] -> []
[67, 9, 15] -> [15, 9, 67, 9, 15]
Questions:
[5, 85, 8, 54] -> ?
Answer:
|
[5, 85, 8, 54] -> [54, 8, 85, 5, 85, 8, 54]
|
[5, 85, 8, 54]
|
[54, 8, 85, 5, 85, 8, 54]
|
c180
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "take the smallest element, append the second smallest, prepend the third smallest, append the fourth smallest, and so on".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[43, 15, 16, 18, 32, 22, 98, 3] -> [43, 22, 16, 3, 15, 18, 32, 98]
[6, 27, 75, 54, 73, 2, 85, 97, 7] -> [85, 73, 27, 6, 2, 7, 54, 75, 97]
[5, 27, 62, 54, 88, 8, 6, 68] -> [68, 54, 8, 5, 6, 27, 62, 88]
[0, 17, 45, 35, 5, 1, 6, 68, 60] -> [60, 35, 6, 1, 0, 5, 17, 45, 68]
[70, 81, 6, 46, 90, 9, 23, 20, 1, 4] -> [81, 46, 20, 6, 1, 4, 9, 23, 70, 90]
[43, 12, 6, 24, 1, 75] -> [43, 12, 1, 6, 24, 75]
[0, 23, 2, 7, 3, 6, 57] -> [23, 6, 2, 0, 3, 7, 57]
[0, 85, 36, 7, 4, 9, 13, 62] -> [62, 13, 7, 0, 4, 9, 36, 85]
Questions:
[49, 9, 95, 7, 30, 42, 5, 3, 0] -> ?
Answer:
|
[49, 9, 95, 7, 30, 42, 5, 3, 0] -> [49, 30, 7, 3, 0, 5, 9, 42, 95]
|
[49, 9, 95, 7, 30, 42, 5, 3, 0]
|
[49, 30, 7, 3, 0, 5, 9, 42, 95]
|
c116
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reflect the input on itself".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[64, 2, 7, 83] -> [83, 7, 2, 64, 2, 7, 83]
[7, 5, 28, 89, 62] -> [62, 89, 28, 5, 7, 5, 28, 89, 62]
[87, 30, 3, 71, 83, 1, 6, 64] -> [64, 6, 1, 83, 71, 3, 30, 87, 30, 3, 71, 83, 1, 6, 64]
[79] -> [79]
[4, 23, 78] -> [78, 23, 4, 23, 78]
[11, 47] -> [47, 11, 47]
[] -> []
[67, 9, 15] -> [15, 9, 67, 9, 15]
Questions:
[41, 28, 90] -> ?
Answer:
|
[41, 28, 90] -> [90, 28, 41, 28, 90]
|
[41, 28, 90]
|
[90, 28, 41, 28, 90]
|
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, 4, 3]
[4, 8, 1, 9, 3, 0, 2, 5, 6, 7] -> [4, 8, 1, 9, 3, 0, 2, 5, 6, 7, 7, 3, 8, 4, 3]
[2] -> [2, 7, 3, 8, 4, 3]
[1, 6, 7, 5, 2, 0] -> [1, 6, 7, 5, 2, 0, 7, 3, 8, 4, 3]
[3, 7, 1, 2, 6, 9, 0, 4, 8, 5] -> [3, 7, 1, 2, 6, 9, 0, 4, 8, 5, 7, 3, 8, 4, 3]
Questions:
[9, 0, 7] -> ?
Answer:
|
[9, 0, 7] -> [9, 0, 7, 7, 3, 8, 4, 3]
|
[9, 0, 7]
|
[9, 0, 7, 7, 3, 8, 4, 3]
|
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, 2, 5, 7, 6, 9, 8] -> [6]
Questions:
[8, 5, 3, 4, 1, 9, 7, 0, 2] -> ?
Answer:
|
[8, 5, 3, 4, 1, 9, 7, 0, 2] -> [2]
|
[8, 5, 3, 4, 1, 9, 7, 0, 2]
|
[2]
|
c178
|
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 followed by an even number".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 65, 97, 2, 5, 44] -> [97, 5]
[31, 0, 72, 85, 5, 74, 8] -> [31, 0, 5, 74]
[2, 81, 0, 20, 44, 67, 6, 56] -> [81, 0, 20, 67, 6]
[25, 19, 93, 73, 0, 32] -> [73, 0]
[5, 48, 89, 68, 30, 14, 42, 8, 90] -> [5, 89, 68, 30, 14, 42, 8]
[28, 62, 76, 48, 56, 12, 6, 72, 8, 76] -> [28, 62, 76, 48, 56, 12, 6, 72, 8]
[5, 4, 57, 95, 38, 6, 47, 96, 10] -> [5, 95, 38, 47, 96]
[3, 6, 86, 98, 67, 34, 1, 0] -> [3, 6, 86, 67, 1]
Questions:
[2, 0, 28, 9, 6, 8] -> ?
Answer:
|
[2, 0, 28, 9, 6, 8] -> [2, 0, 9, 6]
|
[2, 0, 28, 9, 6, 8]
|
[2, 0, 9, 6]
|
c162
|
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 3 * M + 7".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 8, 1, 7, 1, 3] -> [31, 31, 10, 28, 10, 16]
[15, 6, 6, 16, 2, 6, 1, 6, 1, 15] -> [52, 25, 25, 55, 13, 25, 10, 25, 10, 52]
[6, 10, 0, 1, 10, 10, 8, 2, 6] -> [25, 37, 7, 10, 37, 37, 31, 13, 25]
[5, 4, 11, 16, 0, 8, 2] -> [22, 19, 40, 55, 7, 31, 13]
[4, 8, 10, 14, 0, 3, 6] -> [19, 31, 37, 49, 7, 16, 25]
[16, 9, 5, 4, 0, 7] -> [55, 34, 22, 19, 7, 28]
[1, 4, 4, 15, 1, 13, 1, 4, 7, 10] -> [10, 19, 19, 52, 10, 46, 10, 19, 28, 37]
[0, 9, 3, 3, 9, 9] -> [7, 34, 16, 16, 34, 34]
Questions:
[1, 9, 14, 3, 7] -> ?
Answer:
|
[1, 9, 14, 3, 7] -> [10, 34, 49, 16, 28]
|
[1, 9, 14, 3, 7]
|
[10, 34, 49, 16, 28]
|
c184
|
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 odd elements with an even index".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 1, 48, 8, 2, 98, 13] -> [1]
[67, 78, 17, 5, 55, 3, 6, 4, 41] -> [5, 3]
[3, 5, 6, 21, 15, 77, 8, 86, 1] -> [5, 21, 77]
[90, 31, 8, 2, 7, 24] -> [31]
[9, 8, 0, 58, 21, 3] -> [3]
[5, 10, 96, 79, 1, 7, 9, 99] -> [79, 7, 99]
[9, 6, 2, 64, 15, 84] -> []
[3, 41, 7, 1, 11, 77, 9, 61, 4, 17] -> [41, 1, 77, 61, 17]
Questions:
[5, 56, 68, 6, 64, 4, 67, 19, 0] -> ?
Answer:
|
[5, 56, 68, 6, 64, 4, 67, 19, 0] -> [19]
|
[5, 56, 68, 6, 64, 4, 67, 19, 0]
|
[19]
|
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]
[8, 0, 6, 4, 7, 5, 3, 9, 2] -> [6]
Questions:
[9, 8, 1, 6, 3, 2, 0, 7] -> ?
Answer:
|
[9, 8, 1, 6, 3, 2, 0, 7] -> [1]
|
[9, 8, 1, 6, 3, 2, 0, 7]
|
[1]
|
c176
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "sums of each consecutive pair of elements, in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[69, 4, 67, 17, 56, 1] -> [73, 71, 84, 73, 57]
[32, 3, 12, 57, 27, 7, 6, 88, 8, 9] -> [35, 15, 69, 84, 34, 13, 94, 96, 17]
[59, 8, 2, 5, 71, 1] -> [67, 10, 7, 76, 72]
[26, 33, 6, 5, 85, 8, 3, 1, 0, 2] -> [59, 39, 11, 90, 93, 11, 4, 1, 2]
[62, 25, 5, 7, 42, 19] -> [87, 30, 12, 49, 61]
[0, 52, 9, 83, 4, 1] -> [52, 61, 92, 87, 5]
[7, 1, 0, 4, 6, 56] -> [8, 1, 4, 10, 62]
[51, 5, 3, 8, 36, 1, 2, 6, 2, 4] -> [56, 8, 11, 44, 37, 3, 8, 8, 6]
Questions:
[36, 6, 80, 8, 2, 14, 38] -> ?
Answer:
|
[36, 6, 80, 8, 2, 14, 38] -> [42, 86, 88, 10, 16, 52]
|
[36, 6, 80, 8, 2, 14, 38]
|
[42, 86, 88, 10, 16, 52]
|
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] -> [45, 45, 45]
[41, 20, 2, 93, 52, 65, 63, 47, 48] -> [41, 20, 2, 2, 52, 65, 63, 47, 48]
[1, 1, 1, 1, 1, 1] -> [1, 1, 1, 1, 1, 1]
[6, 16, 5, 4, 98, 15, 32, 89, 20] -> [6, 16, 5, 4, 4, 15, 32, 89, 20]
Questions:
[86, 86, 86, 86, 86, 86, 86, 86] -> ?
Answer:
|
[86, 86, 86, 86, 86, 86, 86, 86] -> [86, 86, 86, 86, 86, 86, 86, 86]
|
[86, 86, 86, 86, 86, 86, 86, 86]
|
[86, 86, 86, 86, 86, 86, 86, 86]
|
c166
|
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 ascending order by the sum of their digits".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[61, 49, 53, 70, 8, 14, 94, 7] -> [14, 61, 70, 7, 53, 8, 49, 94]
[98, 41, 5, 3, 20, 7, 4, 37, 55, 36] -> [20, 3, 4, 41, 5, 7, 36, 37, 55, 98]
[93, 70, 19, 5, 52, 8, 0, 61] -> [0, 5, 70, 52, 61, 8, 19, 93]
[37, 1, 43, 63, 93, 26, 4, 73] -> [1, 4, 43, 26, 63, 37, 73, 93]
[2, 65, 4, 7, 25, 98, 6] -> [2, 4, 6, 7, 25, 65, 98]
[43, 96, 0, 27, 85, 7] -> [0, 43, 7, 27, 85, 96]
[73, 93, 6, 25, 71, 9, 53, 84, 1, 3] -> [1, 3, 6, 25, 71, 53, 9, 73, 93, 84]
[2, 66, 6, 50, 21, 74, 14, 4, 1, 29] -> [1, 2, 21, 4, 50, 14, 6, 74, 29, 66]
Questions:
[94, 4, 5, 3, 91, 40] -> ?
Answer:
|
[94, 4, 5, 3, 91, 40] -> [3, 4, 40, 5, 91, 94]
|
[94, 4, 5, 3, 91, 40]
|
[3, 4, 40, 5, 91, 94]
|
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, 91, 9, 0, 96, 88, 50] -> [45, 0, 48, 44, 25]
[29, 5, 9, 2, 8, 88, 11, 71, 6, 45] -> [1, 4, 44, 3]
[31, 8, 32, 46, 13, 9, 81, 16, 42, 6] -> [4, 16, 23, 8, 21, 3]
[0, 1, 14, 55, 45, 86, 58, 21, 74] -> [0, 7, 43, 29, 37]
Questions:
[68, 7, 0, 49, 2, 56, 39, 38, 96, 27] -> ?
Answer:
|
[68, 7, 0, 49, 2, 56, 39, 38, 96, 27] -> [34, 0, 1, 28, 19, 48]
|
[68, 7, 0, 49, 2, 56, 39, 38, 96, 27]
|
[34, 0, 1, 28, 19, 48]
|
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] -> [1, 8]
[8, 1, 5, 2] -> [5, 2]
Questions:
[6, 2, 0, 7] -> ?
Answer:
|
[6, 2, 0, 7] -> [0, 7]
|
[6, 2, 0, 7]
|
[0, 7]
|
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] -> [32]
[4, 3, 8, 2] -> [4]
Questions:
[53, 19, 3, 5, 93, 2, 69] -> ?
Answer:
|
[53, 19, 3, 5, 93, 2, 69] -> [53]
|
[53, 19, 3, 5, 93, 2, 69]
|
[53]
|
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, 1, 6, 9, 8, 7] -> [1, 6, 9, 8, 7]
[0, 4, 8, 2, 7, 5, 6] -> [8, 2, 7, 5, 6]
Questions:
[4, 1, 6] -> ?
Answer:
|
[4, 1, 6] -> [6]
|
[4, 1, 6]
|
[6]
|
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, 8, 2, 7, 5, 4, 1, 6, 9]
[] -> []
[8, 4, 3] -> [8, 4, 3, 3]
[2, 4, 5, 3, 1, 7, 0, 8, 6] -> [2, 4, 5, 3, 1, 7, 0, 8, 6, 9]
[6, 1, 2, 0, 4, 3, 5, 7, 8] -> [6, 1, 2, 0, 4, 3, 5, 7, 8, 9]
Questions:
[3, 6, 7] -> ?
Answer:
|
[3, 6, 7] -> [3, 6, 7, 3]
|
[3, 6, 7]
|
[3, 6, 7, 3]
|
c148
|
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 each original element, in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 5, 4] -> [1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4]
[2, 5, 2, 5] -> [1, 2, 1, 2, 3, 4, 5, 1, 2, 1, 2, 3, 4, 5]
[1, 5, 3, 4] -> [1, 1, 2, 3, 4, 5, 1, 2, 3, 1, 2, 3, 4]
[3, 3, 1, 0] -> [1, 2, 3, 1, 2, 3, 1]
[2, 1, 1] -> [1, 2, 1, 1]
[5, 3, 1] -> [1, 2, 3, 4, 5, 1, 2, 3, 1]
[6, 3, 3] -> [1, 2, 3, 4, 5, 6, 1, 2, 3, 1, 2, 3]
[6, 4, 1] -> [1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 1]
Questions:
[4, 7, 4] -> ?
Answer:
|
[4, 7, 4] -> [1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4]
|
[4, 7, 4]
|
[1, 2, 3, 4, 1, 2, 3, 4, 5, 6, 7, 1, 2, 3, 4]
|
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, 58, 58] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[84, 84, 84] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[14] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[52, 57, 55, 51] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[62, 20, 8, 62, 56, 8, 3, 98, 66] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
Questions:
[27, 54, 27, 99, 87, 65, 49, 3] -> ?
Answer:
|
[27, 54, 27, 99, 87, 65, 49, 3] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
|
[27, 54, 27, 99, 87, 65, 49, 3]
|
[11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
|
c098
|
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 the index to every element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 83, 43, 53, 86, 69, 49, 75] -> [7, 85, 46, 57, 91, 75, 56, 83]
[9, 16, 28, 80] -> [10, 18, 31, 84]
[36, 73, 47, 13, 6, 8, 17, 2, 19, 71] -> [37, 75, 50, 17, 11, 14, 24, 10, 28, 81]
[3, 2, 47, 29, 9, 8, 0, 7, 75] -> [4, 4, 50, 33, 14, 14, 7, 15, 84]
[2, 26] -> [3, 28]
[0, 7, 1, 80, 4, 83, 46, 79] -> [1, 9, 4, 84, 9, 89, 53, 87]
[55, 2, 22, 33, 53, 20, 37] -> [56, 4, 25, 37, 58, 26, 44]
[16] -> [17]
Questions:
[78, 76, 49, 51, 5, 9] -> ?
Answer:
|
[78, 76, 49, 51, 5, 9] -> [79, 78, 52, 55, 10, 15]
|
[78, 76, 49, 51, 5, 9]
|
[79, 78, 52, 55, 10, 15]
|
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] -> [3, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[1, 1, 1, 1, 1, 1] -> [1, 1, 1, 1, 1, 1]
[0, 9, 5, 3, 8, 8] -> [0, 0, 0, 0, 0, 0]
Questions:
[1, 7, 2, 0, 33, 8, 3, 27, 7, 0] -> ?
Answer:
|
[1, 7, 2, 0, 33, 8, 3, 27, 7, 0] -> [1, 7, 14, 0, 0, 0, 0, 0, 0, 0]
|
[1, 7, 2, 0, 33, 8, 3, 27, 7, 0]
|
[1, 7, 14, 0, 0, 0, 0, 0, 0, 0]
|
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, 8, 26] -> [2, 7, 8]
[77, 5, 2, 1] -> [1, 2, 5]
[25, 2, 70, 85, 35] -> [2, 25, 35]
[4, 46, 20, 7, 41, 96, 42, 84] -> [4, 7, 20]
Questions:
[45, 2, 64] -> ?
Answer:
|
[45, 2, 64] -> [2, 45, 64]
|
[45, 2, 64]
|
[2, 45, 64]
|
c187
|
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, separated by 0".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 83, 59] -> [6, 83, 59, 0, 6, 83, 59]
[7, 8] -> [7, 8, 0, 7, 8]
[7, 71, 38, 20, 94] -> [7, 71, 38, 20, 94, 0, 7, 71, 38, 20, 94]
[66, 69, 30, 1, 77] -> [66, 69, 30, 1, 77, 0, 66, 69, 30, 1, 77]
[26] -> [26, 0, 26]
[44, 1, 6, 53] -> [44, 1, 6, 53, 0, 44, 1, 6, 53]
[75, 64, 53, 5, 2] -> [75, 64, 53, 5, 2, 0, 75, 64, 53, 5, 2]
[43, 14] -> [43, 14, 0, 43, 14]
Questions:
[8, 7, 52, 55, 40] -> ?
Answer:
|
[8, 7, 52, 55, 40] -> [8, 7, 52, 55, 40, 0, 8, 7, 52, 55, 40]
|
[8, 7, 52, 55, 40]
|
[8, 7, 52, 55, 40, 0, 8, 7, 52, 55, 40]
|
c084
|
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:
[8, 25, 3, 79, 57, 84, 4, 44, 94, 5] -> [4]
[2, 22, 23, 60, 37, 80, 9, 50] -> [9]
[48, 15, 38, 8, 85, 2, 4, 33, 99] -> [4]
[49, 99, 2, 59, 23, 85] -> []
[0, 18, 22, 9, 2, 20, 91] -> [91]
[76, 1, 93, 7, 10, 17, 66] -> [66]
[16, 8, 2, 90, 20, 60, 84, 28, 93, 1] -> [84]
[3, 99, 27, 40, 1, 8, 69, 6, 9, 22] -> [69]
Questions:
[31, 28, 88, 64, 8, 83] -> ?
Answer:
|
[31, 28, 88, 64, 8, 83] -> []
|
[31, 28, 88, 64, 8, 83]
|
[]
|
c053
|
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 2 with element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 7, 9, 8, 6, 4, 2, 3, 5, 1] -> [0, 0, 9, 8, 6, 4, 2, 3, 5, 1]
[7, 8, 6] -> [7, 7, 6]
[0, 7, 4, 9] -> [0, 0, 4, 9]
[8, 7] -> [8, 8]
[2, 7, 0, 3, 9, 4, 6, 5] -> [2, 2, 0, 3, 9, 4, 6, 5]
[8] -> [8, 8]
[8, 5, 7, 4] -> [8, 8, 7, 4]
[9, 6, 3] -> [9, 9, 3]
Questions:
[1, 8, 0, 2, 5, 9, 7, 6, 3] -> ?
Answer:
|
[1, 8, 0, 2, 5, 9, 7, 6, 3] -> [1, 1, 0, 2, 5, 9, 7, 6, 3]
|
[1, 8, 0, 2, 5, 9, 7, 6, 3]
|
[1, 1, 0, 2, 5, 9, 7, 6, 3]
|
c091
|
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 [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
[2, 91, 37, 38, 71, 5] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
[47, 47] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
[66, 84, 97, 78, 46, 13, 9] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
[72, 40, 72] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
[15, 3, 15, 55, 7, 15, 85, 74, 6] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
[33, 0, 3, 25] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
[5, 42, 7, 28] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
Questions:
[8, 93, 4, 64, 8, 4] -> ?
Answer:
|
[8, 93, 4, 64, 8, 4] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
|
[8, 93, 4, 64, 8, 4]
|
[81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
|
c174
|
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 the first N elements, where N is the number of unique elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[70, 11, 70, 11, 11, 11, 11, 70] -> [70, 11]
[8, 84, 34, 9, 87, 9, 76] -> [8, 84, 34, 9, 87, 9]
[6, 9, 50, 59, 39, 6] -> [6, 9, 50, 59, 39]
[63, 58, 49, 85, 8, 63, 58, 63] -> [63, 58, 49, 85, 8]
[15, 15, 15, 15, 15, 77, 77, 6, 6] -> [15, 15, 15]
[31, 4, 98, 31, 49, 98, 4, 4, 4, 98] -> [31, 4, 98, 31]
[2, 79, 79, 79, 2, 4, 45] -> [2, 79, 79, 79]
[91, 91, 91, 91, 91, 91, 91] -> [91]
Questions:
[77, 90, 90, 68, 90, 68, 77, 68] -> ?
Answer:
|
[77, 90, 90, 68, 90, 68, 77, 68] -> [77, 90, 90]
|
[77, 90, 90, 68, 90, 68, 77, 68]
|
[77, 90, 90]
|
c241
|
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 even elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[28, 4, 78, 6, 6, 28, 1, 78, 4, 70] -> [9]
[84, 83, 51, 5, 85, 77, 59] -> [1]
[28, 5, 4, 6, 57, 12, 90, 61, 50] -> [6]
[2, 6, 78, 87, 97, 93, 11, 0, 34] -> [5]
[5, 3, 1, 4, 25, 32, 8] -> [3]
[80, 9, 38, 1, 4, 5, 6, 72, 98] -> [6]
[18, 7, 53, 11, 6, 64, 8, 2, 68, 4] -> [7]
[3, 6, 4, 63, 89, 41, 9] -> [2]
Questions:
[73, 86, 99, 8, 65, 78, 0, 6] -> ?
Answer:
|
[73, 86, 99, 8, 65, 78, 0, 6] -> [5]
|
[73, 86, 99, 8, 65, 78, 0, 6]
|
[5]
|
c083
|
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:
[84, 3, 23, 69, 4, 1, 9] -> [9]
[7, 77, 5, 2, 99, 94, 36, 59] -> [36]
[3, 26, 7, 1, 0, 81, 5, 34, 8, 37] -> [5]
[2, 7, 8, 66, 4, 89, 9, 54, 3, 87] -> [9]
[45, 29, 91, 56, 58, 10, 5, 25] -> [5]
[0, 77, 3, 87, 85, 5, 93, 1, 29, 76] -> [93]
[9, 31, 3, 1, 47, 67, 4] -> [4]
[8, 5, 60, 67, 39, 4, 3, 90, 87] -> [3]
Questions:
[57, 9, 0, 16, 7, 2, 74, 1, 5, 49] -> ?
Answer:
|
[57, 9, 0, 16, 7, 2, 74, 1, 5, 49] -> [74]
|
[57, 9, 0, 16, 7, 2, 74, 1, 5, 49]
|
[74]
|
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, 7, 8, 6] -> [9, 3, 7, 8]
[2, 3, 5, 4, 7, 1] -> [4, 7]
[5, 9, 9, 3, 3, 9] -> []
[1, 2, 1, 4, 5, 5] -> [1, 4]
Questions:
[1, 4, 0, 2, 6, 3, 8] -> ?
Answer:
|
[1, 4, 0, 2, 6, 3, 8] -> [0, 2, 6, 3]
|
[1, 4, 0, 2, 6, 3, 8]
|
[0, 2, 6, 3]
|
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, 1, 68, 92]
[2, 0, 1, 76, 98, 33, 79] -> [0, 76, 98, 33, 79]
[3, 13, 13, 46, 2, 80, 45, 1] -> [13, 13, 2, 80, 45, 1]
[6, 53, 50, 71, 9, 13, 16, 8] -> [53, 50, 71, 9, 13, 8]
[4, 0, 9, 27, 2, 40, 56] -> [0, 9, 27, 40, 56]
Questions:
[2, 57, 16, 93, 1, 52, 6, 7, 19] -> ?
Answer:
|
[2, 57, 16, 93, 1, 52, 6, 7, 19] -> [57, 93, 1, 52, 6, 7, 19]
|
[2, 57, 16, 93, 1, 52, 6, 7, 19]
|
[57, 93, 1, 52, 6, 7, 19]
|
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, 2, 1, 4, 3, 8, 6, 0] -> [7, 5, 9, 2, 1, 4, 3, 8, 6, 0]
[6, 2, 4, 3] -> [6, 8, 2, 4, 3]
[0, 7, 1, 5, 4] -> [0, 5, 7, 1, 5, 4]
[4, 8, 9, 5, 1, 7, 6, 3, 0, 2] -> [4, 5, 8, 9, 5, 1, 7, 6, 3, 0, 2]
Questions:
[3, 8, 1, 5, 7, 4, 9] -> ?
Answer:
|
[3, 8, 1, 5, 7, 4, 9] -> [3, 5, 8, 1, 5, 7, 4, 9]
|
[3, 8, 1, 5, 7, 4, 9]
|
[3, 5, 8, 1, 5, 7, 4, 9]
|
c073
|
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 the index to every element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 5, 6] -> [1, 7, 9]
[1, 3] -> [2, 5]
[0, 1] -> [1, 3]
[8, 0, 6, 1] -> [9, 2, 9, 5]
[7] -> [8]
[5, 2, 6, 4] -> [6, 4, 9, 8]
[6, 0, 3, 1] -> [7, 2, 6, 5]
[5, 7, 6, 0, 2, 3] -> [6, 9, 9, 4, 7, 9]
Questions:
[1, 2, 0] -> ?
Answer:
|
[1, 2, 0] -> [2, 4, 3]
|
[1, 2, 0]
|
[2, 4, 3]
|
c157
|
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 0 if even or 1 if odd, in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[31, 46, 19, 20, 59, 8, 0] -> [31, 1, 46, 0, 19, 1, 20, 0, 59, 1, 8, 0, 0, 0]
[63, 41, 83, 75, 7, 40, 3] -> [63, 1, 41, 1, 83, 1, 75, 1, 7, 1, 40, 0, 3, 1]
[72, 24, 4, 3, 99, 74] -> [72, 0, 24, 0, 4, 0, 3, 1, 99, 1, 74, 0]
[8, 5, 39, 96, 30, 92, 2] -> [8, 0, 5, 1, 39, 1, 96, 0, 30, 0, 92, 0, 2, 0]
[3, 71, 9, 7, 26, 56] -> [3, 1, 71, 1, 9, 1, 7, 1, 26, 0, 56, 0]
[68, 5, 48, 72, 4, 90, 73] -> [68, 0, 5, 1, 48, 0, 72, 0, 4, 0, 90, 0, 73, 1]
[85, 21, 9, 3, 27, 78, 5] -> [85, 1, 21, 1, 9, 1, 3, 1, 27, 1, 78, 0, 5, 1]
[70, 1, 28, 0, 7, 17] -> [70, 0, 1, 1, 28, 0, 0, 0, 7, 1, 17, 1]
Questions:
[92, 0, 5, 71, 3, 98] -> ?
Answer:
|
[92, 0, 5, 71, 3, 98] -> [92, 0, 0, 0, 5, 1, 71, 1, 3, 1, 98, 0]
|
[92, 0, 5, 71, 3, 98]
|
[92, 0, 0, 0, 5, 1, 71, 1, 3, 1, 98, 0]
|
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] -> [81]
[1, 4, 49, 3, 2, 0, 4] -> [1]
[6, 6, 6, 17, 29, 4, 6, 32, 32] -> [17]
Questions:
[9, 7, 7, 54, 7, 54, 9, 7, 7, 7] -> ?
Answer:
|
[9, 7, 7, 54, 7, 54, 9, 7, 7, 7] -> [9]
|
[9, 7, 7, 54, 7, 54, 9, 7, 7, 7]
|
[9]
|
c140
|
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 2 with a 9".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[65, 43, 3, 9, 69, 17, 8, 7, 38, 58] -> [65, 9, 3, 9, 69, 17, 8, 7, 38, 58]
[36, 90] -> [36, 9]
[16, 8, 80, 5, 81] -> [16, 9, 80, 5, 81]
[67, 74, 8, 18, 60, 5, 4, 38, 26] -> [67, 9, 8, 18, 60, 5, 4, 38, 26]
[35, 51, 6] -> [35, 9, 6]
[9, 1] -> [9, 9]
[1, 30, 3, 76, 6, 5, 43, 79] -> [1, 9, 3, 76, 6, 5, 43, 79]
[49, 55, 78, 3] -> [49, 9, 78, 3]
Questions:
[61, 81, 27, 62] -> ?
Answer:
|
[61, 81, 27, 62] -> [61, 9, 27, 62]
|
[61, 81, 27, 62]
|
[61, 9, 27, 62]
|
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, 1, 9, 8, 6, 2] -> [3, 5, 9, 6]
[3, 2, 7, 5, 8, 1, 9] -> [3, 7, 8, 9]
[1, 7, 8, 6, 3, 9, 2, 4, 5] -> [1, 8, 3, 2, 5]
Questions:
[6] -> ?
Answer:
|
[6] -> [6]
|
[6]
|
[6]
|
c098
|
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 the index to every element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 83, 43, 53, 86, 69, 49, 75] -> [7, 85, 46, 57, 91, 75, 56, 83]
[9, 16, 28, 80] -> [10, 18, 31, 84]
[36, 73, 47, 13, 6, 8, 17, 2, 19, 71] -> [37, 75, 50, 17, 11, 14, 24, 10, 28, 81]
[3, 2, 47, 29, 9, 8, 0, 7, 75] -> [4, 4, 50, 33, 14, 14, 7, 15, 84]
[2, 26] -> [3, 28]
[0, 7, 1, 80, 4, 83, 46, 79] -> [1, 9, 4, 84, 9, 89, 53, 87]
[55, 2, 22, 33, 53, 20, 37] -> [56, 4, 25, 37, 58, 26, 44]
[16] -> [17]
Questions:
[5, 67] -> ?
Answer:
|
[5, 67] -> [6, 69]
|
[5, 67]
|
[6, 69]
|
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, 2, 7, 3, 6] -> [5, 7, 3, 6]
[0, 6] -> [0]
[1, 9, 6, 8, 0, 5] -> [1, 6, 8, 0, 5]
Questions:
[8, 7] -> ?
Answer:
|
[8, 7] -> [8]
|
[8, 7]
|
[8]
|
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, 77, 3] -> [5, 0, 7, 39, 50, 76, 6, 1, 77]
[3, 4, 7] -> [4, 7]
[3, 3, 7, 0, 3, 0] -> [7, 0, 0]
[17, 3, 3, 4, 39, 3] -> [17, 4, 39]
Questions:
[8, 20, 3, 8, 50, 2, 3, 75, 20, 50] -> ?
Answer:
|
[8, 20, 3, 8, 50, 2, 3, 75, 20, 50] -> [8, 20, 8, 50, 2, 75, 20, 50]
|
[8, 20, 3, 8, 50, 2, 3, 75, 20, 50]
|
[8, 20, 8, 50, 2, 75, 20, 50]
|
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] -> [85, 76, 66, 73, 89, 74, 64]
[63, 29, 50, 3, 4, 5] -> [63, 50]
[23, 86, 11] -> [86]
[8, 97, 89, 2, 95, 4, 68, 71, 61] -> [97, 89, 95, 68, 71, 61]
Questions:
[67, 5, 7, 85, 6] -> ?
Answer:
|
[67, 5, 7, 85, 6] -> [67, 85]
|
[67, 5, 7, 85, 6]
|
[67, 85]
|
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, 4, 8, 75, 2, 19]
[39, 61, 49, 63, 89] -> [39, 61, 49, 63, 61, 49, 63, 89]
[59, 65, 90, 9] -> [59, 65, 90, 65, 90, 9]
[2, 20, 8, 28, 17, 88] -> [2, 20, 8, 28, 17, 20, 8, 28, 17, 88]
Questions:
[45, 35, 81, 4, 31, 13] -> ?
Answer:
|
[45, 35, 81, 4, 31, 13] -> [45, 35, 81, 4, 31, 35, 81, 4, 31, 13]
|
[45, 35, 81, 4, 31, 13]
|
[45, 35, 81, 4, 31, 35, 81, 4, 31, 13]
|
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, 17, 12, 12, 12, 12, 69, 69, 69] -> [1, 1, 2, 1, 2, 3, 4, 2, 3, 4]
[3, 49, 49, 3, 49, 3, 3, 49] -> [1, 1, 2, 2, 3, 3, 4, 4]
[3, 3, 3, 3] -> [1, 2, 3, 4]
Questions:
[5, 5, 9, 5, 5, 9] -> ?
Answer:
|
[5, 5, 9, 5, 5, 9] -> [1, 2, 1, 3, 4, 2]
|
[5, 5, 9, 5, 5, 9]
|
[1, 2, 1, 3, 4, 2]
|
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, 9, 34] -> [9, 34]
[94, 9, 0, 30, 52, 30, 2, 0, 30, 9] -> [30, 9]
[7, 0, 6, 57, 0, 57] -> [57]
[81, 0, 81, 81, 0, 81] -> [81]
Questions:
[27, 2, 36, 7, 0, 3, 4, 4, 0, 49] -> ?
Answer:
|
[27, 2, 36, 7, 0, 3, 4, 4, 0, 49] -> [49]
|
[27, 2, 36, 7, 0, 3, 4, 4, 0, 49]
|
[49]
|
c193
|
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 in ascending order, minus an occurrence of both the smallest and largest elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[64, 85, 45, 1, 7, 52, 1, 60, 64, 6] -> [1, 6, 7, 45, 52, 60, 64, 64]
[52, 6, 54, 0, 5, 33, 8, 82, 92] -> [5, 6, 8, 33, 52, 54, 82]
[53, 50, 1, 7, 9, 74, 0, 25, 80, 4] -> [1, 4, 7, 9, 25, 50, 53, 74]
[66, 9, 2, 8, 8, 34, 3, 1, 0] -> [1, 2, 3, 8, 8, 9, 34]
[43, 0, 39, 4, 53, 57, 55, 52, 8] -> [4, 8, 39, 43, 52, 53, 55]
[0, 3, 2, 6, 53, 8, 20, 5, 37] -> [2, 3, 5, 6, 8, 20, 37]
[6, 8, 78, 9, 75, 1, 1, 17, 4, 2] -> [1, 2, 4, 6, 8, 9, 17, 75]
[19, 17, 77, 6, 7, 0, 52, 1, 76, 41] -> [1, 6, 7, 17, 19, 41, 52, 76]
Questions:
[5, 6, 1, 4, 9, 53, 46, 8, 89, 61] -> ?
Answer:
|
[5, 6, 1, 4, 9, 53, 46, 8, 89, 61] -> [4, 5, 6, 8, 9, 46, 53, 61]
|
[5, 6, 1, 4, 9, 53, 46, 8, 89, 61]
|
[4, 5, 6, 8, 9, 46, 53, 61]
|
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, 1, 9, 8, 6, 2] -> [3, 5, 9, 6]
[3, 2, 7, 5, 8, 1, 9] -> [3, 7, 8, 9]
[1, 7, 8, 6, 3, 9, 2, 4, 5] -> [1, 8, 3, 2, 5]
Questions:
[0, 3, 1, 6, 9, 7] -> ?
Answer:
|
[0, 3, 1, 6, 9, 7] -> [0, 1, 9]
|
[0, 3, 1, 6, 9, 7]
|
[0, 1, 9]
|
c173
|
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 N with the largest element in elements 1 through N".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 1, 2, 5, 8, 94] -> [6, 6, 6, 6, 8, 94]
[8, 9, 4, 0, 38, 5, 27, 92] -> [8, 9, 9, 9, 38, 38, 38, 92]
[53, 58, 77, 96, 8, 52, 31, 93] -> [53, 58, 77, 96, 96, 96, 96, 96]
[23, 74, 3, 98, 0, 50] -> [23, 74, 74, 98, 98, 98]
[3, 7, 45, 58, 22, 7] -> [3, 7, 45, 58, 58, 58]
[0, 6, 38, 72, 99, 7, 1, 28, 4] -> [0, 6, 38, 72, 99, 99, 99, 99, 99]
[1, 50, 81, 27, 67, 9, 72, 3] -> [1, 50, 81, 81, 81, 81, 81, 81]
[4, 65, 41, 59, 2, 9] -> [4, 65, 65, 65, 65, 65]
Questions:
[2, 44, 56, 25, 59, 84, 75, 4] -> ?
Answer:
|
[2, 44, 56, 25, 59, 84, 75, 4] -> [2, 44, 56, 56, 59, 84, 84, 84]
|
[2, 44, 56, 25, 59, 84, 75, 4]
|
[2, 44, 56, 56, 59, 84, 84, 84]
|
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, 47, 25, 5, 45, 25] -> [9, 7, 45]
[1, 1, 1, 1, 1, 1, 1] -> []
[0, 6, 0, 15, 1] -> [6, 15, 1]
Questions:
[7, 8, 7, 3, 5, 5] -> ?
Answer:
|
[7, 8, 7, 3, 5, 5] -> [8, 3]
|
[7, 8, 7, 3, 5, 5]
|
[8, 3]
|
c080
|
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 reverse order".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 8, 7, 0, 6, 5, 3, 4, 1] -> [1, 4, 3, 5, 6, 0, 7, 8, 2]
[9, 1, 2, 8, 0] -> [0, 8, 2, 1, 9]
[5, 3, 0, 7, 4, 6, 2, 9] -> [9, 2, 6, 4, 7, 0, 3, 5]
[1, 0, 7, 3, 9, 2] -> [2, 9, 3, 7, 0, 1]
[4, 0, 9] -> [9, 0, 4]
[4, 2] -> [2, 4]
[3, 6, 1, 7, 0, 4] -> [4, 0, 7, 1, 6, 3]
[1, 8, 0, 7, 5] -> [5, 7, 0, 8, 1]
Questions:
[9, 4, 5, 3, 2, 8, 7, 6, 0] -> ?
Answer:
|
[9, 4, 5, 3, 2, 8, 7, 6, 0] -> [0, 6, 7, 8, 2, 3, 5, 4, 9]
|
[9, 4, 5, 3, 2, 8, 7, 6, 0]
|
[0, 6, 7, 8, 2, 3, 5, 4, 9]
|
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] -> [96, 68, 17]
[9, 0, 24, 4, 50, 0, 7] -> [9, 78, 7]
[74, 9, 3, 0, 44, 54] -> [74, 56, 54]
[31, 7, 1, 62, 2, 7, 8, 6, 4] -> [31, 93, 4]
Questions:
[90, 19, 8, 1, 7, 0, 5] -> ?
Answer:
|
[90, 19, 8, 1, 7, 0, 5] -> [90, 35, 5]
|
[90, 19, 8, 1, 7, 0, 5]
|
[90, 35, 5]
|
c173
|
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 N with the largest element in elements 1 through N".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 1, 2, 5, 8, 94] -> [6, 6, 6, 6, 8, 94]
[8, 9, 4, 0, 38, 5, 27, 92] -> [8, 9, 9, 9, 38, 38, 38, 92]
[53, 58, 77, 96, 8, 52, 31, 93] -> [53, 58, 77, 96, 96, 96, 96, 96]
[23, 74, 3, 98, 0, 50] -> [23, 74, 74, 98, 98, 98]
[3, 7, 45, 58, 22, 7] -> [3, 7, 45, 58, 58, 58]
[0, 6, 38, 72, 99, 7, 1, 28, 4] -> [0, 6, 38, 72, 99, 99, 99, 99, 99]
[1, 50, 81, 27, 67, 9, 72, 3] -> [1, 50, 81, 81, 81, 81, 81, 81]
[4, 65, 41, 59, 2, 9] -> [4, 65, 65, 65, 65, 65]
Questions:
[1, 4, 7, 3, 30, 77] -> ?
Answer:
|
[1, 4, 7, 3, 30, 77] -> [1, 4, 7, 7, 30, 77]
|
[1, 4, 7, 3, 30, 77]
|
[1, 4, 7, 7, 30, 77]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.