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
|
---|---|---|---|---|---|
c036
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 2 and 3 if element 2 > element 3, else swap elements 1 and 4".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 0, 6, 5, 4, 7, 1] -> [5, 0, 6, 9, 4, 7, 1]
[9, 1, 8, 7, 5, 0] -> [7, 1, 8, 9, 5, 0]
[7, 2, 0, 7] -> [7, 0, 2, 7]
[4, 8, 2, 9, 6, 0, 5, 1] -> [4, 2, 8, 9, 6, 0, 5, 1]
[0, 7, 5, 2, 1, 8, 6, 9] -> [0, 5, 7, 2, 1, 8, 6, 9]
[6, 7, 8, 1, 0, 2, 4] -> [1, 7, 8, 6, 0, 2, 4]
[1, 7, 4, 5, 8, 9] -> [1, 4, 7, 5, 8, 9]
[1, 1, 0, 7, 6] -> [1, 0, 1, 7, 6]
Questions:
[3, 4, 9, 0, 1, 7, 2, 8, 6, 5] -> ?
Answer:
|
[3, 4, 9, 0, 1, 7, 2, 8, 6, 5] -> [0, 4, 9, 3, 1, 7, 2, 8, 6, 5]
|
[3, 4, 9, 0, 1, 7, 2, 8, 6, 5]
|
[0, 4, 9, 3, 1, 7, 2, 8, 6, 5]
|
c026
|
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:
[9, 8, 6] -> [9, 8]
[9, 3, 4, 0] -> [9, 3, 0]
[5, 9, 1, 7] -> [5, 9, 7]
[4, 7, 3, 6, 0, 8, 2, 5] -> [4, 7, 6, 0, 8, 2, 5]
[0, 6, 1, 2, 3, 5, 9] -> [0, 6, 2, 3, 5, 9]
[9, 3, 5, 2, 7, 0, 8, 1, 4, 6] -> [9, 3, 2, 7, 0, 8, 1, 4, 6]
[5, 2, 6, 1, 0, 9, 4, 8] -> [5, 2, 1, 0, 9, 4, 8]
[7, 4, 0, 8, 2] -> [7, 4, 8, 2]
Questions:
[1, 7, 9, 6] -> ?
Answer:
|
[1, 7, 9, 6] -> [1, 7, 6]
|
[1, 7, 9, 6]
|
[1, 7, 6]
|
c121
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[99, 62, 65, 0, 95] -> [95]
[6, 8, 39] -> [39]
[38, 2] -> [2]
[56, 65, 74] -> [74]
[19, 32, 3, 78, 41, 51, 8, 80] -> [80]
[3, 53, 92, 4, 9, 19, 38, 61, 27] -> [27]
[36, 22, 3, 55, 23] -> [23]
[98, 65, 84] -> [84]
Questions:
[14, 0, 16, 54, 80, 6, 3, 7] -> ?
Answer:
|
[14, 0, 16, 54, 80, 6, 3, 7] -> [7]
|
[14, 0, 16, 54, 80, 6, 3, 7]
|
[7]
|
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:
[9, 1, 9] -> ?
Answer:
|
[9, 1, 9] -> [9, 9, 81]
|
[9, 1, 9]
|
[9, 9, 81]
|
c041
|
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 [9]".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 8, 7, 3, 6, 6, 0, 2] -> [9]
[4] -> [9]
[2, 1, 5, 4] -> [9]
[4, 1, 1, 0, 5, 5, 3, 1, 2] -> [9]
[2] -> [9]
[2, 3, 3, 2, 2, 3, 2, 3, 3, 3] -> [9]
[2, 6, 2, 6] -> [9]
[4, 4, 4, 4, 4] -> [9]
Questions:
[5, 0, 7] -> ?
Answer:
|
[5, 0, 7] -> [9]
|
[5, 0, 7]
|
[9]
|
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:
[0, 97, 47, 3, 79, 28, 6] -> ?
Answer:
|
[0, 97, 47, 3, 79, 28, 6] -> [6, 0, 97, 47, 3, 79, 28]
|
[0, 97, 47, 3, 79, 28, 6]
|
[6, 0, 97, 47, 3, 79, 28]
|
c195
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element 1, followed by 23, 68, 42, 99, 71, followed by last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[51, 77, 5, 1, 79, 26, 2, 98] -> [51, 23, 68, 42, 99, 71, 98]
[9, 46, 74, 56, 4, 83, 1, 10, 8, 7] -> [9, 23, 68, 42, 99, 71, 7]
[14, 69, 33, 96, 22, 1, 40, 21, 54] -> [14, 23, 68, 42, 99, 71, 54]
[9, 7, 16, 45, 65, 62, 2, 57, 3, 5] -> [9, 23, 68, 42, 99, 71, 5]
[4, 3, 0, 22, 81] -> [4, 23, 68, 42, 99, 71, 81]
[85, 10, 88, 83, 94, 4, 47] -> [85, 23, 68, 42, 99, 71, 47]
[50, 1, 58, 32, 76, 57, 13, 2, 42, 74] -> [50, 23, 68, 42, 99, 71, 74]
[24, 44, 90, 5, 30, 9, 4, 47, 80] -> [24, 23, 68, 42, 99, 71, 80]
Questions:
[88, 8, 5, 1, 7, 39] -> ?
Answer:
|
[88, 8, 5, 1, 7, 39] -> [88, 23, 68, 42, 99, 71, 39]
|
[88, 8, 5, 1, 7, 39]
|
[88, 23, 68, 42, 99, 71, 39]
|
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:
[51, 31, 6, 9, 48, 62, 79, 4] -> ?
Answer:
|
[51, 31, 6, 9, 48, 62, 79, 4] -> [5, 3, 0, 0, 4, 6, 7, 0]
|
[51, 31, 6, 9, 48, 62, 79, 4]
|
[5, 3, 0, 0, 4, 6, 7, 0]
|
c059
|
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 4 and 8".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 3, 5, 2, 9, 1, 8, 7, 6] -> [4, 3, 5, 7, 9, 1, 8, 2, 6]
[7, 0, 5, 2, 8, 4, 9, 1, 3] -> [7, 0, 5, 1, 8, 4, 9, 2, 3]
[6, 4, 5, 0, 3, 1, 7, 9, 2] -> [6, 4, 5, 9, 3, 1, 7, 0, 2]
[9, 4, 2, 3, 4, 1, 6, 8, 0, 7] -> [9, 4, 2, 8, 4, 1, 6, 3, 0, 7]
[6, 3, 8, 5, 2, 1, 0, 4] -> [6, 3, 8, 4, 2, 1, 0, 5]
[6, 7, 3, 1, 9, 5, 8, 0] -> [6, 7, 3, 0, 9, 5, 8, 1]
[3, 1, 5, 8, 7, 4, 0, 9, 6, 2] -> [3, 1, 5, 9, 7, 4, 0, 8, 6, 2]
[0, 6, 7, 9, 3, 5, 4, 2, 8] -> [0, 6, 7, 2, 3, 5, 4, 9, 8]
Questions:
[2, 3, 8, 5, 7, 1, 4, 9] -> ?
Answer:
|
[2, 3, 8, 5, 7, 1, 4, 9] -> [2, 3, 8, 9, 7, 1, 4, 5]
|
[2, 3, 8, 5, 7, 1, 4, 9]
|
[2, 3, 8, 9, 7, 1, 4, 5]
|
c138
|
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 element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[30, 71, 30, 30, 47, 47, 90, 59, 59, 90] -> [71, 47, 47, 90, 59, 59, 90]
[30, 47, 30, 30, 78, 8, 47, 78] -> [47, 78, 8, 47, 78]
[90, 90, 90] -> []
[58, 58, 2, 58] -> [2]
[25, 80] -> [80]
[3, 83, 3, 8, 36, 28, 28, 9, 8] -> [83, 8, 36, 28, 28, 9, 8]
[92, 92, 8, 92] -> [8]
[38, 45, 9, 8, 47, 38, 3, 81, 47, 45] -> [45, 9, 8, 47, 3, 81, 47, 45]
Questions:
[94, 87, 84, 87, 87, 4, 7, 50, 4, 5] -> ?
Answer:
|
[94, 87, 84, 87, 87, 4, 7, 50, 4, 5] -> [87, 84, 87, 87, 4, 7, 50, 4, 5]
|
[94, 87, 84, 87, 87, 4, 7, 50, 4, 5]
|
[87, 84, 87, 87, 4, 7, 50, 4, 5]
|
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:
[73] -> ?
Answer:
|
[73] -> [73, 0, 73]
|
[73]
|
[73, 0, 73]
|
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:
[0, 54, 87, 2, 6, 99, 8] -> ?
Answer:
|
[0, 54, 87, 2, 6, 99, 8] -> [99, 87, 54, 8, 6, 2, 0]
|
[0, 54, 87, 2, 6, 99, 8]
|
[99, 87, 54, 8, 6, 2, 0]
|
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:
[5, 7, 0, 1] -> ?
Answer:
|
[5, 7, 0, 1] -> [5, 7, 0]
|
[5, 7, 0, 1]
|
[5, 7, 0]
|
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:
[62, 28, 45] -> ?
Answer:
|
[62, 28, 45] -> [45]
|
[62, 28, 45]
|
[45]
|
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:
[2, 0, 9, 1, 5, 7] -> ?
Answer:
|
[2, 0, 9, 1, 5, 7] -> [2, 9, 1, 5, 7]
|
[2, 0, 9, 1, 5, 7]
|
[2, 9, 1, 5, 7]
|
c220
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "if input length is even, double each element, else triple it".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[27, 5, 5] -> [81, 15, 15]
[8, 7, 31] -> [24, 21, 93]
[4, 0, 5, 2, 1, 3, 6, 9, 33] -> [12, 0, 15, 6, 3, 9, 18, 27, 99]
[2, 6] -> [4, 12]
[42, 42] -> [84, 84]
[7, 0, 2, 5, 9, 1, 4] -> [21, 0, 6, 15, 27, 3, 12]
[14, 6] -> [28, 12]
[9, 5, 1, 49, 9, 15] -> [18, 10, 2, 98, 18, 30]
Questions:
[29, 7, 3, 22, 2] -> ?
Answer:
|
[29, 7, 3, 22, 2] -> [87, 21, 9, 66, 6]
|
[29, 7, 3, 22, 2]
|
[87, 21, 9, 66, 6]
|
c066
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "left-rotate by 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 2, 7, 3, 6, 5, 1, 9] -> [2, 7, 3, 6, 5, 1, 9, 8]
[5, 3] -> [3, 5]
[4, 1, 9, 0] -> [1, 9, 0, 4]
[2, 8, 6, 9, 1] -> [8, 6, 9, 1, 2]
[7] -> [7]
[6, 3, 4] -> [3, 4, 6]
[1, 2, 6, 3, 5, 8, 0, 7, 4] -> [2, 6, 3, 5, 8, 0, 7, 4, 1]
[8, 4, 5, 0] -> [4, 5, 0, 8]
Questions:
[0, 9, 2, 5] -> ?
Answer:
|
[0, 9, 2, 5] -> [9, 2, 5, 0]
|
[0, 9, 2, 5]
|
[9, 2, 5, 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:
[3, 3, 1, 3, 3] -> ?
Answer:
|
[3, 3, 1, 3, 3] -> [3]
|
[3, 3, 1, 3, 3]
|
[3]
|
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:
[6, 1, 9, 5, 4, 2, 8, 3] -> ?
Answer:
|
[6, 1, 9, 5, 4, 2, 8, 3] -> [6, 9, 5, 4, 2, 8, 3]
|
[6, 1, 9, 5, 4, 2, 8, 3]
|
[6, 9, 5, 4, 2, 8, 3]
|
c195
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element 1, followed by 23, 68, 42, 99, 71, followed by last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[51, 77, 5, 1, 79, 26, 2, 98] -> [51, 23, 68, 42, 99, 71, 98]
[9, 46, 74, 56, 4, 83, 1, 10, 8, 7] -> [9, 23, 68, 42, 99, 71, 7]
[14, 69, 33, 96, 22, 1, 40, 21, 54] -> [14, 23, 68, 42, 99, 71, 54]
[9, 7, 16, 45, 65, 62, 2, 57, 3, 5] -> [9, 23, 68, 42, 99, 71, 5]
[4, 3, 0, 22, 81] -> [4, 23, 68, 42, 99, 71, 81]
[85, 10, 88, 83, 94, 4, 47] -> [85, 23, 68, 42, 99, 71, 47]
[50, 1, 58, 32, 76, 57, 13, 2, 42, 74] -> [50, 23, 68, 42, 99, 71, 74]
[24, 44, 90, 5, 30, 9, 4, 47, 80] -> [24, 23, 68, 42, 99, 71, 80]
Questions:
[27, 61, 40, 33, 5, 0, 1, 49, 4, 24] -> ?
Answer:
|
[27, 61, 40, 33, 5, 0, 1, 49, 4, 24] -> [27, 23, 68, 42, 99, 71, 24]
|
[27, 61, 40, 33, 5, 0, 1, 49, 4, 24]
|
[27, 23, 68, 42, 99, 71, 24]
|
c044
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 6, 6, 6, 6] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[5, 7, 3] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[7, 6, 6, 6, 6, 7, 7, 6, 6, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[7, 7, 7, 7, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[8, 5, 2, 8, 7, 1] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[6, 6, 6, 6, 6, 6, 6] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[8, 8, 1, 2, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[6, 3, 0, 6, 7, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
Questions:
[1, 6] -> ?
Answer:
|
[1, 6] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
|
[1, 6]
|
[1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
|
c119
|
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 or append 8, if necessary, so the list begins and ends with 8".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[37] -> [8, 37, 8]
[99, 7, 79, 8] -> [8, 99, 7, 79, 8]
[39, 8, 39, 77, 8] -> [8, 39, 8, 39, 77, 8]
[8, 5] -> [8, 5, 8]
[8, 3, 8, 70, 90] -> [8, 3, 8, 70, 90, 8]
[58, 9, 8] -> [8, 58, 9, 8]
[8, 6, 99, 34, 8] -> [8, 6, 99, 34, 8]
[8, 8] -> [8, 8]
Questions:
[5, 69, 4, 44, 8] -> ?
Answer:
|
[5, 69, 4, 44, 8] -> [8, 5, 69, 4, 44, 8]
|
[5, 69, 4, 44, 8]
|
[8, 5, 69, 4, 44, 8]
|
c104
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "maximum element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 19] -> [19]
[2, 40, 85, 46, 9] -> [85]
[1, 22, 88, 12, 8, 81, 9, 16, 48, 18] -> [88]
[24, 60, 4] -> [60]
[80, 1, 50, 49, 5, 48, 63] -> [80]
[22, 29, 65, 20, 6] -> [65]
[0, 8, 3, 55, 1, 86, 7, 56] -> [86]
[3, 43, 39] -> [43]
Questions:
[9, 31, 11, 5, 84, 71, 6] -> ?
Answer:
|
[9, 31, 11, 5, 84, 71, 6] -> [84]
|
[9, 31, 11, 5, 84, 71, 6]
|
[84]
|
c136
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the first occurrence of the largest element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[64, 3, 64, 64, 1, 55] -> [3, 64, 64, 1, 55]
[5, 24, 11, 26, 73, 41, 60, 73] -> [5, 24, 11, 26, 41, 60, 73]
[82, 5, 82, 82, 81, 12, 31, 5, 31] -> [5, 82, 82, 81, 12, 31, 5, 31]
[59, 4, 5, 16, 59, 9] -> [4, 5, 16, 59, 9]
[0, 78, 78, 9, 78] -> [0, 78, 9, 78]
[25, 25] -> [25]
[71, 1, 0, 22, 6, 18, 4, 99, 3, 87] -> [71, 1, 0, 22, 6, 18, 4, 3, 87]
[4, 1, 40, 56, 71, 8, 45, 3, 13] -> [4, 1, 40, 56, 8, 45, 3, 13]
Questions:
[0, 9, 96, 2, 3, 8, 5, 96] -> ?
Answer:
|
[0, 9, 96, 2, 3, 8, 5, 96] -> [0, 9, 2, 3, 8, 5, 96]
|
[0, 9, 96, 2, 3, 8, 5, 96]
|
[0, 9, 2, 3, 8, 5, 96]
|
c158
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with 1 if element N equals N, else 0".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 5, 3, 5, 8, 3, 7] -> [0, 0, 1, 0, 0, 0, 1]
[1, 3, 29, 9, 40, 4, 72, 0, 26, 5] -> [1, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[7, 7, 7, 7, 7, 7, 7, 7, 7, 7] -> [0, 0, 0, 0, 0, 0, 1, 0, 0, 0]
[8, 0, 3, 4, 40, 80, 3, 21, 21] -> [0, 0, 1, 1, 0, 0, 0, 0, 0]
[7, 7, 4, 6, 5, 4, 5, 6] -> [0, 0, 0, 0, 1, 0, 0, 0]
[5, 8, 3, 5, 3, 3, 8, 5, 8, 3] -> [0, 0, 1, 0, 0, 0, 0, 0, 0, 0]
[2, 2, 2, 2, 2, 2] -> [0, 1, 0, 0, 0, 0]
[1, 1, 1] -> [1, 0, 0]
Questions:
[7, 5, 7, 5, 5, 5, 7, 5, 7] -> ?
Answer:
|
[7, 5, 7, 5, 5, 5, 7, 5, 7] -> [0, 0, 0, 0, 1, 0, 1, 0, 0]
|
[7, 5, 7, 5, 5, 5, 7, 5, 7]
|
[0, 0, 0, 0, 1, 0, 1, 0, 0]
|
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:
[25, 71, 1, 6, 0, 82, 2] -> ?
Answer:
|
[25, 71, 1, 6, 0, 82, 2] -> [25]
|
[25, 71, 1, 6, 0, 82, 2]
|
[25]
|
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:
[6, 2, 5, 1, 0] -> ?
Answer:
|
[6, 2, 5, 1, 0] -> [7, 4, 8, 5, 5]
|
[6, 2, 5, 1, 0]
|
[7, 4, 8, 5, 5]
|
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:
[61, 86, 56, 1, 60, 8, 89, 40] -> ?
Answer:
|
[61, 86, 56, 1, 60, 8, 89, 40] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
|
[61, 86, 56, 1, 60, 8, 89, 40]
|
[11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
|
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:
[6, 7, 4, 8, 0, 2, 3, 5, 1, 9] -> ?
Answer:
|
[6, 7, 4, 8, 0, 2, 3, 5, 1, 9] -> [4, 8, 0, 2, 3]
|
[6, 7, 4, 8, 0, 2, 3, 5, 1, 9]
|
[4, 8, 0, 2, 3]
|
c247
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements before the first 0".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[30, 6, 0, 8, 0, 88, 3] -> [30, 6]
[62, 0, 3, 0, 5, 56, 49] -> [62]
[66, 0, 66, 66, 1] -> [66]
[39, 39, 0, 39, 0, 39, 39, 39, 39] -> [39, 39]
[6, 1, 7, 0, 6, 2, 0, 6, 69] -> [6, 1, 7]
[84, 84, 84, 0, 7, 0, 62, 7, 62, 0] -> [84, 84, 84]
[44, 8, 0, 13, 82, 16, 48, 5, 32] -> [44, 8]
[6, 50, 50, 0, 7, 0, 8] -> [6, 50, 50]
Questions:
[5, 99, 5, 0, 69, 0, 72, 0, 72, 72] -> ?
Answer:
|
[5, 99, 5, 0, 69, 0, 72, 0, 72, 72] -> [5, 99, 5]
|
[5, 99, 5, 0, 69, 0, 72, 0, 72, 72]
|
[5, 99, 5]
|
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:
[19, 0, 6, 62, 41, 42] -> ?
Answer:
|
[19, 0, 6, 62, 41, 42] -> [62, 41, 42, 0, 6]
|
[19, 0, 6, 62, 41, 42]
|
[62, 41, 42, 0, 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:
[69, 86, 96, 78, 96, 5, 78] -> ?
Answer:
|
[69, 86, 96, 78, 96, 5, 78] -> [69, 86, 96, 78, 96]
|
[69, 86, 96, 78, 96, 5, 78]
|
[69, 86, 96, 78, 96]
|
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:
[6, 6, 6, 6, 6] -> ?
Answer:
|
[6, 6, 6, 6, 6] -> [1, 2, 3, 4]
|
[6, 6, 6, 6, 6]
|
[1, 2, 3, 4]
|
c097
|
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 [11, 21, 43, 19], input, and [7, 89, 0, 57]".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[84, 46, 9] -> [11, 21, 43, 19, 84, 46, 9, 7, 89, 0, 57]
[27, 1, 53, 9] -> [11, 21, 43, 19, 27, 1, 53, 9, 7, 89, 0, 57]
[27, 98, 73, 6, 67, 42] -> [11, 21, 43, 19, 27, 98, 73, 6, 67, 42, 7, 89, 0, 57]
[91, 72, 12, 88, 66] -> [11, 21, 43, 19, 91, 72, 12, 88, 66, 7, 89, 0, 57]
[9, 74, 1, 51, 55, 97] -> [11, 21, 43, 19, 9, 74, 1, 51, 55, 97, 7, 89, 0, 57]
[37, 58] -> [11, 21, 43, 19, 37, 58, 7, 89, 0, 57]
[8, 23, 39] -> [11, 21, 43, 19, 8, 23, 39, 7, 89, 0, 57]
[6, 37, 44, 31, 5, 81] -> [11, 21, 43, 19, 6, 37, 44, 31, 5, 81, 7, 89, 0, 57]
Questions:
[81, 3, 68, 8, 99, 80, 6] -> ?
Answer:
|
[81, 3, 68, 8, 99, 80, 6] -> [11, 21, 43, 19, 81, 3, 68, 8, 99, 80, 6, 7, 89, 0, 57]
|
[81, 3, 68, 8, 99, 80, 6]
|
[11, 21, 43, 19, 81, 3, 68, 8, 99, 80, 6, 7, 89, 0, 57]
|
c218
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements 2 and following equal to element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[35, 35, 1, 35, 1, 35, 35, 1] -> [35, 35, 35, 35]
[27, 27, 13, 13, 27, 27, 27, 13, 27, 13] -> [27, 27, 27, 27, 27]
[42, 0, 0, 42, 0, 42, 0, 42, 42, 0] -> [42, 42, 42, 42]
[41, 41, 41, 41, 41, 41, 41, 41] -> [41, 41, 41, 41, 41, 41, 41]
[5, 83, 83, 5, 83, 5, 83, 83, 5, 83] -> [5, 5, 5]
[0, 4, 19, 47, 2, 90, 5, 39, 73, 79] -> []
[43, 43, 43, 43, 43, 43, 43, 43, 43] -> [43, 43, 43, 43, 43, 43, 43, 43]
[6, 6, 6, 6, 6, 6, 6, 6, 6, 6] -> [6, 6, 6, 6, 6, 6, 6, 6, 6]
Questions:
[60, 60, 6, 12, 8, 19, 1, 60, 14, 19] -> ?
Answer:
|
[60, 60, 6, 12, 8, 19, 1, 60, 14, 19] -> [60, 60]
|
[60, 60, 6, 12, 8, 19, 1, 60, 14, 19]
|
[60, 60]
|
c245
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of times element 1 appears in elements 2 and following".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 4, 5, 9, 2, 63, 8] -> [1]
[33, 33, 33, 33, 33, 33, 33] -> [6]
[6, 6, 6, 6, 6, 6, 6, 6, 6, 6] -> [9]
[35, 1, 40, 2, 9, 6, 15, 5, 92, 19] -> [0]
[1, 75, 61, 2, 53, 86, 93, 4] -> [0]
[9, 9, 9, 9, 58, 9, 58, 9] -> [5]
[13, 13, 13, 13, 13, 13, 13, 13] -> [7]
[4, 34, 77, 6, 0, 8, 94, 2, 7] -> [0]
Questions:
[51, 9, 7, 98, 0, 46, 8, 14, 53, 6] -> ?
Answer:
|
[51, 9, 7, 98, 0, 46, 8, 14, 53, 6] -> [0]
|
[51, 9, 7, 98, 0, 46, 8, 14, 53, 6]
|
[0]
|
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:
[7, 72, 4, 1, 0, 39, 78] -> ?
Answer:
|
[7, 72, 4, 1, 0, 39, 78] -> [70, 27, 40, 10, 0, 93, 87]
|
[7, 72, 4, 1, 0, 39, 78]
|
[70, 27, 40, 10, 0, 93, 87]
|
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:
[5, 4, 7, 2, 8, 9, 0] -> ?
Answer:
|
[5, 4, 7, 2, 8, 9, 0] -> [5, 4, 7, 2, 8, 3, 0]
|
[5, 4, 7, 2, 8, 9, 0]
|
[5, 4, 7, 2, 8, 3, 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:
[8, 43, 0, 45, 63, 55, 7, 21, 3, 22] -> ?
Answer:
|
[8, 43, 0, 45, 63, 55, 7, 21, 3, 22] -> [0, 3, 7]
|
[8, 43, 0, 45, 63, 55, 7, 21, 3, 22]
|
[0, 3, 7]
|
c141
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element M + 2 with N, M = element 1, N = element 2; remove elements 1 and 2".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 5, 4, 40, 1, 79, 45, 62, 36] -> [4, 40, 1, 79, 45, 62, 5]
[51, 3, 1, 4, 23, 9, 34, 7] -> [1, 4, 23, 9, 34, 7]
[5, 1, 64, 2, 75, 20, 5, 2, 5] -> [64, 2, 75, 20, 1, 2, 5]
[3, 4, 7, 38, 6, 75, 5, 0, 91, 3] -> [7, 38, 4, 75, 5, 0, 91, 3]
[8, 0, 9, 38, 5, 4, 53, 2, 31, 57] -> [9, 38, 5, 4, 53, 2, 31, 0]
[5, 5, 91, 31, 31, 7, 31, 72] -> [91, 31, 31, 7, 5, 72]
[3, 3, 3, 3, 3, 3, 3] -> [3, 3, 3, 3, 3]
[6, 2, 57, 57, 57, 22, 57, 97, 2] -> [57, 57, 57, 22, 57, 2, 2]
Questions:
[5, 6, 3, 1, 0, 65, 7, 94, 46, 8] -> ?
Answer:
|
[5, 6, 3, 1, 0, 65, 7, 94, 46, 8] -> [3, 1, 0, 65, 6, 94, 46, 8]
|
[5, 6, 3, 1, 0, 65, 7, 94, 46, 8]
|
[3, 1, 0, 65, 6, 94, 46, 8]
|
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:
[82, 8, 34, 72, 1] -> ?
Answer:
|
[82, 8, 34, 72, 1] -> [1, 72, 34, 8, 82, 8, 34, 72, 1]
|
[82, 8, 34, 72, 1]
|
[1, 72, 34, 8, 82, 8, 34, 72, 1]
|
c238
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements that appear exactly once".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 7, 7, 7, 7, 8, 7, 8, 8] -> []
[5, 8, 8, 6, 8, 8] -> [5, 6]
[8, 12, 12, 1, 5, 3] -> [8, 1, 5, 3]
[7, 6, 1, 1, 1, 3, 22] -> [7, 6, 3, 22]
[4, 7, 10, 4, 7, 7, 1] -> [10, 1]
[9, 47, 7, 5, 47, 25, 5, 45, 25] -> [9, 7, 45]
[1, 1, 1, 1, 1, 1, 1] -> []
[0, 6, 0, 15, 1] -> [6, 15, 1]
Questions:
[65, 32, 7, 2, 2, 86] -> ?
Answer:
|
[65, 32, 7, 2, 2, 86] -> [65, 32, 7, 86]
|
[65, 32, 7, 2, 2, 86]
|
[65, 32, 7, 86]
|
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:
[4, 5, 78, 40, 77, 13, 78, 97, 3, 7] -> ?
Answer:
|
[4, 5, 78, 40, 77, 13, 78, 97, 3, 7] -> [4, 5, 78, 13, 78, 97, 3, 7]
|
[4, 5, 78, 40, 77, 13, 78, 97, 3, 7]
|
[4, 5, 78, 13, 78, 97, 3, 7]
|
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:
[0, 9, 5, 4, 2, 7, 3] -> ?
Answer:
|
[0, 9, 5, 4, 2, 7, 3] -> [0, 8, 5, 4, 2, 7, 3]
|
[0, 9, 5, 4, 2, 7, 3]
|
[0, 8, 5, 4, 2, 7, 3]
|
c155
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "multiply each element by its index".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 8, 8, 3, 3, 8, 3] -> [3, 16, 24, 12, 15, 48, 21]
[3, 3, 3, 1, 2, 1] -> [3, 6, 9, 4, 10, 6]
[5, 7, 1, 2, 3, 8, 4, 0, 6] -> [5, 14, 3, 8, 15, 48, 28, 0, 54]
[8, 8, 1, 9, 1, 1] -> [8, 16, 3, 36, 5, 6]
[6, 6, 9, 6, 9, 9, 9, 6] -> [6, 12, 27, 24, 45, 54, 63, 48]
[1, 8, 1, 8, 8, 1, 1] -> [1, 16, 3, 32, 40, 6, 7]
[0, 5, 0, 3, 1, 1, 3, 0, 3] -> [0, 10, 0, 12, 5, 6, 21, 0, 27]
[1, 4, 6, 3, 4, 8, 1] -> [1, 8, 18, 12, 20, 48, 7]
Questions:
[9, 5, 3, 0, 4, 6] -> ?
Answer:
|
[9, 5, 3, 0, 4, 6] -> [9, 10, 9, 0, 20, 36]
|
[9, 5, 3, 0, 4, 6]
|
[9, 10, 9, 0, 20, 36]
|
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:
[99, 26] -> ?
Answer:
|
[99, 26] -> [26, 99, 26]
|
[99, 26]
|
[26, 99, 26]
|
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:
[27, 1, 93] -> ?
Answer:
|
[27, 1, 93] -> [28, 3, 96]
|
[27, 1, 93]
|
[28, 3, 96]
|
c164
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with M / 4 + 5".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 13, 9, 2, 6, 63, 0, 3, 15, 7] -> [7, 8, 7, 5, 6, 20, 5, 5, 8, 6]
[27] -> [11]
[0, 16, 98, 4, 46, 52, 40, 2] -> [5, 9, 29, 6, 16, 18, 15, 5]
[12, 28, 22, 1, 5, 4] -> [8, 12, 10, 5, 6, 6]
[26] -> [11]
[1, 34, 93, 9, 5, 6, 2, 3, 99, 92] -> [5, 13, 28, 7, 6, 6, 5, 5, 29, 28]
[7, 3, 87, 0, 34, 66, 97, 64, 9] -> [6, 5, 26, 5, 13, 21, 29, 21, 7]
[23, 7, 8, 97, 15, 55, 0, 49, 92] -> [10, 6, 7, 29, 8, 18, 5, 17, 28]
Questions:
[33, 12, 76, 5, 62, 3, 25, 58] -> ?
Answer:
|
[33, 12, 76, 5, 62, 3, 25, 58] -> [13, 8, 24, 6, 20, 5, 11, 19]
|
[33, 12, 76, 5, 62, 3, 25, 58]
|
[13, 8, 24, 6, 20, 5, 11, 19]
|
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:
[3, 30, 67, 2, 66] -> ?
Answer:
|
[3, 30, 67, 2, 66] -> [30, 67, 66]
|
[3, 30, 67, 2, 66]
|
[30, 67, 66]
|
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:
[4, 32, 8, 83, 3, 50, 22, 0, 44] -> ?
Answer:
|
[4, 32, 8, 83, 3, 50, 22, 0, 44] -> [36, 40, 91, 86, 53, 72, 22, 44]
|
[4, 32, 8, 83, 3, 50, 22, 0, 44]
|
[36, 40, 91, 86, 53, 72, 22, 44]
|
c189
|
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 the smallest element to the largest element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 7, 5, 5, 5, 5, 7] -> [5, 6, 7]
[57, 65, 65, 57, 65, 57, 65, 57, 65] -> [57, 58, 59, 60, 61, 62, 63, 64, 65]
[9, 12, 9, 9, 12] -> [9, 10, 11, 12]
[4, 8, 4, 3, 6, 4, 3] -> [3, 4, 5, 6, 7, 8]
[77, 64, 77, 64, 64, 64, 77, 77, 64, 77] -> [64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77]
[4, 6, 6, 6, 4] -> [4, 5, 6]
[6, 6, 4, 0, 5, 0, 0, 6, 5] -> [0, 1, 2, 3, 4, 5, 6]
[2, 6, 3, 2] -> [2, 3, 4, 5, 6]
Questions:
[14, 14, 5, 14, 14, 5] -> ?
Answer:
|
[14, 14, 5, 14, 14, 5] -> [5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
|
[14, 14, 5, 14, 14, 5]
|
[5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
|
c034
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 2 and 3".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 6, 8, 9, 2] -> [1, 8, 6, 9, 2]
[1, 4, 3, 8, 5, 0, 2] -> [1, 3, 4, 8, 5, 0, 2]
[9, 0, 3, 1, 7, 2, 6, 5] -> [9, 3, 0, 1, 7, 2, 6, 5]
[0, 8, 5, 4, 3, 2, 7] -> [0, 5, 8, 4, 3, 2, 7]
[7, 6, 2, 5, 0, 9, 1, 8, 3] -> [7, 2, 6, 5, 0, 9, 1, 8, 3]
[9, 4, 0, 5] -> [9, 0, 4, 5]
[2, 4, 6, 1, 7, 9] -> [2, 6, 4, 1, 7, 9]
[0, 6, 4, 7, 1] -> [0, 4, 6, 7, 1]
Questions:
[6, 8, 0] -> ?
Answer:
|
[6, 8, 0] -> [6, 0, 8]
|
[6, 8, 0]
|
[6, 0, 8]
|
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:
[0, 7, 5] -> ?
Answer:
|
[0, 7, 5] -> [1, 9, 8]
|
[0, 7, 5]
|
[1, 9, 8]
|
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:
[73, 6, 30, 4, 77, 54, 3, 21, 8] -> ?
Answer:
|
[73, 6, 30, 4, 77, 54, 3, 21, 8] -> [4, 6, 30, 73, 77, 54, 3, 21, 8]
|
[73, 6, 30, 4, 77, 54, 3, 21, 8]
|
[4, 6, 30, 73, 77, 54, 3, 21, 8]
|
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:
[7, 5, 75, 6, 85, 36, 27] -> ?
Answer:
|
[7, 5, 75, 6, 85, 36, 27] -> [5, 75, 6, 85, 36]
|
[7, 5, 75, 6, 85, 36, 27]
|
[5, 75, 6, 85, 36]
|
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:
[0, 4] -> ?
Answer:
|
[0, 4] -> [0, 4]
|
[0, 4]
|
[0, 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:
[93, 8] -> ?
Answer:
|
[93, 8] -> [93, 1, 8, 2]
|
[93, 8]
|
[93, 1, 8, 2]
|
c078
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "maximum element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 7, 1, 2, 0, 3, 9, 4] -> [9]
[2, 4] -> [4]
[1, 9, 5, 7, 4, 6, 2, 3] -> [9]
[2, 7, 4, 3, 5, 0, 6, 1] -> [7]
[0, 6, 5] -> [6]
[2, 7, 0, 8, 3] -> [8]
[0, 1] -> [1]
[8, 1, 9, 6, 3, 0, 2, 4, 5, 7] -> [9]
Questions:
[1, 8, 7, 4, 2, 6] -> ?
Answer:
|
[1, 8, 7, 4, 2, 6] -> [8]
|
[1, 8, 7, 4, 2, 6]
|
[8]
|
c156
|
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 input and add each element to its new index".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 64, 6, 94, 79, 5, 9, 26] -> [27, 11, 8, 83, 99, 12, 71, 12]
[3, 25, 2, 83, 1, 5, 0, 19, 9, 64] -> [65, 11, 22, 4, 10, 7, 90, 10, 34, 13]
[3, 59, 76, 6, 81, 1] -> [2, 83, 9, 80, 64, 9]
[11, 17, 1, 5, 62, 10, 14] -> [15, 12, 65, 9, 6, 23, 18]
[4, 76, 71, 2, 52, 6, 94, 1] -> [2, 96, 9, 56, 7, 77, 83, 12]
[66, 7, 5, 4, 12, 6, 16, 70, 37] -> [38, 72, 19, 10, 17, 10, 12, 15, 75]
[92, 1, 7, 9, 69, 6] -> [7, 71, 12, 11, 6, 98]
[6, 18, 8, 1, 3, 2, 17] -> [18, 4, 6, 5, 13, 24, 13]
Questions:
[5, 76, 54, 42, 84, 48, 35, 4] -> ?
Answer:
|
[5, 76, 54, 42, 84, 48, 35, 4] -> [5, 37, 51, 88, 47, 60, 83, 13]
|
[5, 76, 54, 42, 84, 48, 35, 4]
|
[5, 37, 51, 88, 47, 60, 83, 13]
|
c154
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "triple each even element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 1, 1, 20, 37, 3] -> [7, 1, 1, 60, 37, 3]
[3, 5, 0, 8, 6, 7, 27, 4, 2, 9] -> [3, 5, 0, 24, 18, 7, 27, 12, 6, 9]
[91, 6, 1, 55, 28, 91] -> [91, 18, 1, 55, 84, 91]
[63, 7, 1, 2, 77, 57, 0, 5] -> [63, 7, 1, 6, 77, 57, 0, 5]
[10, 93, 22, 10, 5, 10] -> [30, 93, 66, 30, 5, 30]
[33, 2, 0, 21, 6, 28, 3, 8, 4] -> [33, 6, 0, 21, 18, 84, 3, 24, 12]
[77, 8, 1, 77, 3, 9, 7, 4] -> [77, 24, 1, 77, 3, 9, 7, 12]
[6, 9, 43, 7, 65, 7] -> [18, 9, 43, 7, 65, 7]
Questions:
[6, 3, 9, 4, 3, 43] -> ?
Answer:
|
[6, 3, 9, 4, 3, 43] -> [18, 3, 9, 12, 3, 43]
|
[6, 3, 9, 4, 3, 43]
|
[18, 3, 9, 12, 3, 43]
|
c219
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only every other element, starting from the end of the list".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 1, 25, 6, 27, 27, 61, 20, 33] -> [3, 25, 27, 61, 33]
[5, 50, 75, 58, 64, 30, 26] -> [5, 75, 64, 26]
[5, 1, 18, 89, 17, 35, 58] -> [5, 18, 17, 58]
[48, 6, 25, 14, 3, 55, 47, 38, 1] -> [48, 25, 3, 47, 1]
[8, 3, 67, 89, 18, 73, 7, 6] -> [3, 89, 73, 6]
[91, 51, 6, 5, 0, 1, 8, 61, 4, 95] -> [51, 5, 1, 61, 95]
[85, 58, 98, 9, 41, 61, 7, 6, 67] -> [85, 98, 41, 7, 67]
[32, 67, 9, 48, 3, 6, 7, 0, 8] -> [32, 9, 3, 7, 8]
Questions:
[88, 80, 1, 51, 91, 5, 4] -> ?
Answer:
|
[88, 80, 1, 51, 91, 5, 4] -> [88, 1, 91, 4]
|
[88, 80, 1, 51, 91, 5, 4]
|
[88, 1, 91, 4]
|
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:
[2, 1, 9, 6, 3, 5, 4, 8] -> ?
Answer:
|
[2, 1, 9, 6, 3, 5, 4, 8] -> [8, 4, 5, 3, 6, 9, 1, 2]
|
[2, 1, 9, 6, 3, 5, 4, 8]
|
[8, 4, 5, 3, 6, 9, 1, 2]
|
c039
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "append 3 if the list length is 3, else append 9 if the list length is 9".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 2, 7, 0, 5, 1, 6, 4, 8] -> [9, 2, 7, 0, 5, 1, 6, 4, 8, 9]
[2, 0, 5, 3, 7, 6, 1, 9, 8] -> [2, 0, 5, 3, 7, 6, 1, 9, 8, 9]
[6, 2, 0] -> [6, 2, 0, 3]
[0, 9, 8, 2, 7, 5, 4, 1, 6] -> [0, 9, 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:
[9, 3, 1, 8, 7, 4, 6] -> ?
Answer:
|
[9, 3, 1, 8, 7, 4, 6] -> [9, 3, 1, 8, 7, 4, 6]
|
[9, 3, 1, 8, 7, 4, 6]
|
[9, 3, 1, 8, 7, 4, 6]
|
c136
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the first occurrence of the largest element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[64, 3, 64, 64, 1, 55] -> [3, 64, 64, 1, 55]
[5, 24, 11, 26, 73, 41, 60, 73] -> [5, 24, 11, 26, 41, 60, 73]
[82, 5, 82, 82, 81, 12, 31, 5, 31] -> [5, 82, 82, 81, 12, 31, 5, 31]
[59, 4, 5, 16, 59, 9] -> [4, 5, 16, 59, 9]
[0, 78, 78, 9, 78] -> [0, 78, 9, 78]
[25, 25] -> [25]
[71, 1, 0, 22, 6, 18, 4, 99, 3, 87] -> [71, 1, 0, 22, 6, 18, 4, 3, 87]
[4, 1, 40, 56, 71, 8, 45, 3, 13] -> [4, 1, 40, 56, 8, 45, 3, 13]
Questions:
[58, 4, 58, 58] -> ?
Answer:
|
[58, 4, 58, 58] -> [4, 58, 58]
|
[58, 4, 58, 58]
|
[4, 58, 58]
|
c020
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace the first element with the last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 1, 7, 8, 9, 4, 0, 3, 2] -> [2, 1, 7, 8, 9, 4, 0, 3, 2]
[0, 8, 5, 2, 7, 1, 4, 6, 9, 3] -> [3, 8, 5, 2, 7, 1, 4, 6, 9, 3]
[7, 1, 0, 6, 3] -> [3, 1, 0, 6, 3]
[5, 8, 6, 1, 0, 9, 7] -> [7, 8, 6, 1, 0, 9, 7]
[3, 8, 6, 0] -> [0, 8, 6, 0]
[8, 5, 7, 4, 2, 3, 6] -> [6, 5, 7, 4, 2, 3, 6]
[0, 7, 1, 3, 4, 9, 6, 5] -> [5, 7, 1, 3, 4, 9, 6, 5]
[1, 4, 9, 8, 2, 0, 5, 3, 6, 7] -> [7, 4, 9, 8, 2, 0, 5, 3, 6, 7]
Questions:
[8, 3] -> ?
Answer:
|
[8, 3] -> [3, 3]
|
[8, 3]
|
[3, 3]
|
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:
[3] -> ?
Answer:
|
[3] -> [3, 3, 3, 3, 3, 3, 3, 3, 3, 3]
|
[3]
|
[3, 3, 3, 3, 3, 3, 3, 3, 3, 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:
[6, 5, 8] -> ?
Answer:
|
[6, 5, 8] -> [8, 5, 6]
|
[6, 5, 8]
|
[8, 5, 6]
|
c156
|
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 input and add each element to its new index".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 64, 6, 94, 79, 5, 9, 26] -> [27, 11, 8, 83, 99, 12, 71, 12]
[3, 25, 2, 83, 1, 5, 0, 19, 9, 64] -> [65, 11, 22, 4, 10, 7, 90, 10, 34, 13]
[3, 59, 76, 6, 81, 1] -> [2, 83, 9, 80, 64, 9]
[11, 17, 1, 5, 62, 10, 14] -> [15, 12, 65, 9, 6, 23, 18]
[4, 76, 71, 2, 52, 6, 94, 1] -> [2, 96, 9, 56, 7, 77, 83, 12]
[66, 7, 5, 4, 12, 6, 16, 70, 37] -> [38, 72, 19, 10, 17, 10, 12, 15, 75]
[92, 1, 7, 9, 69, 6] -> [7, 71, 12, 11, 6, 98]
[6, 18, 8, 1, 3, 2, 17] -> [18, 4, 6, 5, 13, 24, 13]
Questions:
[54, 11, 5, 88, 3, 9, 7, 6, 35, 35] -> ?
Answer:
|
[54, 11, 5, 88, 3, 9, 7, 6, 35, 35] -> [36, 37, 9, 11, 14, 9, 95, 13, 20, 64]
|
[54, 11, 5, 88, 3, 9, 7, 6, 35, 35]
|
[36, 37, 9, 11, 14, 9, 95, 13, 20, 64]
|
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, 87, 96, 6, 34, 0, 8, 82, 5, 9] -> ?
Answer:
|
[9, 87, 96, 6, 34, 0, 8, 82, 5, 9] -> [34]
|
[9, 87, 96, 6, 34, 0, 8, 82, 5, 9]
|
[34]
|
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:
[0] -> ?
Answer:
|
[0] -> [0, 3]
|
[0]
|
[0, 3]
|
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:
[4, 94, 72, 6, 10, 8] -> ?
Answer:
|
[4, 94, 72, 6, 10, 8] -> [40, 49, 27, 60, 1, 80]
|
[4, 94, 72, 6, 10, 8]
|
[40, 49, 27, 60, 1, 80]
|
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:
[92, 74, 69, 73, 64] -> ?
Answer:
|
[92, 74, 69, 73, 64] -> [69, 73, 92, 74, 64]
|
[92, 74, 69, 73, 64]
|
[69, 73, 92, 74, 64]
|
c179
|
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 largest element, append the second largest, prepend the third largest, append the fourth largest, and so on".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 40, 48, 86, 15, 6, 68] -> [6, 40, 68, 86, 48, 15, 1]
[77, 49, 2, 27, 16, 85] -> [16, 49, 85, 77, 27, 2]
[4, 24, 81, 0, 59, 98, 63, 6, 1] -> [1, 6, 59, 81, 98, 63, 24, 4, 0]
[75, 68, 2, 8, 9, 50, 1] -> [2, 9, 68, 75, 50, 8, 1]
[50, 35, 76, 52, 39, 66, 2, 92, 6] -> [6, 39, 52, 76, 92, 66, 50, 35, 2]
[8, 9, 12, 2, 5, 98, 13, 93] -> [5, 9, 13, 98, 93, 12, 8, 2]
[48, 9, 5, 3, 32, 40, 67, 16, 8, 95] -> [5, 9, 32, 48, 95, 67, 40, 16, 8, 3]
[7, 31, 13, 9, 30, 4, 73, 24, 1, 5] -> [4, 7, 13, 30, 73, 31, 24, 9, 5, 1]
Questions:
[0, 41, 30, 75, 4, 95, 7, 2, 90, 47] -> ?
Answer:
|
[0, 41, 30, 75, 4, 95, 7, 2, 90, 47] -> [2, 7, 41, 75, 95, 90, 47, 30, 4, 0]
|
[0, 41, 30, 75, 4, 95, 7, 2, 90, 47]
|
[2, 7, 41, 75, 95, 90, 47, 30, 4, 0]
|
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:
[6, 8] -> ?
Answer:
|
[6, 8] -> [8]
|
[6, 8]
|
[8]
|
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:
[7, 6, 0, 9, 5, 3, 2, 4, 1, 8] -> ?
Answer:
|
[7, 6, 0, 9, 5, 3, 2, 4, 1, 8] -> [0]
|
[7, 6, 0, 9, 5, 3, 2, 4, 1, 8]
|
[0]
|
c196
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate [17, 38, 82], input, and [1, 55, 27]".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[22] -> [17, 38, 82, 22, 1, 55, 27]
[2, 0, 73, 50] -> [17, 38, 82, 2, 0, 73, 50, 1, 55, 27]
[12, 94, 98] -> [17, 38, 82, 12, 94, 98, 1, 55, 27]
[36, 1, 78, 8, 0] -> [17, 38, 82, 36, 1, 78, 8, 0, 1, 55, 27]
[35, 4, 0, 64, 1] -> [17, 38, 82, 35, 4, 0, 64, 1, 1, 55, 27]
[7] -> [17, 38, 82, 7, 1, 55, 27]
[14, 77, 52, 70, 29] -> [17, 38, 82, 14, 77, 52, 70, 29, 1, 55, 27]
[61] -> [17, 38, 82, 61, 1, 55, 27]
Questions:
[53, 98] -> ?
Answer:
|
[53, 98] -> [17, 38, 82, 53, 98, 1, 55, 27]
|
[53, 98]
|
[17, 38, 82, 53, 98, 1, 55, 27]
|
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:
[2, 0, 9, 5, 3, 6, 8, 7, 4] -> ?
Answer:
|
[2, 0, 9, 5, 3, 6, 8, 7, 4] -> [2, 8, 9, 5, 3, 6, 8, 7, 4]
|
[2, 0, 9, 5, 3, 6, 8, 7, 4]
|
[2, 8, 9, 5, 3, 6, 8, 7, 4]
|
c109
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "product of elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[69] -> [69]
[5, 5, 1, 1, 1, 1] -> [25]
[43, 2] -> [86]
[2, 1, 1, 1, 1, 18, 2] -> [72]
[4, 8] -> [32]
[95] -> [95]
[1, 1, 9, 1, 1] -> [9]
[4, 6] -> [24]
Questions:
[79] -> ?
Answer:
|
[79] -> [79]
|
[79]
|
[79]
|
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:
[8, 3, 6, 5] -> ?
Answer:
|
[8, 3, 6, 5] -> [6]
|
[8, 3, 6, 5]
|
[6]
|
c123
|
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, N = last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[86, 60, 7, 60, 4] -> [60]
[7, 18, 93, 10, 5, 3, 4, 3] -> [93]
[7, 6, 63, 7, 6, 65, 0, 50, 3] -> [63]
[5, 56, 7, 2] -> [56]
[14, 42, 76, 79, 3] -> [76]
[78, 6, 17, 9, 58, 9, 3, 72, 47, 1] -> [78]
[34, 41, 2] -> [41]
[7, 3, 5, 48, 62, 54, 87, 5] -> [62]
Questions:
[1, 91, 26, 2, 9, 7, 3] -> ?
Answer:
|
[1, 91, 26, 2, 9, 7, 3] -> [26]
|
[1, 91, 26, 2, 9, 7, 3]
|
[26]
|
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:
[25, 38, 1, 88, 9, 63, 15, 74] -> ?
Answer:
|
[25, 38, 1, 88, 9, 63, 15, 74] -> [1, 15, 25, 9, 63, 38, 74, 88]
|
[25, 38, 1, 88, 9, 63, 15, 74]
|
[1, 15, 25, 9, 63, 38, 74, 88]
|
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:
[82, 72, 2, 43, 3, 28, 5, 4, 53, 82] -> ?
Answer:
|
[82, 72, 2, 43, 3, 28, 5, 4, 53, 82] -> [2, 72, 2, 43, 3, 28, 5, 4, 53, 2]
|
[82, 72, 2, 43, 3, 28, 5, 4, 53, 82]
|
[2, 72, 2, 43, 3, 28, 5, 4, 53, 2]
|
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:
[73, 66, 24, 90, 1] -> ?
Answer:
|
[73, 66, 24, 90, 1] -> []
|
[73, 66, 24, 90, 1]
|
[]
|
c209
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements in ascending order; insert sum of smallest and largest elements at index 3".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[94, 76, 5] -> [5, 76, 99, 94]
[53, 17, 64] -> [17, 53, 81, 64]
[77, 21, 20, 2] -> [2, 20, 79, 21, 77]
[2, 39, 42] -> [2, 39, 44, 42]
[7, 76, 86] -> [7, 76, 93, 86]
[8, 1, 35, 56, 32, 63] -> [1, 8, 64, 32, 35, 56, 63]
[96, 28, 3, 11, 0] -> [0, 3, 96, 11, 28, 96]
[2, 4, 3, 54] -> [2, 3, 56, 4, 54]
Questions:
[3, 0, 77, 23] -> ?
Answer:
|
[3, 0, 77, 23] -> [0, 3, 77, 23, 77]
|
[3, 0, 77, 23]
|
[0, 3, 77, 23, 77]
|
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:
[5] -> ?
Answer:
|
[5] -> []
|
[5]
|
[]
|
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:
[16, 7, 23, 57] -> ?
Answer:
|
[16, 7, 23, 57] -> [17, 9, 26, 61]
|
[16, 7, 23, 57]
|
[17, 9, 26, 61]
|
c121
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[99, 62, 65, 0, 95] -> [95]
[6, 8, 39] -> [39]
[38, 2] -> [2]
[56, 65, 74] -> [74]
[19, 32, 3, 78, 41, 51, 8, 80] -> [80]
[3, 53, 92, 4, 9, 19, 38, 61, 27] -> [27]
[36, 22, 3, 55, 23] -> [23]
[98, 65, 84] -> [84]
Questions:
[7, 6, 12, 72, 96, 63] -> ?
Answer:
|
[7, 6, 12, 72, 96, 63] -> [63]
|
[7, 6, 12, 72, 96, 63]
|
[63]
|
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:
[2, 6, 5, 7, 8, 0, 4, 3, 1, 9] -> ?
Answer:
|
[2, 6, 5, 7, 8, 0, 4, 3, 1, 9] -> [9, 1, 3, 4, 0, 8, 7, 5, 6, 2]
|
[2, 6, 5, 7, 8, 0, 4, 3, 1, 9]
|
[9, 1, 3, 4, 0, 8, 7, 5, 6, 2]
|
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:
[0, 1, 6] -> ?
Answer:
|
[0, 1, 6] -> [0, 1, 6, 0, 1, 6]
|
[0, 1, 6]
|
[0, 1, 6, 0, 1, 6]
|
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:
[94, 28, 87] -> ?
Answer:
|
[94, 28, 87] -> [9, 2, 8]
|
[94, 28, 87]
|
[9, 2, 8]
|
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:
[0, 8, 5] -> ?
Answer:
|
[0, 8, 5] -> [0, 5]
|
[0, 8, 5]
|
[0, 5]
|
c123
|
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, N = last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[86, 60, 7, 60, 4] -> [60]
[7, 18, 93, 10, 5, 3, 4, 3] -> [93]
[7, 6, 63, 7, 6, 65, 0, 50, 3] -> [63]
[5, 56, 7, 2] -> [56]
[14, 42, 76, 79, 3] -> [76]
[78, 6, 17, 9, 58, 9, 3, 72, 47, 1] -> [78]
[34, 41, 2] -> [41]
[7, 3, 5, 48, 62, 54, 87, 5] -> [62]
Questions:
[61, 56, 5, 84, 25, 2, 4] -> ?
Answer:
|
[61, 56, 5, 84, 25, 2, 4] -> [84]
|
[61, 56, 5, 84, 25, 2, 4]
|
[84]
|
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:
[9, 3, 5, 54, 9, 3, 76, 76, 94, 3] -> ?
Answer:
|
[9, 3, 5, 54, 9, 3, 76, 76, 94, 3] -> [9, 5, 54, 9, 76, 76, 94]
|
[9, 3, 5, 54, 9, 3, 76, 76, 94, 3]
|
[9, 5, 54, 9, 76, 76, 94]
|
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:
[6, 17, 70, 5, 26, 61, 2, 17] -> ?
Answer:
|
[6, 17, 70, 5, 26, 61, 2, 17] -> [6, 17, 70, 70, 70, 70, 70, 70]
|
[6, 17, 70, 5, 26, 61, 2, 17]
|
[6, 17, 70, 70, 70, 70, 70, 70]
|
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:
[2, 9] -> ?
Answer:
|
[2, 9] -> [2]
|
[2, 9]
|
[2]
|
c055
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 3 and elements 2 and 4".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 7, 9, 8, 6] -> [9, 8, 5, 7, 6]
[4, 3, 2, 8, 9, 6, 7, 1, 0] -> [2, 8, 4, 3, 9, 6, 7, 1, 0]
[3, 8, 0, 7] -> [0, 7, 3, 8]
[3, 8, 7, 0, 9, 6, 5, 2, 4] -> [7, 0, 3, 8, 9, 6, 5, 2, 4]
[0, 3, 7, 1, 5, 8, 9, 6, 4, 2] -> [7, 1, 0, 3, 5, 8, 9, 6, 4, 2]
[7, 1, 8, 0, 3, 4, 9] -> [8, 0, 7, 1, 3, 4, 9]
[9, 4] -> [9, 4]
[9, 6, 8, 7, 5, 0, 1, 4] -> [8, 7, 9, 6, 5, 0, 1, 4]
Questions:
[8, 2, 9, 4, 1, 7] -> ?
Answer:
|
[8, 2, 9, 4, 1, 7] -> [9, 4, 8, 2, 1, 7]
|
[8, 2, 9, 4, 1, 7]
|
[9, 4, 8, 2, 1, 7]
|
c044
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 6, 6, 6, 6] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[5, 7, 3] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[7, 6, 6, 6, 6, 7, 7, 6, 6, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[7, 7, 7, 7, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[8, 5, 2, 8, 7, 1] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[6, 6, 6, 6, 6, 6, 6] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[8, 8, 1, 2, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[6, 3, 0, 6, 7, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
Questions:
[1, 6, 5] -> ?
Answer:
|
[1, 6, 5] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
|
[1, 6, 5]
|
[1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
|
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:
[33, 44, 2, 0, 9, 62, 26, 92, 4] -> ?
Answer:
|
[33, 44, 2, 0, 9, 62, 26, 92, 4] -> [92, 4, 9, 33, 0]
|
[33, 44, 2, 0, 9, 62, 26, 92, 4]
|
[92, 4, 9, 33, 0]
|
c190
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count by 2 from the first element to the last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 84, 9] -> [1, 3, 5, 7, 9]
[44, 7, 45, 40, 2, 8, 3, 6, 26] -> []
[68, 1, 84] -> [68, 70, 72, 74, 76, 78, 80, 82, 84]
[62, 45, 75, 38, 97, 7, 2, 0] -> []
[3, 6, 7, 82, 70, 5] -> [3, 5]
[0, 99, 9, 0, 4, 4] -> [0, 2, 4]
[8, 56, 8, 42, 14] -> [8, 10, 12, 14]
[9, 13] -> [9, 11, 13]
Questions:
[3, 11] -> ?
Answer:
|
[3, 11] -> [3, 5, 7, 9, 11]
|
[3, 11]
|
[3, 5, 7, 9, 11]
|
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:
[39, 10, 7] -> ?
Answer:
|
[39, 10, 7] -> [39, 39, 39, 39, 39, 39, 39, 39, 39, 39]
|
[39, 10, 7]
|
[39, 39, 39, 39, 39, 39, 39, 39, 39, 39]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.