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
|
---|---|---|---|---|---|
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:
[45, 8, 27, 6] -> ?
Answer:
|
[45, 8, 27, 6] -> []
|
[45, 8, 27, 6]
|
[]
|
c077
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "input length".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 4, 8, 5, 7] -> [5]
[9, 4, 5, 2, 0, 1, 8, 6, 3] -> [9]
[6, 4, 3] -> [3]
[6, 2, 1, 4, 3, 0, 5, 7] -> [8]
[1, 6, 4, 8, 7, 0, 5] -> [7]
[9, 8, 0, 7] -> [4]
[8, 4, 5, 3, 7, 2, 9, 0, 6] -> [9]
[0] -> [1]
Questions:
[9, 8, 1, 5] -> ?
Answer:
|
[9, 8, 1, 5] -> [4]
|
[9, 8, 1, 5]
|
[4]
|
c061
|
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 last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 1, 3, 2] -> [2]
[7, 1, 3, 8, 0, 9, 5, 4, 2] -> [2]
[4, 0, 6, 7, 1, 8] -> [8]
[6, 7, 2, 9, 8, 3, 1, 0, 4, 5] -> [5]
[5, 1] -> [1]
[0, 8, 4, 5] -> [5]
[5, 2, 0, 8, 1, 4, 9, 6, 3, 7] -> [7]
[5, 8, 9, 6, 7] -> [7]
Questions:
[7, 5, 8, 6, 3] -> ?
Answer:
|
[7, 5, 8, 6, 3] -> [3]
|
[7, 5, 8, 6, 3]
|
[3]
|
c204
|
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 0".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[77, 94, 8, 1, 2, 4, 0] -> [4]
[87, 0, 70, 0, 87] -> [87, 70]
[4, 0, 0, 9, 61, 44, 67, 9, 18, 41] -> [4, 0]
[3, 0, 0] -> [3, 0]
[8, 0, 0, 41] -> [8, 0]
[1, 1, 1, 0, 0, 0, 0, 0, 1] -> [1, 0, 0, 0, 0]
[2, 5, 26, 26, 10, 44, 79, 7, 92] -> []
[5, 78, 0, 0, 0] -> [78, 0, 0]
Questions:
[8, 3, 0, 5, 0] -> ?
Answer:
|
[8, 3, 0, 5, 0] -> [3, 5]
|
[8, 3, 0, 5, 0]
|
[3, 5]
|
c132
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 3".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 4, 44, 78] -> [1, 4, 78]
[7, 34, 4, 59, 45] -> [7, 34, 59, 45]
[6, 78, 9, 56, 10, 7, 8] -> [6, 78, 56, 10, 7, 8]
[64, 31, 6, 28, 46] -> [64, 31, 28, 46]
[42, 21, 31, 2, 7, 3, 1, 9] -> [42, 21, 2, 7, 3, 1, 9]
[31, 9, 3, 72] -> [31, 9, 72]
[8, 93, 1, 7, 81, 0] -> [8, 93, 7, 81, 0]
[44, 0, 91, 3, 50, 86] -> [44, 0, 3, 50, 86]
Questions:
[47, 8, 74, 4, 1, 64] -> ?
Answer:
|
[47, 8, 74, 4, 1, 64] -> [47, 8, 4, 1, 64]
|
[47, 8, 74, 4, 1, 64]
|
[47, 8, 4, 1, 64]
|
c122
|
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 penultimate element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[68, 58, 4, 55, 10, 27, 46, 16, 90, 2] -> [90]
[2, 66, 10, 90, 27, 6] -> [27]
[53, 0, 15, 9, 5, 65, 1, 63] -> [1]
[14, 79] -> [14]
[44, 0] -> [44]
[42, 55] -> [42]
[8, 79, 45, 7, 68, 75, 84, 9] -> [84]
[53, 49, 52, 1] -> [52]
Questions:
[71, 79, 7, 15, 4] -> ?
Answer:
|
[71, 79, 7, 15, 4] -> [15]
|
[71, 79, 7, 15, 4]
|
[15]
|
c232
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "mean value of the input".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[60, 45, 24] -> [43]
[72, 98, 43] -> [71]
[32, 76, 3] -> [37]
[13, 3, 6, 4] -> [6]
[8, 37, 46, 7] -> [24]
[3, 48, 8] -> [19]
[90, 4, 1, 13, 2] -> [22]
[4, 22, 93, 81, 8] -> [41]
Questions:
[59, 3, 64, 54, 82] -> ?
Answer:
|
[59, 3, 64, 54, 82] -> [52]
|
[59, 3, 64, 54, 82]
|
[52]
|
c110
|
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 largest elements in ascending order".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[] -> []
[61, 57, 55, 9, 39, 5] -> [55, 57, 61]
[9, 26, 5, 50, 52, 8, 1, 94] -> [50, 52, 94]
[6, 44] -> [6, 44]
[6, 59, 18, 77, 1] -> [18, 59, 77]
[11, 72, 48, 9, 95, 66, 2, 34, 8, 46] -> [66, 72, 95]
[64] -> [64]
[85, 39, 6, 2, 6, 27, 1, 80] -> [39, 80, 85]
Questions:
[10, 3, 3, 16, 92] -> ?
Answer:
|
[10, 3, 3, 16, 92] -> [10, 16, 92]
|
[10, 3, 3, 16, 92]
|
[10, 16, 92]
|
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, 36, 2, 6, 62] -> [1, 0, 0, 1, 0, 1, 0]
[21, 0, 9, 25, 44, 95, 65] -> [1, 1, 1, 0, 0, 0, 0]
[15, 63] -> [1, 1]
[4, 72, 9, 0, 8, 95, 5, 2, 15, 49] -> [0, 1, 1, 1, 0, 0, 0, 0, 1, 0]
Questions:
[10, 95, 77, 6, 96, 63, 8, 89, 9] -> ?
Answer:
|
[10, 95, 77, 6, 96, 63, 8, 89, 9] -> [0, 0, 0, 1, 1, 1, 0, 0, 1]
|
[10, 95, 77, 6, 96, 63, 8, 89, 9]
|
[0, 0, 0, 1, 1, 1, 0, 0, 1]
|
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] -> [6, 3, 54, 2, 67, 3, 83, 2]
[26, 26, 26, 26, 26, 26] -> [26, 6]
[83, 83, 9, 9, 9, 9] -> [83, 2, 9, 4]
[17, 92, 69, 17, 92, 69, 92, 17, 69, 17] -> [17, 4, 92, 3, 69, 3]
[6, 45, 6, 13, 18, 18, 45, 13, 18] -> [6, 2, 45, 2, 13, 2, 18, 3]
Questions:
[34, 19, 34, 34, 19, 19] -> ?
Answer:
|
[34, 19, 34, 34, 19, 19] -> [34, 3, 19, 3]
|
[34, 19, 34, 34, 19, 19]
|
[34, 3, 19, 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] -> [95, 95, 9, 8, 2]
[7, 9, 61, 37] -> [61, 37, 4, 7, 7]
[9, 67] -> [67, 67, 2, 9, 9]
[45, 1, 36] -> [45, 36, 3, 45, 1]
Questions:
[69, 8] -> ?
Answer:
|
[69, 8] -> [69, 8, 2, 69, 8]
|
[69, 8]
|
[69, 8, 2, 69, 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, 72, 58, 32, 30, 7, 5, 2, 0]
[4, 64, 39, 25, 83, 52, 5, 0, 88, 49] -> [88, 83, 64, 52, 49, 39, 25, 5, 4, 0]
[35, 80, 9, 22, 4, 57] -> [80, 57, 35, 22, 9, 4]
[4, 14, 1, 3, 75, 6] -> [75, 14, 6, 4, 3, 1]
[93, 93, 93, 93, 93, 93, 93, 93, 93] -> [93]
Questions:
[4, 63, 5, 9, 8, 56, 3, 61, 72, 76] -> ?
Answer:
|
[4, 63, 5, 9, 8, 56, 3, 61, 72, 76] -> [76, 72, 63, 61, 56, 9, 8, 5, 4, 3]
|
[4, 63, 5, 9, 8, 56, 3, 61, 72, 76]
|
[76, 72, 63, 61, 56, 9, 8, 5, 4, 3]
|
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] -> [4]
[2, 3, 2, 65, 65, 8, 8] -> [65, 65]
[5, 33, 12, 67, 7, 4] -> []
[6, 6, 7, 7, 6, 4, 4, 4, 6] -> [4]
Questions:
[2, 4, 7, 2, 17, 7, 0, 17, 0] -> ?
Answer:
|
[2, 4, 7, 2, 17, 7, 0, 17, 0] -> [2, 17, 7]
|
[2, 4, 7, 2, 17, 7, 0, 17, 0]
|
[2, 17, 7]
|
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:
[29, 89, 93, 49, 79, 37, 3] -> ?
Answer:
|
[29, 89, 93, 49, 79, 37, 3] -> [89, 93, 49, 79, 37]
|
[29, 89, 93, 49, 79, 37, 3]
|
[89, 93, 49, 79, 37]
|
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:
[1, 2, 52, 1, 6, 6, 1, 2, 6, 2] -> ?
Answer:
|
[1, 2, 52, 1, 6, 6, 1, 2, 6, 2] -> [61, 1, 2, 52, 6, 61]
|
[1, 2, 52, 1, 6, 6, 1, 2, 6, 2]
|
[61, 1, 2, 52, 6, 61]
|
c012
|
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 2 through 4".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0] -> []
[5, 0, 7] -> [0, 7]
[8, 2] -> [2]
[6] -> []
[7, 2] -> [2]
[] -> []
[2, 3, 4, 9, 5, 6, 1, 8, 0] -> [3, 4, 9]
[3, 4, 5, 1] -> [4, 5, 1]
Questions:
[0, 2, 9, 6, 4, 8, 5, 1] -> ?
Answer:
|
[0, 2, 9, 6, 4, 8, 5, 1] -> [2, 9, 6]
|
[0, 2, 9, 6, 4, 8, 5, 1]
|
[2, 9, 6]
|
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:
[66, 9, 11, 11, 66, 66, 66, 9] -> ?
Answer:
|
[66, 9, 11, 11, 66, 66, 66, 9] -> [86, 66, 9, 11, 86]
|
[66, 9, 11, 11, 66, 66, 66, 9]
|
[86, 66, 9, 11, 86]
|
c107
|
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".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[35, 70, 1, 35, 70, 9, 35, 26, 9] -> [35, 70, 1, 9, 26]
[17, 25, 25, 43, 8, 25, 43] -> [17, 25, 43, 8]
[96, 25, 25, 3, 81, 16, 16, 16, 81] -> [96, 25, 3, 81, 16]
[37, 11, 11, 3, 3, 87, 87, 11] -> [37, 11, 3, 87]
[] -> []
[51, 51, 51, 51] -> [51]
[75, 21, 21, 21, 75, 75] -> [75, 21]
[8, 8, 8, 8] -> [8]
Questions:
[5, 0, 9, 45, 46, 81, 5, 72, 9, 72] -> ?
Answer:
|
[5, 0, 9, 45, 46, 81, 5, 72, 9, 72] -> [5, 0, 9, 45, 46, 81, 72]
|
[5, 0, 9, 45, 46, 81, 5, 72, 9, 72]
|
[5, 0, 9, 45, 46, 81, 72]
|
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] -> []
Questions:
[4, 5, 6, 2] -> ?
Answer:
|
[4, 5, 6, 2] -> [6, 2]
|
[4, 5, 6, 2]
|
[6, 2]
|
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, 52, 4, 51, 96, 12] -> [9, 52, 96]
[4, 22, 2, 6, 1, 8, 57, 85, 26] -> [4, 22, 57, 85]
[7, 56, 2, 97, 4, 9, 1] -> [7, 56, 97]
[1, 1, 7, 5, 63, 42] -> [1, 7, 63]
Questions:
[4, 48, 0, 2, 19, 91, 5, 9, 90] -> ?
Answer:
|
[4, 48, 0, 2, 19, 91, 5, 9, 90] -> [4, 48, 91]
|
[4, 48, 0, 2, 19, 91, 5, 9, 90]
|
[4, 48, 91]
|
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, 2, 6, 5, 9]
[3, 4, 9] -> [3]
[6, 7, 8, 9, 3, 4, 0, 1, 5, 2] -> [8, 9, 3, 4, 0, 1, 5, 2]
[5, 2, 9, 6, 8, 1, 7] -> [5, 2, 9, 6, 8]
Questions:
[6, 0, 3, 8, 4, 5] -> ?
Answer:
|
[6, 0, 3, 8, 4, 5] -> [3, 8, 4, 5]
|
[6, 0, 3, 8, 4, 5]
|
[3, 8, 4, 5]
|
c130
|
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:
[3, 44, 96, 40, 40, 3, 8] -> [44, 96, 40]
[4, 6, 0, 5, 2, 8, 3, 7, 37, 24] -> [6, 0, 5, 2]
[3, 51, 21, 21, 2] -> [51, 21, 21]
[6, 1, 90, 77, 85, 7, 4, 9, 5] -> [1, 90, 77, 85, 7, 4]
[2, 55, 5, 88, 9, 3, 45] -> [55, 5]
[5, 6, 35, 3, 67, 41, 27, 82] -> [6, 35, 3, 67, 41]
[5, 35, 4, 0, 7, 3, 9, 2] -> [35, 4, 0, 7, 3]
[7, 9, 81, 2, 6, 1, 5, 6, 3] -> [9, 81, 2, 6, 1, 5, 6]
Questions:
[1, 7, 66, 6, 93, 4, 47] -> ?
Answer:
|
[1, 7, 66, 6, 93, 4, 47] -> [7]
|
[1, 7, 66, 6, 93, 4, 47]
|
[7]
|
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:
[8, 6, 4, 3] -> ?
Answer:
|
[8, 6, 4, 3] -> [9, 8, 6, 4, 3, 7]
|
[8, 6, 4, 3]
|
[9, 8, 6, 4, 3, 7]
|
c191
|
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 each element N times, where N is its tens digit, in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[79] -> [79, 79, 79, 79, 79, 79, 79]
[34, 1, 55, 4, 6, 9, 5, 59] -> [34, 34, 34, 55, 55, 55, 55, 55, 59, 59, 59, 59, 59]
[1, 16, 10, 65, 7, 4, 0, 9, 72, 3] -> [16, 10, 65, 65, 65, 65, 65, 65, 72, 72, 72, 72, 72, 72, 72]
[8, 24, 2, 47, 9, 5, 77, 0, 14] -> [24, 24, 47, 47, 47, 47, 77, 77, 77, 77, 77, 77, 77, 14]
[57] -> [57, 57, 57, 57, 57]
[93, 62] -> [93, 93, 93, 93, 93, 93, 93, 93, 93, 62, 62, 62, 62, 62, 62]
[33, 53, 3, 1, 45, 8] -> [33, 33, 33, 53, 53, 53, 53, 53, 45, 45, 45, 45]
[7, 85, 5, 6] -> [85, 85, 85, 85, 85, 85, 85, 85]
Questions:
[6, 0, 1, 5, 8, 82, 12, 38, 3] -> ?
Answer:
|
[6, 0, 1, 5, 8, 82, 12, 38, 3] -> [82, 82, 82, 82, 82, 82, 82, 82, 12, 38, 38, 38]
|
[6, 0, 1, 5, 8, 82, 12, 38, 3]
|
[82, 82, 82, 82, 82, 82, 82, 82, 12, 38, 38, 38]
|
c125
|
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 tens digit equals the tens digit of element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[59, 82, 59, 82, 9, 83] -> [59, 59]
[7, 9, 26, 5, 70, 6, 3] -> [7, 9, 5, 6, 3]
[23, 80, 23, 2, 1, 5, 77, 91] -> [23, 23]
[1, 9, 7, 78, 6, 5, 8, 0, 3, 4] -> [1, 9, 7, 6, 5, 8, 0, 3, 4]
[78, 78, 78, 66, 78] -> [78, 78, 78, 78]
[5, 8, 40, 6, 90, 2] -> [5, 8, 6, 2]
[3, 5, 95, 21, 0, 2, 3] -> [3, 5, 0, 2, 3]
[45, 62, 43, 73, 45, 52] -> [45, 43, 45]
Questions:
[36, 64, 4, 5, 92, 94, 98, 9, 37, 88] -> ?
Answer:
|
[36, 64, 4, 5, 92, 94, 98, 9, 37, 88] -> [36, 37]
|
[36, 64, 4, 5, 92, 94, 98, 9, 37, 88]
|
[36, 37]
|
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, 2, 6, 5, 9]
[3, 4, 9] -> [3]
[6, 7, 8, 9, 3, 4, 0, 1, 5, 2] -> [8, 9, 3, 4, 0, 1, 5, 2]
[5, 2, 9, 6, 8, 1, 7] -> [5, 2, 9, 6, 8]
Questions:
[8, 9, 4, 3, 1, 0] -> ?
Answer:
|
[8, 9, 4, 3, 1, 0] -> [4, 3, 1, 0]
|
[8, 9, 4, 3, 1, 0]
|
[4, 3, 1, 0]
|
c102
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the input".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[39, 8, 4] -> [39, 8, 4]
[3, 89] -> [3, 89]
[52, 67] -> [52, 67]
[96, 68] -> [96, 68]
[58, 53, 8, 59, 70] -> [58, 53, 8, 59, 70]
[93, 24, 9, 73, 71] -> [93, 24, 9, 73, 71]
[60, 92] -> [60, 92]
[83, 97, 29, 2, 8] -> [83, 97, 29, 2, 8]
Questions:
[1, 13, 9, 27, 36, 35] -> ?
Answer:
|
[1, 13, 9, 27, 36, 35] -> [1, 13, 9, 27, 36, 35]
|
[1, 13, 9, 27, 36, 35]
|
[1, 13, 9, 27, 36, 35]
|
c131
|
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 tens digit is even".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[80, 0, 97, 50, 3, 6] -> [80, 0, 3, 6]
[9, 7, 75, 26, 3, 8, 82, 0, 94] -> [9, 7, 26, 3, 8, 82, 0]
[36, 7] -> [7]
[7, 66, 0, 6, 42, 9, 52, 80, 23, 81] -> [7, 66, 0, 6, 42, 9, 80, 23, 81]
[0, 69, 9, 10, 1, 72, 6, 37] -> [0, 69, 9, 1, 6]
[55, 88, 39, 1, 95, 85, 6] -> [88, 1, 85, 6]
[53, 74, 15, 74, 53, 0, 15, 53, 53] -> [0]
[4, 69, 7, 50] -> [4, 69, 7]
Questions:
[30, 96, 54, 78, 2, 9, 78, 39, 1] -> ?
Answer:
|
[30, 96, 54, 78, 2, 9, 78, 39, 1] -> [2, 9, 1]
|
[30, 96, 54, 78, 2, 9, 78, 39, 1]
|
[2, 9, 1]
|
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:
[1, 7, 3, 0, 9, 32, 37] -> ?
Answer:
|
[1, 7, 3, 0, 9, 32, 37] -> [1, 1, 7, 1, 3, 1, 0, 0, 9, 1, 32, 0, 37, 1]
|
[1, 7, 3, 0, 9, 32, 37]
|
[1, 1, 7, 1, 3, 1, 0, 0, 9, 1, 32, 0, 37, 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, 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:
[8, 3, 8, 87, 0, 18, 81, 1, 71] -> ?
Answer:
|
[8, 3, 8, 87, 0, 18, 81, 1, 71] -> [8, 18]
|
[8, 3, 8, 87, 0, 18, 81, 1, 71]
|
[8, 18]
|
c046
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "prepend 7".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 0, 4, 1, 6, 8, 9] -> [7, 5, 0, 4, 1, 6, 8, 9]
[2, 6, 9, 8] -> [7, 2, 6, 9, 8]
[0, 6, 2, 4, 8, 1, 9] -> [7, 0, 6, 2, 4, 8, 1, 9]
[1, 8, 2, 4, 9, 0, 3] -> [7, 1, 8, 2, 4, 9, 0, 3]
[1, 9, 2, 0, 6, 4, 8, 5, 3] -> [7, 1, 9, 2, 0, 6, 4, 8, 5, 3]
[7, 4, 1, 5, 6, 9, 8, 0, 2, 3] -> [7, 7, 4, 1, 5, 6, 9, 8, 0, 2, 3]
[0, 8, 1, 3, 7, 6, 5, 9, 2] -> [7, 0, 8, 1, 3, 7, 6, 5, 9, 2]
[5, 3, 2, 6, 0, 4, 8, 7] -> [7, 5, 3, 2, 6, 0, 4, 8, 7]
Questions:
[4, 6] -> ?
Answer:
|
[4, 6] -> [7, 4, 6]
|
[4, 6]
|
[7, 4, 6]
|
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, 4, 9, 0] -> ?
Answer:
|
[3, 8, 1, 4, 9, 0] -> [3, 5, 8, 1, 4, 9, 0]
|
[3, 8, 1, 4, 9, 0]
|
[3, 5, 8, 1, 4, 9, 0]
|
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:
[31, 31, 76, 31, 31, 34, 34] -> ?
Answer:
|
[31, 31, 76, 31, 31, 34, 34] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
|
[31, 31, 76, 31, 31, 34, 34]
|
[81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
|
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:
[3, 81, 2, 86, 4, 83, 0, 6, 46] -> ?
Answer:
|
[3, 81, 2, 86, 4, 83, 0, 6, 46] -> [3, 81, 2, 0, 4, 83, 0, 6, 46]
|
[3, 81, 2, 86, 4, 83, 0, 6, 46]
|
[3, 81, 2, 0, 4, 83, 0, 6, 46]
|
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:
[1, 2, 6, 0, 9, 3] -> ?
Answer:
|
[1, 2, 6, 0, 9, 3] -> [1, 5, 2, 6, 0, 9, 3]
|
[1, 2, 6, 0, 9, 3]
|
[1, 5, 2, 6, 0, 9, 3]
|
c118
|
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 N elements, N = last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 0, 6, 2, 3] -> [2, 3, 5, 0, 6]
[23, 17, 1, 9, 7, 5, 2] -> [1, 9, 7, 5, 2, 23, 17]
[14, 61, 9, 17, 3] -> [17, 3, 14, 61, 9]
[64, 4, 1] -> [4, 1, 64]
[24, 37, 9, 5, 17, 1] -> [37, 9, 5, 17, 1, 24]
[75, 0, 45, 5, 3, 2] -> [45, 5, 3, 2, 75, 0]
[8, 9, 1] -> [9, 1, 8]
[42, 1, 42, 42, 18, 42, 1] -> [1, 42, 42, 18, 42, 1, 42]
Questions:
[7, 9, 63, 1] -> ?
Answer:
|
[7, 9, 63, 1] -> [9, 63, 1, 7]
|
[7, 9, 63, 1]
|
[9, 63, 1, 7]
|
c200
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "tens digits of the elements in ascending order".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 1, 14, 28, 78, 53, 9] -> [0, 0, 0, 1, 2, 5, 7]
[7, 67, 48, 6, 92, 0, 9, 79] -> [0, 0, 0, 0, 4, 6, 7, 9]
[79, 87, 57] -> [5, 7, 8]
[69, 84, 8, 36, 15] -> [0, 1, 3, 6, 8]
[12, 66, 98, 37] -> [1, 3, 6, 9]
[1, 47, 84] -> [0, 4, 8]
[66, 10, 74, 56] -> [1, 5, 6, 7]
[79, 7, 90, 76, 0, 1] -> [0, 0, 0, 7, 7, 9]
Questions:
[56, 48, 7] -> ?
Answer:
|
[56, 48, 7] -> [0, 4, 5]
|
[56, 48, 7]
|
[0, 4, 5]
|
c102
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the input".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[39, 8, 4] -> [39, 8, 4]
[3, 89] -> [3, 89]
[52, 67] -> [52, 67]
[96, 68] -> [96, 68]
[58, 53, 8, 59, 70] -> [58, 53, 8, 59, 70]
[93, 24, 9, 73, 71] -> [93, 24, 9, 73, 71]
[60, 92] -> [60, 92]
[83, 97, 29, 2, 8] -> [83, 97, 29, 2, 8]
Questions:
[27, 0, 6, 1, 76, 61] -> ?
Answer:
|
[27, 0, 6, 1, 76, 61] -> [27, 0, 6, 1, 76, 61]
|
[27, 0, 6, 1, 76, 61]
|
[27, 0, 6, 1, 76, 61]
|
c192
|
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 its tens digit".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[58, 5, 53, 1] -> [5, 0, 5, 0]
[5, 18, 73, 61, 74, 69] -> [0, 1, 7, 6, 7, 6]
[5, 4, 19, 74, 2, 7, 32, 31, 8] -> [0, 0, 1, 7, 0, 0, 3, 3, 0]
[96, 50, 98, 92, 70] -> [9, 5, 9, 9, 7]
[66, 85, 7, 68, 29, 97, 65, 20] -> [6, 8, 0, 6, 2, 9, 6, 2]
[56, 62] -> [5, 6]
[3, 36, 67, 6, 40, 72, 95] -> [0, 3, 6, 0, 4, 7, 9]
[42] -> [4]
Questions:
[4, 79, 8, 6, 97, 3, 80, 1, 73, 33] -> ?
Answer:
|
[4, 79, 8, 6, 97, 3, 80, 1, 73, 33] -> [0, 7, 0, 0, 9, 0, 8, 0, 7, 3]
|
[4, 79, 8, 6, 97, 3, 80, 1, 73, 33]
|
[0, 7, 0, 0, 9, 0, 8, 0, 7, 3]
|
c110
|
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 largest elements in ascending order".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[] -> []
[61, 57, 55, 9, 39, 5] -> [55, 57, 61]
[9, 26, 5, 50, 52, 8, 1, 94] -> [50, 52, 94]
[6, 44] -> [6, 44]
[6, 59, 18, 77, 1] -> [18, 59, 77]
[11, 72, 48, 9, 95, 66, 2, 34, 8, 46] -> [66, 72, 95]
[64] -> [64]
[85, 39, 6, 2, 6, 27, 1, 80] -> [39, 80, 85]
Questions:
[33, 0] -> ?
Answer:
|
[33, 0] -> [0, 33]
|
[33, 0]
|
[0, 33]
|
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:
[4, 4, 7, 6, 49, 2, 0, 12] -> ?
Answer:
|
[4, 4, 7, 6, 49, 2, 0, 12] -> [2, 0, 12]
|
[4, 4, 7, 6, 49, 2, 0, 12]
|
[2, 0, 12]
|
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, 23, 33, 76, 58, 90, 8]
[7, 16, 60, 34, 58, 73, 0, 79, 86] -> [92, 63, 34, 18, 55, 7, 16, 60, 34, 58, 73, 0, 79, 86]
[57, 9, 33, 52, 4, 3, 0, 39] -> [92, 63, 34, 18, 55, 57, 9, 33, 52, 4, 3, 0, 39]
[87, 12, 50, 66, 64] -> [92, 63, 34, 18, 55, 87, 12, 50, 66, 64]
[41, 35, 4, 3, 25, 47, 88, 98, 0] -> [92, 63, 34, 18, 55, 41, 35, 4, 3, 25, 47, 88, 98, 0]
[47, 5, 57] -> [92, 63, 34, 18, 55, 47, 5, 57]
Questions:
[1, 3, 54] -> ?
Answer:
|
[1, 3, 54] -> [92, 63, 34, 18, 55, 1, 3, 54]
|
[1, 3, 54]
|
[92, 63, 34, 18, 55, 1, 3, 54]
|
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:
[22, 3, 5] -> ?
Answer:
|
[22, 3, 5] -> [22, 5, 3, 3, 5, 22]
|
[22, 3, 5]
|
[22, 5, 3, 3, 5, 22]
|
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, 82, 93, 42, 38, 7, 5] -> [65, 38, 7, 5]
[59, 8, 86, 6, 96, 16, 4] -> [59, 16, 4]
[96, 2, 44, 1, 35, 4] -> [96, 4]
[87, 83, 3, 0, 19, 14, 9, 99, 61, 5] -> [87, 14, 9, 99, 61, 5]
Questions:
[5, 55, 73, 84, 50, 10, 62, 49] -> ?
Answer:
|
[5, 55, 73, 84, 50, 10, 62, 49] -> [5, 10, 62, 49]
|
[5, 55, 73, 84, 50, 10, 62, 49]
|
[5, 10, 62, 49]
|
c145
|
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 element with element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[89, 0, 73] -> [89, 89, 89]
[57, 0, 4, 9, 6, 97, 7, 2, 48, 77] -> [57, 57, 57, 57, 57, 57, 57, 57, 57, 57]
[63, 6] -> [63, 63]
[50, 1, 59, 28] -> [50, 50, 50, 50]
[18, 9, 1, 38, 8] -> [18, 18, 18, 18, 18]
[8, 0, 4] -> [8, 8, 8]
[] -> []
[30, 39, 84, 7, 0, 1] -> [30, 30, 30, 30, 30, 30]
Questions:
[73, 51, 2, 36, 40, 3, 81, 25] -> ?
Answer:
|
[73, 51, 2, 36, 40, 3, 81, 25] -> [73, 73, 73, 73, 73, 73, 73, 73]
|
[73, 51, 2, 36, 40, 3, 81, 25]
|
[73, 73, 73, 73, 73, 73, 73, 73]
|
c246
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of unique elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[34, 44, 0, 2, 3, 5, 8, 98, 9, 73] -> [10]
[4, 66, 92, 99, 23, 7, 19, 5, 56, 91] -> [10]
[31, 3, 40, 34, 9, 0, 67, 1] -> [8]
[21, 30, 8, 79, 51, 0, 84, 49, 15] -> [9]
[53, 39, 61, 7, 97, 2, 4, 5, 81] -> [9]
[78, 81, 67, 27, 3, 63, 10, 69, 60, 39] -> [10]
[2, 9, 48, 44, 93, 0, 6, 8, 97, 24] -> [10]
[2, 0, 78, 30, 7, 9, 28, 62, 83, 5] -> [10]
Questions:
[83, 5, 45, 71, 75, 58, 1, 9, 8] -> ?
Answer:
|
[83, 5, 45, 71, 75, 58, 1, 9, 8] -> [9]
|
[83, 5, 45, 71, 75, 58, 1, 9, 8]
|
[9]
|
c223
|
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 digits of each element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[53, 23, 42] -> [35, 32, 24]
[17, 4, 59, 58, 9, 69, 63, 13, 22] -> [71, 40, 95, 85, 90, 96, 36, 31, 22]
[32, 80, 94, 8, 25, 34, 9, 0] -> [23, 8, 49, 80, 52, 43, 90, 0]
[52, 59, 77, 88, 32] -> [25, 95, 77, 88, 23]
[2, 74, 54, 99, 36, 57, 4, 0] -> [20, 47, 45, 99, 63, 75, 40, 0]
[34, 12, 92, 7, 50, 87, 3, 0, 17, 74] -> [43, 21, 29, 70, 5, 78, 30, 0, 71, 47]
[12, 85, 66, 41, 5, 4, 36] -> [21, 58, 66, 14, 50, 40, 63]
[20, 75, 47, 7, 51, 2, 23, 40, 19, 36] -> [2, 57, 74, 70, 15, 20, 32, 4, 91, 63]
Questions:
[57, 98, 16, 2, 29, 0, 54, 48, 37] -> ?
Answer:
|
[57, 98, 16, 2, 29, 0, 54, 48, 37] -> [75, 89, 61, 20, 92, 0, 45, 84, 73]
|
[57, 98, 16, 2, 29, 0, 54, 48, 37]
|
[75, 89, 61, 20, 92, 0, 45, 84, 73]
|
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:
[62, 95, 40, 46, 4] -> ?
Answer:
|
[62, 95, 40, 46, 4] -> [4, 46, 40, 95, 62, 95, 40, 46, 4]
|
[62, 95, 40, 46, 4]
|
[4, 46, 40, 95, 62, 95, 40, 46, 4]
|
c071
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "add 2 to every element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 6] -> [2, 8]
[0, 4, 6, 2, 3, 1] -> [2, 6, 8, 4, 5, 3]
[2] -> [4]
[3, 6, 5, 0, 1, 2] -> [5, 8, 7, 2, 3, 4]
[1, 6] -> [3, 8]
[1, 2] -> [3, 4]
[1] -> [3]
[5, 3, 0, 1] -> [7, 5, 2, 3]
Questions:
[3, 5, 4] -> ?
Answer:
|
[3, 5, 4] -> [5, 7, 6]
|
[3, 5, 4]
|
[5, 7, 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:
[29, 2, 52, 91, 7, 9, 87] -> ?
Answer:
|
[29, 2, 52, 91, 7, 9, 87] -> [87, 9, 7, 91, 52, 2, 29]
|
[29, 2, 52, 91, 7, 9, 87]
|
[87, 9, 7, 91, 52, 2, 29]
|
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:
[67, 8, 67, 8, 8, 67, 67] -> ?
Answer:
|
[67, 8, 67, 8, 8, 67, 67] -> [1, 1, 2, 2, 3, 3, 4]
|
[67, 8, 67, 8, 8, 67, 67]
|
[1, 1, 2, 2, 3, 3, 4]
|
c147
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "each element, followed by its original index".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[39, 5, 60, 6, 16, 7, 26] -> [39, 1, 5, 2, 60, 3, 6, 4, 16, 5, 7, 6, 26, 7]
[90, 9, 6, 67, 0] -> [90, 1, 9, 2, 6, 3, 67, 4, 0, 5]
[8, 52, 70] -> [8, 1, 52, 2, 70, 3]
[54, 17, 29, 22] -> [54, 1, 17, 2, 29, 3, 22, 4]
[72, 18, 4] -> [72, 1, 18, 2, 4, 3]
[79, 3] -> [79, 1, 3, 2]
[8, 9, 0, 43, 61, 1] -> [8, 1, 9, 2, 0, 3, 43, 4, 61, 5, 1, 6]
[69] -> [69, 1]
Questions:
[1, 97, 81, 87] -> ?
Answer:
|
[1, 97, 81, 87] -> [1, 1, 97, 2, 81, 3, 87, 4]
|
[1, 97, 81, 87]
|
[1, 1, 97, 2, 81, 3, 87, 4]
|
c250
|
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; concatenate reverse of each sublist".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[57, 57, 33, 33, 0, 57, 33, 0, 6] -> [33, 33, 57, 57, 33, 57, 6]
[7, 0, 0, 93, 4, 9, 9, 96, 71] -> [7, 71, 96, 9, 9, 4, 93]
[6, 0, 90, 6, 0, 6] -> [6, 6, 90, 6]
[9, 78, 7, 0, 7, 78, 0, 9, 7] -> [7, 78, 9, 78, 7, 7, 9]
[68, 91, 91, 3, 1, 49, 98, 70, 7] -> [7, 70, 98, 49, 1, 3, 91, 91, 68]
[27, 95, 2, 95, 46, 0, 7, 4, 17, 47] -> [46, 95, 2, 95, 27, 47, 17, 4, 7]
[93, 4, 35, 62, 19, 10, 87, 15, 9, 15] -> [15, 9, 15, 87, 10, 19, 62, 35, 4, 93]
[8, 6, 0, 6, 5, 0, 82, 5, 6, 0] -> [6, 8, 5, 6, 6, 5, 82]
Questions:
[92, 7, 3, 0, 4, 6, 0, 5, 7] -> ?
Answer:
|
[92, 7, 3, 0, 4, 6, 0, 5, 7] -> [3, 7, 92, 6, 4, 7, 5]
|
[92, 7, 3, 0, 4, 6, 0, 5, 7]
|
[3, 7, 92, 6, 4, 7, 5]
|
c072
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repeat every element 2 times in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 6, 0, 2, 7] -> [1, 1, 6, 6, 0, 0, 2, 2, 7, 7]
[8, 1, 7, 4, 2] -> [8, 8, 1, 1, 7, 7, 4, 4, 2, 2]
[9, 4, 0, 1, 2, 6] -> [9, 9, 4, 4, 0, 0, 1, 1, 2, 2, 6, 6]
[3, 8, 9, 5, 1, 6, 0] -> [3, 3, 8, 8, 9, 9, 5, 5, 1, 1, 6, 6, 0, 0]
[8, 1, 3, 9] -> [8, 8, 1, 1, 3, 3, 9, 9]
[9, 6, 8, 1, 2, 5] -> [9, 9, 6, 6, 8, 8, 1, 1, 2, 2, 5, 5]
[3, 1] -> [3, 3, 1, 1]
[3] -> [3, 3]
Questions:
[4, 9] -> ?
Answer:
|
[4, 9] -> [4, 4, 9, 9]
|
[4, 9]
|
[4, 4, 9, 9]
|
c146
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "absolute difference of each consecutive pair, in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[93, 5] -> [88]
[1, 96, 12, 76, 6, 51, 38, 5, 25, 88] -> [95, 84, 64, 70, 45, 13, 33, 20, 63]
[1, 17, 3, 96, 5] -> [16, 14, 93, 91]
[70, 92, 34] -> [22, 58]
[89, 53, 20, 48, 2] -> [36, 33, 28, 46]
[21, 4, 6, 82, 1, 9, 2] -> [17, 2, 76, 81, 8, 7]
[0, 93, 7, 72, 35, 3, 10, 36] -> [93, 86, 65, 37, 32, 7, 26]
[55, 43, 19] -> [12, 24]
Questions:
[17, 67, 94, 49, 6, 60, 2] -> ?
Answer:
|
[17, 67, 94, 49, 6, 60, 2] -> [50, 27, 45, 43, 54, 58]
|
[17, 67, 94, 49, 6, 60, 2]
|
[50, 27, 45, 43, 54, 58]
|
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, 1, 5, 9, 6, 5, 1] -> [8, 2, 7, 0, 3]
[6, 1, 9, 5, 0, 4] -> [8, 2, 7, 0, 3]
[1, 1, 1, 6, 5, 6, 1, 5] -> [8, 2, 7, 0, 3]
Questions:
[4, 6, 1, 1, 4, 6, 6] -> ?
Answer:
|
[4, 6, 1, 1, 4, 6, 6] -> [8, 2, 7, 0, 3]
|
[4, 6, 1, 1, 4, 6, 6]
|
[8, 2, 7, 0, 3]
|
c031
|
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 whichever are equal: the two elements or the last two".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 0, 3, 8, 7, 1, 4, 9, 1, 5] -> [3, 8, 7, 1, 4, 9, 1, 5]
[0, 0, 1, 5, 7, 2, 9, 4, 3] -> [1, 5, 7, 2, 9, 4, 3]
[2, 2, 7, 9, 1, 5, 9, 8, 0, 3] -> [7, 9, 1, 5, 9, 8, 0, 3]
[3, 8, 5, 1, 1] -> [3, 8, 5]
[2, 1, 4, 3, 9, 0, 0] -> [2, 1, 4, 3, 9]
[9, 7, 9, 9] -> [9, 7]
[7, 7, 5, 1, 9, 4, 3, 2] -> [5, 1, 9, 4, 3, 2]
[8, 7, 7] -> [8]
Questions:
[2, 6, 6, 2, 2] -> ?
Answer:
|
[2, 6, 6, 2, 2] -> [2, 6, 6]
|
[2, 6, 6, 2, 2]
|
[2, 6, 6]
|
c118
|
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 N elements, N = last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 0, 6, 2, 3] -> [2, 3, 5, 0, 6]
[23, 17, 1, 9, 7, 5, 2] -> [1, 9, 7, 5, 2, 23, 17]
[14, 61, 9, 17, 3] -> [17, 3, 14, 61, 9]
[64, 4, 1] -> [4, 1, 64]
[24, 37, 9, 5, 17, 1] -> [37, 9, 5, 17, 1, 24]
[75, 0, 45, 5, 3, 2] -> [45, 5, 3, 2, 75, 0]
[8, 9, 1] -> [9, 1, 8]
[42, 1, 42, 42, 18, 42, 1] -> [1, 42, 42, 18, 42, 1, 42]
Questions:
[7, 2, 5, 92, 2] -> ?
Answer:
|
[7, 2, 5, 92, 2] -> [5, 92, 2, 7, 2]
|
[7, 2, 5, 92, 2]
|
[5, 92, 2, 7, 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, 4] -> [1, 3, 4, 5, 7, 10]
[25, 9, 7, 1, 0, 33, 8] -> [1, 7, 8, 33]
[41, 1, 2, 26, 5, 50, 33, 7, 96, 75] -> [2, 7, 26, 33, 50, 75, 96]
[5, 64, 73, 2, 6, 3] -> [2, 3, 73]
[0, 44, 34, 97, 4, 71, 20] -> [20, 34, 71, 97]
Questions:
[2, 89, 58, 1, 5, 41, 3, 93] -> ?
Answer:
|
[2, 89, 58, 1, 5, 41, 3, 93] -> [1, 3, 41, 58, 93]
|
[2, 89, 58, 1, 5, 41, 3, 93]
|
[1, 3, 41, 58, 93]
|
c006
|
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 2 elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 3, 1, 2, 9, 5, 4, 7, 0, 6] -> [8, 3]
[6, 9, 8, 0, 3] -> [6, 9]
[3, 2, 8, 5, 4, 6, 7, 0, 1] -> [3, 2]
[6, 3, 7, 8, 4, 9, 2, 1, 5] -> [6, 3]
[9, 1, 7, 5] -> [9, 1]
[6, 0, 3] -> [6, 0]
[7, 3, 8, 2, 4] -> [7, 3]
[2, 4, 3, 7, 1] -> [2, 4]
Questions:
[9, 8, 3] -> ?
Answer:
|
[9, 8, 3] -> [9, 8]
|
[9, 8, 3]
|
[9, 8]
|
c060
|
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, 2, 1, the number 4, then elements 5 and 7, in that order".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 2, 8, 4, 6, 1, 3, 5, 9, 0] -> [8, 2, 7, 4, 6, 3]
[8, 4, 9, 1, 3, 2, 7] -> [9, 4, 8, 4, 3, 7]
[0, 1, 2, 3, 6, 9, 8, 4] -> [2, 1, 0, 4, 6, 8]
[1, 4, 5, 2, 3, 7, 9, 6, 0] -> [5, 4, 1, 4, 3, 9]
[9, 7, 5, 4, 8, 3, 0, 2] -> [5, 7, 9, 4, 8, 0]
[4, 2, 1, 7, 6, 4, 0, 8, 5] -> [1, 2, 4, 4, 6, 0]
[3, 1, 0, 4, 5, 8, 9, 2] -> [0, 1, 3, 4, 5, 9]
[6, 2, 1, 0, 9, 8, 5] -> [1, 2, 6, 4, 9, 5]
Questions:
[4, 1, 2, 9, 7, 5, 0, 3, 6, 8] -> ?
Answer:
|
[4, 1, 2, 9, 7, 5, 0, 3, 6, 8] -> [2, 1, 4, 4, 7, 0]
|
[4, 1, 2, 9, 7, 5, 0, 3, 6, 8]
|
[2, 1, 4, 4, 7, 0]
|
c210
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements with last element inserted at index M, where M is element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 9, 83, 7, 52] -> [2, 52, 9, 83, 7, 52]
[1, 22] -> [22, 1, 22]
[4, 8, 73, 99, 6, 1, 90, 1, 45, 83] -> [4, 8, 73, 83, 99, 6, 1, 90, 45, 83]
[5, 8, 33, 0, 7, 80] -> [5, 8, 33, 0, 80, 7, 80]
[2, 2, 12, 7, 2, 7, 23, 23, 28] -> [2, 28, 12, 7, 23, 28]
[3, 44, 74, 44, 1, 0, 0] -> [3, 44, 0, 74, 1, 0]
[2, 1, 66] -> [2, 66, 1, 66]
[3, 7, 8, 5] -> [3, 7, 5, 8, 5]
Questions:
[3, 47, 0, 10, 7] -> ?
Answer:
|
[3, 47, 0, 10, 7] -> [3, 47, 7, 0, 10, 7]
|
[3, 47, 0, 10, 7]
|
[3, 47, 7, 0, 10, 7]
|
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] -> [6, 3, 54, 2, 67, 3, 83, 2]
[26, 26, 26, 26, 26, 26] -> [26, 6]
[83, 83, 9, 9, 9, 9] -> [83, 2, 9, 4]
[17, 92, 69, 17, 92, 69, 92, 17, 69, 17] -> [17, 4, 92, 3, 69, 3]
[6, 45, 6, 13, 18, 18, 45, 13, 18] -> [6, 2, 45, 2, 13, 2, 18, 3]
Questions:
[53, 13, 6, 33, 6, 13, 33, 53, 73, 73] -> ?
Answer:
|
[53, 13, 6, 33, 6, 13, 33, 53, 73, 73] -> [53, 2, 13, 2, 6, 2, 33, 2, 73, 2]
|
[53, 13, 6, 33, 6, 13, 33, 53, 73, 73]
|
[53, 2, 13, 2, 6, 2, 33, 2, 73, 2]
|
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:
[8, 97, 94, 8, 57, 41, 94, 59, 41, 1] -> ?
Answer:
|
[8, 97, 94, 8, 57, 41, 94, 59, 41, 1] -> [8, 97, 94, 8, 57, 41, 94]
|
[8, 97, 94, 8, 57, 41, 94, 59, 41, 1]
|
[8, 97, 94, 8, 57, 41, 94]
|
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:
[5, 8, 6, 9, 2, 4] -> ?
Answer:
|
[5, 8, 6, 9, 2, 4] -> [5, 5, 6, 9, 2, 4]
|
[5, 8, 6, 9, 2, 4]
|
[5, 5, 6, 9, 2, 4]
|
c216
|
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 tens digits".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[11, 42, 99, 33, 85, 1] -> [1, 11, 33, 42, 85, 99]
[17, 50, 9, 2, 60, 6, 3] -> [9, 2, 6, 3, 17, 50, 60]
[32, 55, 6, 35, 2, 70, 5] -> [6, 2, 5, 32, 35, 55, 70]
[5, 16, 78, 30] -> [5, 16, 30, 78]
[81, 4, 44, 77, 2] -> [4, 2, 44, 77, 81]
[64, 1, 54, 55, 53, 50] -> [1, 54, 55, 53, 50, 64]
[57, 47, 46, 72] -> [47, 46, 57, 72]
[82, 46, 7, 38, 61] -> [7, 38, 46, 61, 82]
Questions:
[83, 5, 49, 34, 0] -> ?
Answer:
|
[83, 5, 49, 34, 0] -> [5, 0, 34, 49, 83]
|
[83, 5, 49, 34, 0]
|
[5, 0, 34, 49, 83]
|
c016
|
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 an 8".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 3, 4] -> [2, 8, 4]
[8, 3, 5, 7, 1, 4, 2, 6] -> [8, 8, 5, 7, 1, 4, 2, 6]
[7, 0] -> [7, 8]
[0, 3, 1] -> [0, 8, 1]
[6, 7, 1, 5] -> [6, 8, 1, 5]
[1, 2, 3, 7, 6, 9] -> [1, 8, 3, 7, 6, 9]
[2, 6] -> [2, 8]
[2, 3, 0, 4, 1, 5] -> [2, 8, 0, 4, 1, 5]
Questions:
[9, 7, 5, 1, 8, 3, 6, 4, 0, 2] -> ?
Answer:
|
[9, 7, 5, 1, 8, 3, 6, 4, 0, 2] -> [9, 8, 5, 1, 8, 3, 6, 4, 0, 2]
|
[9, 7, 5, 1, 8, 3, 6, 4, 0, 2]
|
[9, 8, 5, 1, 8, 3, 6, 4, 0, 2]
|
c062
|
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 element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 5, 7, 2, 9, 0, 6] -> [8, 5, 7, 2, 9, 0]
[9, 2, 8, 1, 4, 5, 3] -> [9, 2, 8, 1, 4, 5]
[7, 9, 0, 1, 5, 4, 6, 8, 3, 2] -> [7, 9, 0, 1, 5, 4, 6, 8, 3]
[6, 8, 3, 9, 7] -> [6, 8, 3, 9]
[6, 4, 2, 3, 0] -> [6, 4, 2, 3]
[6, 0, 7, 9, 3, 8] -> [6, 0, 7, 9, 3]
[2, 7, 1] -> [2, 7]
[9, 3, 6] -> [9, 3]
Questions:
[4, 7] -> ?
Answer:
|
[4, 7] -> [4]
|
[4, 7]
|
[4]
|
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:
[77, 27, 53, 72, 52, 8, 5, 21, 65, 55] -> ?
Answer:
|
[77, 27, 53, 72, 52, 8, 5, 21, 65, 55] -> [53, 72, 52]
|
[77, 27, 53, 72, 52, 8, 5, 21, 65, 55]
|
[53, 72, 52]
|
c203
|
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 M positive multiples of the smallest element, where M is the input’s length".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[31, 60, 47] -> [31, 62, 93]
[58, 33] -> [33, 66]
[2, 23, 94, 91, 14, 1, 36, 32, 97, 77] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
[8, 86, 35, 22, 9] -> [8, 16, 24, 32, 40]
[91] -> [91]
[22, 25] -> [22, 44]
[67, 46, 27] -> [27, 54, 81]
[56, 97, 24, 79] -> [24, 48, 72, 96]
Questions:
[69, 93, 12, 84] -> ?
Answer:
|
[69, 93, 12, 84] -> [12, 24, 36, 48]
|
[69, 93, 12, 84]
|
[12, 24, 36, 48]
|
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, 5] -> [1, 3, 7, 8]
[10, 8, 10, 10, 10, 10, 8] -> [2, 3, 4, 5]
[85, 71, 6, 24, 85, 41, 53, 69, 8, 2] -> [4]
[2, 2, 2, 9, 2, 2, 9, 9, 9] -> [1, 2, 4, 5]
Questions:
[7, 7, 7, 7, 7, 7] -> ?
Answer:
|
[7, 7, 7, 7, 7, 7] -> [1, 2, 3, 4, 5]
|
[7, 7, 7, 7, 7, 7]
|
[1, 2, 3, 4, 5]
|
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] -> [4]
[2, 3, 2, 65, 65, 8, 8] -> [65, 65]
[5, 33, 12, 67, 7, 4] -> []
[6, 6, 7, 7, 6, 4, 4, 4, 6] -> [4]
Questions:
[3, 4, 19, 91, 4, 91, 5] -> ?
Answer:
|
[3, 4, 19, 91, 4, 91, 5] -> [4, 91]
|
[3, 4, 19, 91, 4, 91, 5]
|
[4, 91]
|
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:
[39] -> ?
Answer:
|
[39] -> [27]
|
[39]
|
[27]
|
c086
|
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:
[98, 91, 81, 25, 20, 0, 88] -> [25, 91, 81, 98, 20, 0, 88]
[3, 2, 5, 8, 74] -> [8, 2, 5, 3, 74]
[3, 25, 4, 55] -> [55, 25, 4, 3]
[0, 71, 15, 81, 8, 80, 3] -> [81, 71, 15, 0, 8, 80, 3]
[2, 3, 78, 86, 33, 46, 5, 16, 7, 85] -> [86, 3, 78, 2, 33, 46, 5, 16, 7, 85]
[6, 27, 3, 7, 25, 4, 29, 62] -> [7, 27, 3, 6, 25, 4, 29, 62]
[1, 87, 7, 4, 9, 57, 8, 50, 18] -> [4, 87, 7, 1, 9, 57, 8, 50, 18]
[91, 71, 67, 34, 47] -> [34, 71, 67, 91, 47]
Questions:
[3, 99, 0, 9, 2, 59, 8, 13] -> ?
Answer:
|
[3, 99, 0, 9, 2, 59, 8, 13] -> [9, 99, 0, 3, 2, 59, 8, 13]
|
[3, 99, 0, 9, 2, 59, 8, 13]
|
[9, 99, 0, 3, 2, 59, 8, 13]
|
c191
|
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 each element N times, where N is its tens digit, in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[79] -> [79, 79, 79, 79, 79, 79, 79]
[34, 1, 55, 4, 6, 9, 5, 59] -> [34, 34, 34, 55, 55, 55, 55, 55, 59, 59, 59, 59, 59]
[1, 16, 10, 65, 7, 4, 0, 9, 72, 3] -> [16, 10, 65, 65, 65, 65, 65, 65, 72, 72, 72, 72, 72, 72, 72]
[8, 24, 2, 47, 9, 5, 77, 0, 14] -> [24, 24, 47, 47, 47, 47, 77, 77, 77, 77, 77, 77, 77, 14]
[57] -> [57, 57, 57, 57, 57]
[93, 62] -> [93, 93, 93, 93, 93, 93, 93, 93, 93, 62, 62, 62, 62, 62, 62]
[33, 53, 3, 1, 45, 8] -> [33, 33, 33, 53, 53, 53, 53, 53, 45, 45, 45, 45]
[7, 85, 5, 6] -> [85, 85, 85, 85, 85, 85, 85, 85]
Questions:
[] -> ?
Answer:
|
[] -> []
|
[]
|
[]
|
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:
[0, 2, 30, 30, 1, 6, 4, 8] -> ?
Answer:
|
[0, 2, 30, 30, 1, 6, 4, 8] -> [0, 73, 8]
|
[0, 2, 30, 30, 1, 6, 4, 8]
|
[0, 73, 8]
|
c213
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "three smallest elements in ascending order".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 51, 55, 73, 3, 56, 87, 10, 5] -> [3, 5, 8]
[70, 76, 71, 10, 60, 42, 7, 40] -> [7, 10, 40]
[6, 59, 22, 7, 30, 68] -> [6, 7, 22]
[40, 1, 72, 18, 61, 27, 48] -> [1, 18, 27]
[75, 7, 16, 2, 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, 89, 44] -> ?
Answer:
|
[45, 89, 44] -> [44, 45, 89]
|
[45, 89, 44]
|
[44, 45, 89]
|
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, 2, 1, 3, 6]
[7] -> [7]
[9, 2, 6, 0, 1, 4, 7] -> [9, 2, 6, 0, 1, 3, 7]
[8, 2, 0, 9] -> [8, 2, 0, 9]
Questions:
[2, 5, 8, 6, 0] -> ?
Answer:
|
[2, 5, 8, 6, 0] -> [2, 5, 8, 6, 0]
|
[2, 5, 8, 6, 0]
|
[2, 5, 8, 6, 0]
|
c147
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "each element, followed by its original index".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[39, 5, 60, 6, 16, 7, 26] -> [39, 1, 5, 2, 60, 3, 6, 4, 16, 5, 7, 6, 26, 7]
[90, 9, 6, 67, 0] -> [90, 1, 9, 2, 6, 3, 67, 4, 0, 5]
[8, 52, 70] -> [8, 1, 52, 2, 70, 3]
[54, 17, 29, 22] -> [54, 1, 17, 2, 29, 3, 22, 4]
[72, 18, 4] -> [72, 1, 18, 2, 4, 3]
[79, 3] -> [79, 1, 3, 2]
[8, 9, 0, 43, 61, 1] -> [8, 1, 9, 2, 0, 3, 43, 4, 61, 5, 1, 6]
[69] -> [69, 1]
Questions:
[4, 27, 55] -> ?
Answer:
|
[4, 27, 55] -> [4, 1, 27, 2, 55, 3]
|
[4, 27, 55]
|
[4, 1, 27, 2, 55, 3]
|
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, 75, 75, 75, 75, 75, 75]
[81, 2] -> [81, 81, 81, 81, 81, 81, 81, 81, 81, 81]
[34, 5, 25] -> [34, 34, 34, 34, 34, 34, 34, 34, 34, 34]
[33, 8, 2, 96, 6] -> [33, 33, 33, 33, 33, 33, 33, 33, 33, 33]
[21] -> [21, 21, 21, 21, 21, 21, 21, 21, 21, 21]
[38, 0] -> [38, 38, 38, 38, 38, 38, 38, 38, 38, 38]
Questions:
[20, 3, 70, 5] -> ?
Answer:
|
[20, 3, 70, 5] -> [20, 20, 20, 20, 20, 20, 20, 20, 20, 20]
|
[20, 3, 70, 5]
|
[20, 20, 20, 20, 20, 20, 20, 20, 20, 20]
|
c071
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "add 2 to every element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 6] -> [2, 8]
[0, 4, 6, 2, 3, 1] -> [2, 6, 8, 4, 5, 3]
[2] -> [4]
[3, 6, 5, 0, 1, 2] -> [5, 8, 7, 2, 3, 4]
[1, 6] -> [3, 8]
[1, 2] -> [3, 4]
[1] -> [3]
[5, 3, 0, 1] -> [7, 5, 2, 3]
Questions:
[7, 5, 3, 6, 1, 4, 0] -> ?
Answer:
|
[7, 5, 3, 6, 1, 4, 0] -> [9, 7, 5, 8, 3, 6, 2]
|
[7, 5, 3, 6, 1, 4, 0]
|
[9, 7, 5, 8, 3, 6, 2]
|
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, 4, 3, 7, 8]
[1, 37, 98, 69, 12, 70] -> [0, 1, 3, 7, 9, 8, 6, 9, 1, 2, 7, 0]
[11, 4, 17] -> [1, 1, 0, 4, 1, 7]
[2, 7, 73, 14, 3, 40] -> [0, 2, 0, 7, 7, 3, 1, 4, 0, 3, 4, 0]
Questions:
[99, 51, 97, 75, 4] -> ?
Answer:
|
[99, 51, 97, 75, 4] -> [9, 9, 5, 1, 9, 7, 7, 5, 0, 4]
|
[99, 51, 97, 75, 4]
|
[9, 9, 5, 1, 9, 7, 7, 5, 0, 4]
|
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:
[11, 11, 20, 11, 20, 20, 11, 11] -> ?
Answer:
|
[11, 11, 20, 11, 20, 20, 11, 11] -> [11, 11, 11, 11, 20, 20]
|
[11, 11, 20, 11, 20, 20, 11, 11]
|
[11, 11, 11, 11, 20, 20]
|
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:
[23, 99, 99, 1, 21, 36, 61, 61, 69, 61] -> ?
Answer:
|
[23, 99, 99, 1, 21, 36, 61, 61, 69, 61] -> [23, 99, 99, 1, 21, 36, 61]
|
[23, 99, 99, 1, 21, 36, 61, 61, 69, 61]
|
[23, 99, 99, 1, 21, 36, 61]
|
c186
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements greater than element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 62, 97, 4, 42, 27, 43, 1, 5] -> [62, 97, 42, 27, 43]
[9, 0, 16, 94, 4, 2, 6, 27, 9, 88] -> [16, 94, 27, 88]
[6, 4, 0, 87, 9, 86, 89, 1, 23] -> [87, 9, 86, 89, 23]
[5, 60, 5, 60] -> [60, 60]
[9, 6, 5, 8, 1, 34, 91, 36, 0] -> [34, 91, 36]
[15, 7, 31, 9, 4, 22, 82, 1, 38, 80] -> [31, 22, 82, 38, 80]
[39, 0, 22, 3, 8, 6, 9, 4, 51, 57] -> [51, 57]
[5, 46, 6, 49, 3, 9, 1, 4, 7] -> [46, 6, 49, 9, 7]
Questions:
[58, 6, 11, 41, 38, 0, 82, 80, 0, 82] -> ?
Answer:
|
[58, 6, 11, 41, 38, 0, 82, 80, 0, 82] -> [82, 80, 82]
|
[58, 6, 11, 41, 38, 0, 82, 80, 0, 82]
|
[82, 80, 82]
|
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, 3, 0, 7, 6, 9, 4, 5, 1, 2] -> ?
Answer:
|
[8, 3, 0, 7, 6, 9, 4, 5, 1, 2] -> [3, 0, 7]
|
[8, 3, 0, 7, 6, 9, 4, 5, 1, 2]
|
[3, 0, 7]
|
c003
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 7".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 0, 6, 2, 3, 8, 5, 9, 4] -> [5]
[5, 6, 2, 3, 9, 7, 1, 0] -> [1]
[9, 8, 7, 4, 0, 3, 6, 5, 2, 1] -> [6]
[1, 2, 0, 8, 5, 9, 3, 6, 7, 4] -> [3]
[1, 0, 9, 5, 4, 2, 8] -> [8]
[4, 5, 8, 3, 1, 6, 0] -> [0]
[8, 3, 4, 0, 5, 1, 6, 9, 2] -> [6]
[1, 7, 9, 4, 6, 2, 0] -> [0]
Questions:
[8, 4, 5, 9, 0, 6, 1] -> ?
Answer:
|
[8, 4, 5, 9, 0, 6, 1] -> [1]
|
[8, 4, 5, 9, 0, 6, 1]
|
[1]
|
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:
[5, 8, 32, 6, 2, 0] -> ?
Answer:
|
[5, 8, 32, 6, 2, 0] -> [5, 48, 0]
|
[5, 8, 32, 6, 2, 0]
|
[5, 48, 0]
|
c052
|
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:
[4, 2, 9, 0, 3, 8, 1, 5, 6, 7] -> [4, 4, 4, 4, 4, 4, 4, 4, 4, 4]
[1, 4, 7, 3, 6] -> [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[8, 1, 2, 9, 6, 3, 4, 7] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8]
[5, 9, 1, 6, 2, 0] -> [5, 5, 5, 5, 5, 5, 5, 5, 5, 5]
[8, 4, 6] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8]
[8] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8]
[6, 7, 5, 1, 4, 9, 3, 2, 0, 8] -> [6, 6, 6, 6, 6, 6, 6, 6, 6, 6]
[0, 2, 6, 8, 1, 5, 9, 4] -> [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Questions:
[7, 5] -> ?
Answer:
|
[7, 5] -> [7, 7, 7, 7, 7, 7, 7, 7, 7, 7]
|
[7, 5]
|
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7]
|
c022
|
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 a 5 as element 2".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 0, 3] -> [6, 5, 0, 3]
[1, 4] -> [1, 5, 4]
[5, 6, 3, 9, 2, 0] -> [5, 5, 6, 3, 9, 2, 0]
[6, 8, 9, 0, 5, 3, 2, 4, 7, 1] -> [6, 5, 8, 9, 0, 5, 3, 2, 4, 7, 1]
[7, 2, 4, 8, 9, 3, 5, 1, 6, 0] -> [7, 5, 2, 4, 8, 9, 3, 5, 1, 6, 0]
[1, 7, 3, 0] -> [1, 5, 7, 3, 0]
[1, 7, 6, 8, 4] -> [1, 5, 7, 6, 8, 4]
[4, 8, 3] -> [4, 5, 8, 3]
Questions:
[4, 0, 1, 6] -> ?
Answer:
|
[4, 0, 1, 6] -> [4, 5, 0, 1, 6]
|
[4, 0, 1, 6]
|
[4, 5, 0, 1, 6]
|
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:
[7, 6, 1, 9, 4, 0, 5, 2, 3, 8] -> ?
Answer:
|
[7, 6, 1, 9, 4, 0, 5, 2, 3, 8] -> [2]
|
[7, 6, 1, 9, 4, 0, 5, 2, 3, 8]
|
[2]
|
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, 1, 92, 0, 0] -> ?
Answer:
|
[2, 1, 92, 0, 0] -> [1, 0, 0]
|
[2, 1, 92, 0, 0]
|
[1, 0, 0]
|
c018
|
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".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 5, 3, 8, 7] -> [6, 5, 3, 8, 7]
[5, 0, 2, 4, 3, 8, 9] -> [5, 0, 2, 4, 3, 3, 9]
[1, 8, 2, 4, 3, 9] -> [1, 8, 2, 4, 3, 3]
[1, 8, 5, 2, 9, 6, 4, 7] -> [1, 8, 5, 2, 9, 3, 4, 7]
[1, 3, 5, 6, 2, 4, 0, 7, 9] -> [1, 3, 5, 6, 2, 3, 0, 7, 9]
[0, 9, 7, 6, 1, 5] -> [0, 9, 7, 6, 1, 3]
[6] -> [6]
[2, 3, 0, 7, 1, 6, 4, 8] -> [2, 3, 0, 7, 1, 3, 4, 8]
Questions:
[4, 8, 0, 9, 1, 7, 3, 2, 6, 5] -> ?
Answer:
|
[4, 8, 0, 9, 1, 7, 3, 2, 6, 5] -> [4, 8, 0, 9, 1, 3, 3, 2, 6, 5]
|
[4, 8, 0, 9, 1, 7, 3, 2, 6, 5]
|
[4, 8, 0, 9, 1, 3, 3, 2, 6, 5]
|
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:
[9, 8, 1, 5, 6, 4, 2, 7, 0] -> ?
Answer:
|
[9, 8, 1, 5, 6, 4, 2, 7, 0] -> [9, 8, 1, 5, 6, 4, 2, 7, 0]
|
[9, 8, 1, 5, 6, 4, 2, 7, 0]
|
[9, 8, 1, 5, 6, 4, 2, 7, 0]
|
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:
[56, 9, 40, 39, 4, 0, 39, 9, 4] -> ?
Answer:
|
[56, 9, 40, 39, 4, 0, 39, 9, 4] -> [40, 39, 39]
|
[56, 9, 40, 39, 4, 0, 39, 9, 4]
|
[40, 39, 39]
|
c094
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 3 and elements 2 and 4".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[27, 4, 70, 28, 91, 82, 80, 7, 0] -> [70, 28, 27, 4, 91, 82, 80, 7, 0]
[37, 5, 34, 45, 63, 25] -> [34, 45, 37, 5, 63, 25]
[34, 8, 5, 0, 86, 52, 53, 33, 4, 1] -> [5, 0, 34, 8, 86, 52, 53, 33, 4, 1]
[22, 2, 27, 48] -> [27, 48, 22, 2]
[6, 59, 5] -> [5, 6, 59]
[18, 6, 8, 54, 2, 38, 91] -> [8, 54, 18, 6, 2, 38, 91]
[5, 73, 6, 2, 89, 87, 30, 85, 64, 1] -> [6, 2, 5, 73, 89, 87, 30, 85, 64, 1]
[8, 26, 9, 31, 4, 13, 7, 50] -> [9, 31, 8, 26, 4, 13, 7, 50]
Questions:
[93, 0, 9, 62, 30, 6, 7] -> ?
Answer:
|
[93, 0, 9, 62, 30, 6, 7] -> [9, 62, 93, 0, 30, 6, 7]
|
[93, 0, 9, 62, 30, 6, 7]
|
[9, 62, 93, 0, 30, 6, 7]
|
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, 5, 0, 7, 8, 1, 9] -> [4, 4, 3, 6, 2, 5, 0, 7, 8, 1, 9]
[2, 4, 1, 3, 8, 0, 9, 7, 5, 6] -> [2, 2, 4, 1, 3, 8, 0, 9, 7, 5, 6]
Questions:
[1, 9, 4, 0, 7, 6, 8, 3] -> ?
Answer:
|
[1, 9, 4, 0, 7, 6, 8, 3] -> [1, 1, 9, 4, 0, 7, 6, 8, 3]
|
[1, 9, 4, 0, 7, 6, 8, 3]
|
[1, 1, 9, 4, 0, 7, 6, 8, 3]
|
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, 87, 26] -> [33, 87, 26]
[3, 7, 9, 20, 67, 1, 19, 6, 18] -> [7, 9, 20, 67, 1, 19, 6, 18]
[67, 9, 5, 6, 58] -> [9, 5, 6, 58]
[35, 15, 63, 99, 67, 83, 98, 95] -> [15, 63, 99, 67, 83, 98, 95]
[77, 28] -> [28]
Questions:
[16] -> ?
Answer:
|
[16] -> []
|
[16]
|
[]
|
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, 3, 3] -> ?
Answer:
|
[1, 3, 3] -> [1, 3, 9]
|
[1, 3, 3]
|
[1, 3, 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, 87, 26] -> [33, 87, 26]
[3, 7, 9, 20, 67, 1, 19, 6, 18] -> [7, 9, 20, 67, 1, 19, 6, 18]
[67, 9, 5, 6, 58] -> [9, 5, 6, 58]
[35, 15, 63, 99, 67, 83, 98, 95] -> [15, 63, 99, 67, 83, 98, 95]
[77, 28] -> [28]
Questions:
[9, 5, 78, 40, 11, 86, 0] -> ?
Answer:
|
[9, 5, 78, 40, 11, 86, 0] -> [5, 78, 40, 11, 86, 0]
|
[9, 5, 78, 40, 11, 86, 0]
|
[5, 78, 40, 11, 86, 0]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.