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
|
---|---|---|---|---|---|
c111
|
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 the largest element N times, where N is the smallest element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[90, 5] -> [90, 90, 90, 90, 90]
[61, 9, 39, 47, 46] -> [61, 61, 61, 61, 61, 61, 61, 61, 61]
[10] -> [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]
[91, 10] -> [91, 91, 91, 91, 91, 91, 91, 91, 91, 91]
[62, 88, 8, 74, 9, 7, 4] -> [88, 88, 88, 88]
[38, 39, 1] -> [39]
[6, 62] -> [62, 62, 62, 62, 62, 62]
[0, 30, 25, 57, 2, 5] -> []
Questions:
[25, 0, 59, 4, 6, 70, 73, 37, 7, 1] -> ?
Answer:
|
[25, 0, 59, 4, 6, 70, 73, 37, 7, 1] -> []
|
[25, 0, 59, 4, 6, 70, 73, 37, 7, 1]
|
[]
|
c088
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 4 if element 2 = element 3, else swap elements 2 and 3".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 9, 9, 4, 67, 67, 2] -> [4, 9, 9, 7, 67, 67, 2]
[6, 6, 38, 6, 12, 2, 2, 21, 13, 6] -> [6, 38, 6, 6, 12, 2, 2, 21, 13, 6]
[1, 6, 4, 1, 26, 48, 0] -> [1, 4, 6, 1, 26, 48, 0]
[67, 87, 9, 67, 87] -> [67, 9, 87, 67, 87]
[97, 90, 8, 97] -> [97, 8, 90, 97]
[11, 1, 1, 24] -> [24, 1, 1, 11]
[25, 84, 60, 25, 0, 60, 77, 5] -> [25, 60, 84, 25, 0, 60, 77, 5]
[26, 27, 27, 0, 26, 27, 26, 0] -> [0, 27, 27, 26, 26, 27, 26, 0]
Questions:
[9, 6, 0, 9, 9] -> ?
Answer:
|
[9, 6, 0, 9, 9] -> [9, 0, 6, 9, 9]
|
[9, 6, 0, 9, 9]
|
[9, 0, 6, 9, 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:
[7, 66, 57, 8, 5, 0, 35, 78] -> ?
Answer:
|
[7, 66, 57, 8, 5, 0, 35, 78] -> [78, 78, 8, 7, 0]
|
[7, 66, 57, 8, 5, 0, 35, 78]
|
[78, 78, 8, 7, 0]
|
c163
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with 2 * M - 10".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 8, 5, 35] -> [0, 6, 0, 60]
[21, 6, 6, 21, 21] -> [32, 2, 2, 32, 32]
[48, 48, 48, 47, 48] -> [86, 86, 86, 84, 86]
[8, 8, 8, 8, 8] -> [6, 6, 6, 6, 6]
[21, 7, 5, 33] -> [32, 4, 0, 56]
[7, 17, 17, 7] -> [4, 24, 24, 4]
[5] -> [0]
[5, 14, 9, 51] -> [0, 18, 8, 92]
Questions:
[13, 9, 9, 9] -> ?
Answer:
|
[13, 9, 9, 9] -> [16, 8, 8, 8]
|
[13, 9, 9, 9]
|
[16, 8, 8, 8]
|
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:
[76, 92, 8, 69, 43, 91, 4] -> ?
Answer:
|
[76, 92, 8, 69, 43, 91, 4] -> [42, 18, 0, 54, 12, 9, 0]
|
[76, 92, 8, 69, 43, 91, 4]
|
[42, 18, 0, 54, 12, 9, 0]
|
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:
[9, 2, 1, 0, 8] -> ?
Answer:
|
[9, 2, 1, 0, 8] -> [9, 5, 2, 1, 0, 8]
|
[9, 2, 1, 0, 8]
|
[9, 5, 2, 1, 0, 8]
|
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:
[39, 0] -> ?
Answer:
|
[39, 0] -> [1, 1]
|
[39, 0]
|
[1, 1]
|
c196
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate [17, 38, 82], input, and [1, 55, 27]".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[22] -> [17, 38, 82, 22, 1, 55, 27]
[2, 0, 73, 50] -> [17, 38, 82, 2, 0, 73, 50, 1, 55, 27]
[12, 94, 98] -> [17, 38, 82, 12, 94, 98, 1, 55, 27]
[36, 1, 78, 8, 0] -> [17, 38, 82, 36, 1, 78, 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:
[9, 19, 49, 3, 6] -> ?
Answer:
|
[9, 19, 49, 3, 6] -> [17, 38, 82, 9, 19, 49, 3, 6, 1, 55, 27]
|
[9, 19, 49, 3, 6]
|
[17, 38, 82, 9, 19, 49, 3, 6, 1, 55, 27]
|
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, 2, 1, 4, 8, 0, 6, 9, 3, 7] -> ?
Answer:
|
[5, 2, 1, 4, 8, 0, 6, 9, 3, 7] -> [5, 2, 1, 4, 8, 0, 6, 9, 3]
|
[5, 2, 1, 4, 8, 0, 6, 9, 3, 7]
|
[5, 2, 1, 4, 8, 0, 6, 9, 3]
|
c108
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "sum of elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 83] -> [86]
[10, 0, 59, 5, 1, 9, 4] -> [88]
[14, 4, 12] -> [30]
[6, 0, 3, 82] -> [91]
[5, 7, 4, 2] -> [18]
[] -> [0]
[62] -> [62]
[22, 6, 1] -> [29]
Questions:
[2, 6, 73] -> ?
Answer:
|
[2, 6, 73] -> [81]
|
[2, 6, 73]
|
[81]
|
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:
[75, 44, 15, 87, 2] -> ?
Answer:
|
[75, 44, 15, 87, 2] -> [75, 44, 15, 87, 2]
|
[75, 44, 15, 87, 2]
|
[75, 44, 15, 87, 2]
|
c244
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of 3s".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[95, 5, 0, 7, 9, 99, 6, 8] -> [0]
[37, 81, 73, 4, 87, 9, 1, 93, 7] -> [0]
[8, 27, 4, 44, 65, 9, 3, 5, 7] -> [1]
[0, 3, 2, 7, 9, 4, 15, 64, 1, 6] -> [1]
[68, 1, 69, 32, 43, 8, 25, 6, 9] -> [0]
[1, 24, 83, 71, 50, 3, 2, 8, 12, 63] -> [1]
[3, 3, 3, 3, 3, 3, 3, 3, 3, 3] -> [10]
[3, 3, 3, 10, 46, 3, 3] -> [5]
Questions:
[3, 3, 3, 3, 3, 3, 3, 3, 3] -> ?
Answer:
|
[3, 3, 3, 3, 3, 3, 3, 3, 3] -> [9]
|
[3, 3, 3, 3, 3, 3, 3, 3, 3]
|
[9]
|
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:
[57, 55, 42, 99, 4, 7, 9, 37] -> ?
Answer:
|
[57, 55, 42, 99, 4, 7, 9, 37] -> [7, 37, 55, 99, 57, 42, 9, 4]
|
[57, 55, 42, 99, 4, 7, 9, 37]
|
[7, 37, 55, 99, 57, 42, 9, 4]
|
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:
[4, 6, 1, 9, 5, 7, 2, 3, 0, 8] -> ?
Answer:
|
[4, 6, 1, 9, 5, 7, 2, 3, 0, 8] -> [2]
|
[4, 6, 1, 9, 5, 7, 2, 3, 0, 8]
|
[2]
|
c132
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 3".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 4, 44, 78] -> [1, 4, 78]
[7, 34, 4, 59, 45] -> [7, 34, 59, 45]
[6, 78, 9, 56, 10, 7, 8] -> [6, 78, 56, 10, 7, 8]
[64, 31, 6, 28, 46] -> [64, 31, 28, 46]
[42, 21, 31, 2, 7, 3, 1, 9] -> [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:
[79, 60, 85, 27] -> ?
Answer:
|
[79, 60, 85, 27] -> [79, 60, 27]
|
[79, 60, 85, 27]
|
[79, 60, 27]
|
c239
|
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 repetitions in the input".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[93, 94, 7, 29, 36, 9, 1, 5, 94, 2] -> [1]
[88, 4, 7, 49, 5, 49, 2] -> [1]
[0, 88, 7, 2, 88] -> [1]
[86, 4, 2, 3, 66, 11, 89] -> [0]
[9, 74] -> [0]
[9, 48, 5, 5, 9, 5, 48, 41, 5] -> [5]
[60, 3, 8, 6, 95, 60, 15, 64, 45] -> [1]
[54, 7, 72, 6, 64, 24, 1, 19, 95] -> [0]
Questions:
[7, 11, 6, 66, 78, 5, 32, 41, 77, 40] -> ?
Answer:
|
[7, 11, 6, 66, 78, 5, 32, 41, 77, 40] -> [0]
|
[7, 11, 6, 66, 78, 5, 32, 41, 77, 40]
|
[0]
|
c075
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove every element with an even index".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 4, 0] -> [9, 0]
[2, 4, 6, 3, 0, 8, 7] -> [2, 6, 0, 7]
[2, 4, 8, 0] -> [2, 8]
[3, 6, 5, 9, 0, 7, 2, 4, 8] -> [3, 5, 0, 2, 8]
[9, 0, 6, 4, 1, 5, 7, 2, 3, 8] -> [9, 6, 1, 7, 3]
[3, 0, 5, 1, 9, 8, 6, 2] -> [3, 5, 9, 6]
[3, 2, 7, 5, 8, 1, 9] -> [3, 7, 8, 9]
[1, 7, 8, 6, 3, 9, 2, 4, 5] -> [1, 8, 3, 2, 5]
Questions:
[] -> ?
Answer:
|
[] -> []
|
[]
|
[]
|
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:
[0, 0, 7, 7, 5, 5, 6] -> ?
Answer:
|
[0, 0, 7, 7, 5, 5, 6] -> [0, 0, 21, 28, 25, 30, 42]
|
[0, 0, 7, 7, 5, 5, 6]
|
[0, 0, 21, 28, 25, 30, 42]
|
c111
|
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 the largest element N times, where N is the smallest element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[90, 5] -> [90, 90, 90, 90, 90]
[61, 9, 39, 47, 46] -> [61, 61, 61, 61, 61, 61, 61, 61, 61]
[10] -> [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]
[91, 10] -> [91, 91, 91, 91, 91, 91, 91, 91, 91, 91]
[62, 88, 8, 74, 9, 7, 4] -> [88, 88, 88, 88]
[38, 39, 1] -> [39]
[6, 62] -> [62, 62, 62, 62, 62, 62]
[0, 30, 25, 57, 2, 5] -> []
Questions:
[36, 1, 44, 15, 20, 4, 62, 82, 21] -> ?
Answer:
|
[36, 1, 44, 15, 20, 4, 62, 82, 21] -> [82]
|
[36, 1, 44, 15, 20, 4, 62, 82, 21]
|
[82]
|
c162
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with 3 * M + 7".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 8, 1, 7, 1, 3] -> [31, 31, 10, 28, 10, 16]
[15, 6, 6, 16, 2, 6, 1, 6, 1, 15] -> [52, 25, 25, 55, 13, 25, 10, 25, 10, 52]
[6, 10, 0, 1, 10, 10, 8, 2, 6] -> [25, 37, 7, 10, 37, 37, 31, 13, 25]
[5, 4, 11, 16, 0, 8, 2] -> [22, 19, 40, 55, 7, 31, 13]
[4, 8, 10, 14, 0, 3, 6] -> [19, 31, 37, 49, 7, 16, 25]
[16, 9, 5, 4, 0, 7] -> [55, 34, 22, 19, 7, 28]
[1, 4, 4, 15, 1, 13, 1, 4, 7, 10] -> [10, 19, 19, 52, 10, 46, 10, 19, 28, 37]
[0, 9, 3, 3, 9, 9] -> [7, 34, 16, 16, 34, 34]
Questions:
[1, 4, 4, 1, 5, 5] -> ?
Answer:
|
[1, 4, 4, 1, 5, 5] -> [10, 19, 19, 10, 22, 22]
|
[1, 4, 4, 1, 5, 5]
|
[10, 19, 19, 10, 22, 22]
|
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:
[27, 33, 10] -> ?
Answer:
|
[27, 33, 10] -> [11, 13, 7]
|
[27, 33, 10]
|
[11, 13, 7]
|
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:
[3, 9, 1, 77] -> ?
Answer:
|
[3, 9, 1, 77] -> []
|
[3, 9, 1, 77]
|
[]
|
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:
[8, 9, 6, 4] -> ?
Answer:
|
[8, 9, 6, 4] -> [8, 9, 6, 4, 8, 9, 6, 4]
|
[8, 9, 6, 4]
|
[8, 9, 6, 4, 8, 9, 6, 4]
|
c167
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements divisible by 3".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[19, 73, 1, 3, 2, 6] -> [3, 6]
[82, 89, 67, 51, 88, 8] -> [51]
[9, 1, 83, 4, 95, 29, 44, 7] -> [9]
[15, 6, 60, 66, 37, 63, 33, 53, 3, 0] -> [15, 6, 60, 66, 63, 33, 3, 0]
[54, 8, 6, 0, 2, 70, 7, 9, 3, 19] -> [54, 6, 0, 9, 3]
[2, 14, 7, 91, 80, 20, 31, 38] -> []
[0, 4, 73, 8, 8, 78] -> [0, 78]
[96, 94, 9, 12, 7, 57, 0, 5, 1] -> [96, 9, 12, 57, 0]
Questions:
[3, 18, 46, 55, 66, 5, 8, 41, 23, 4] -> ?
Answer:
|
[3, 18, 46, 55, 66, 5, 8, 41, 23, 4] -> [3, 18, 66]
|
[3, 18, 46, 55, 66, 5, 8, 41, 23, 4]
|
[3, 18, 66]
|
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:
[8, 0] -> ?
Answer:
|
[8, 0] -> [0, 8]
|
[8, 0]
|
[0, 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:
[3, 47, 35, 51, 25, 7, 2] -> ?
Answer:
|
[3, 47, 35, 51, 25, 7, 2] -> [51, 47, 35, 25, 7, 3, 2]
|
[3, 47, 35, 51, 25, 7, 2]
|
[51, 47, 35, 25, 7, 3, 2]
|
c112
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count from 1 to the last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[14, 23, 88, 7, 0, 82, 8] -> [1, 2, 3, 4, 5, 6, 7, 8]
[38, 0, 5, 47, 80, 86, 4, 21, 94, 9] -> [1, 2, 3, 4, 5, 6, 7, 8, 9]
[2, 28, 78, 80, 90, 79, 8, 9] -> [1, 2, 3, 4, 5, 6, 7, 8, 9]
[12] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12]
[95, 93, 13] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13]
[0, 4, 8, 53, 1] -> [1]
[38, 0, 1, 22, 16, 3] -> [1, 2, 3]
[0, 9, 1, 3, 98, 4, 77, 36, 8] -> [1, 2, 3, 4, 5, 6, 7, 8]
Questions:
[9, 44, 0] -> ?
Answer:
|
[9, 44, 0] -> []
|
[9, 44, 0]
|
[]
|
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:
[57, 7, 32, 94] -> ?
Answer:
|
[57, 7, 32, 94] -> [94, 32, 7, 57, 7, 32, 94]
|
[57, 7, 32, 94]
|
[94, 32, 7, 57, 7, 32, 94]
|
c117
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "left-rotate by three elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 3, 5, 85, 89] -> [85, 89, 9, 3, 5]
[9, 7, 69, 88, 6] -> [88, 6, 9, 7, 69]
[7, 1, 4, 26, 58, 72, 2, 5, 67, 8] -> [26, 58, 72, 2, 5, 67, 8, 7, 1, 4]
[14, 6, 83, 86, 8, 61, 18] -> [86, 8, 61, 18, 14, 6, 83]
[70, 5, 77, 54] -> [54, 70, 5, 77]
[64, 0, 42, 49, 75, 48] -> [49, 75, 48, 64, 0, 42]
[2, 45, 32, 14] -> [14, 2, 45, 32]
[4, 9, 3, 2, 57] -> [2, 57, 4, 9, 3]
Questions:
[1, 31, 12, 3] -> ?
Answer:
|
[1, 31, 12, 3] -> [3, 1, 31, 12]
|
[1, 31, 12, 3]
|
[3, 1, 31, 12]
|
c029
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the first two elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 5, 0, 4, 2, 6] -> [0, 4, 2, 6]
[8, 3] -> []
[2, 8, 1] -> [1]
[2, 1, 3, 8] -> [3, 8]
[5, 2, 6, 3, 9, 0, 8, 1] -> [6, 3, 9, 0, 8, 1]
[0, 9, 6, 5, 3, 8, 2, 1] -> [6, 5, 3, 8, 2, 1]
[5, 4, 1, 6, 9, 8, 7] -> [1, 6, 9, 8, 7]
[0, 4, 8, 2, 7, 5, 6] -> [8, 2, 7, 5, 6]
Questions:
[2, 8, 4, 7, 1, 6, 3, 5, 9] -> ?
Answer:
|
[2, 8, 4, 7, 1, 6, 3, 5, 9] -> [4, 7, 1, 6, 3, 5, 9]
|
[2, 8, 4, 7, 1, 6, 3, 5, 9]
|
[4, 7, 1, 6, 3, 5, 9]
|
c165
|
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 keep only even elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[69, 41, 67, 46, 57, 5] -> [46]
[1, 2, 81, 9, 3, 19, 5, 7] -> [2]
[37, 5, 92, 44, 69, 4] -> [4, 44, 92]
[3, 2, 31, 4, 20, 7, 9, 6, 83, 44] -> [44, 6, 20, 4, 2]
[20, 21, 30, 7, 12, 3, 93] -> [12, 30, 20]
[56, 1, 0, 6, 26, 84, 8, 55, 72, 9] -> [72, 8, 84, 26, 6, 0, 56]
[2, 16, 68, 57, 34, 99, 9, 27, 44, 6] -> [6, 44, 34, 68, 16, 2]
[35, 54, 81, 51, 3, 18, 9] -> [18, 54]
Questions:
[5, 3, 0, 8, 49, 87, 4, 6, 29] -> ?
Answer:
|
[5, 3, 0, 8, 49, 87, 4, 6, 29] -> [6, 4, 8, 0]
|
[5, 3, 0, 8, 49, 87, 4, 6, 29]
|
[6, 4, 8, 0]
|
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:
[9, 4, 9, 9, 1, 4, 1, 1, 1, 1] -> ?
Answer:
|
[9, 4, 9, 9, 1, 4, 1, 1, 1, 1] -> [2, 3]
|
[9, 4, 9, 9, 1, 4, 1, 1, 1, 1]
|
[2, 3]
|
c224
|
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 last element, followed by element 1, followed by the second to last element, followed by element 2, and so on".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[15, 96, 14, 1, 0, 57, 5] -> [5, 0, 14, 15, 96, 1, 57]
[64, 0, 78, 6, 1, 47, 5, 9] -> [9, 47, 6, 0, 64, 78, 1, 5]
[6, 35, 1, 40, 55, 62, 58, 15] -> [15, 62, 40, 35, 6, 1, 55, 58]
[12, 6, 9, 36, 7, 8, 66, 4, 0] -> [0, 66, 7, 9, 12, 6, 36, 8, 4]
[75, 72, 67, 8, 13, 5, 63, 1] -> [1, 5, 8, 72, 75, 67, 13, 63]
[7, 45, 37, 14, 24, 21, 5, 34, 39, 3] -> [3, 34, 21, 14, 45, 7, 37, 24, 5, 39]
[1, 11, 7, 82, 31, 88, 35, 51] -> [51, 88, 82, 11, 1, 7, 31, 35]
[4, 45, 66, 64, 47] -> [47, 66, 4, 45, 64]
Questions:
[4, 99, 2, 53, 11, 9, 25] -> ?
Answer:
|
[4, 99, 2, 53, 11, 9, 25] -> [25, 11, 2, 4, 99, 53, 9]
|
[4, 99, 2, 53, 11, 9, 25]
|
[25, 11, 2, 4, 99, 53, 9]
|
c171
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "cumulative sum of elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 6, 7, 6, 4, 4] -> [7, 13, 20, 26, 30, 34]
[3, 5, 15, 2, 3, 4, 7, 2] -> [3, 8, 23, 25, 28, 32, 39, 41]
[7, 9, 9, 9, 7, 7, 9, 7, 7] -> [7, 16, 25, 34, 41, 48, 57, 64, 71]
[1, 0, 1, 1, 1, 0] -> [1, 1, 2, 3, 4, 4]
[8, 0, 8, 0, 0, 8, 16] -> [8, 8, 16, 16, 16, 24, 40]
[5, 5, 5, 5, 5, 5] -> [5, 10, 15, 20, 25, 30]
[0, 0, 0, 6, 6, 3, 6] -> [0, 0, 0, 6, 12, 15, 21]
[1, 3, 13, 13, 10, 12, 2, 3, 13, 2] -> [1, 4, 17, 30, 40, 52, 54, 57, 70, 72]
Questions:
[8, 2, 7, 8, 6, 1, 5, 2] -> ?
Answer:
|
[8, 2, 7, 8, 6, 1, 5, 2] -> [8, 10, 17, 25, 31, 32, 37, 39]
|
[8, 2, 7, 8, 6, 1, 5, 2]
|
[8, 10, 17, 25, 31, 32, 37, 39]
|
c199
|
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, each preceded by its rank".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[93, 3, 51] -> [1, 3, 2, 51, 3, 93]
[7, 29, 9, 32, 74, 96, 95] -> [1, 7, 2, 9, 3, 29, 4, 32, 5, 74, 6, 95, 7, 96]
[41, 29, 82, 46, 33, 5] -> [1, 5, 2, 29, 3, 33, 4, 41, 5, 46, 6, 82]
[18, 14, 47, 15] -> [1, 14, 2, 15, 3, 18, 4, 47]
[] -> []
[54, 41, 21, 48, 14, 59] -> [1, 14, 2, 21, 3, 41, 4, 48, 5, 54, 6, 59]
[73, 75, 0, 15] -> [1, 0, 2, 15, 3, 73, 4, 75]
[12, 37, 38, 63, 60, 45, 72] -> [1, 12, 2, 37, 3, 38, 4, 45, 5, 60, 6, 63, 7, 72]
Questions:
[74, 55, 9, 24] -> ?
Answer:
|
[74, 55, 9, 24] -> [1, 9, 2, 24, 3, 55, 4, 74]
|
[74, 55, 9, 24]
|
[1, 9, 2, 24, 3, 55, 4, 74]
|
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:
[30] -> ?
Answer:
|
[30] -> [12]
|
[30]
|
[12]
|
c162
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with 3 * M + 7".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 8, 1, 7, 1, 3] -> [31, 31, 10, 28, 10, 16]
[15, 6, 6, 16, 2, 6, 1, 6, 1, 15] -> [52, 25, 25, 55, 13, 25, 10, 25, 10, 52]
[6, 10, 0, 1, 10, 10, 8, 2, 6] -> [25, 37, 7, 10, 37, 37, 31, 13, 25]
[5, 4, 11, 16, 0, 8, 2] -> [22, 19, 40, 55, 7, 31, 13]
[4, 8, 10, 14, 0, 3, 6] -> [19, 31, 37, 49, 7, 16, 25]
[16, 9, 5, 4, 0, 7] -> [55, 34, 22, 19, 7, 28]
[1, 4, 4, 15, 1, 13, 1, 4, 7, 10] -> [10, 19, 19, 52, 10, 46, 10, 19, 28, 37]
[0, 9, 3, 3, 9, 9] -> [7, 34, 16, 16, 34, 34]
Questions:
[4, 6, 3, 6, 5, 7, 9] -> ?
Answer:
|
[4, 6, 3, 6, 5, 7, 9] -> [19, 25, 16, 25, 22, 28, 34]
|
[4, 6, 3, 6, 5, 7, 9]
|
[19, 25, 16, 25, 22, 28, 34]
|
c149
|
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 * element 1; remove element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 19, 5, 42, 85, 31, 65, 28, 34, 6] -> [0, 0, 0, 0, 0, 0, 0, 0, 0]
[3, 5, 4] -> [15, 12]
[9, 0] -> [0]
[51] -> []
[6, 3] -> [18]
[2, 3, 8, 0] -> [6, 16, 0]
[7, 9, 3] -> [63, 21]
[1, 2, 8, 83, 4, 3, 57] -> [2, 8, 83, 4, 3, 57]
Questions:
[3, 2, 5, 5] -> ?
Answer:
|
[3, 2, 5, 5] -> [6, 15, 15]
|
[3, 2, 5, 5]
|
[6, 15, 15]
|
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:
[2, 6, 1, 8, 5] -> ?
Answer:
|
[2, 6, 1, 8, 5] -> [2, 6, 1]
|
[2, 6, 1, 8, 5]
|
[2, 6, 1]
|
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:
[0, 8, 5, 1] -> ?
Answer:
|
[0, 8, 5, 1] -> [0, 8]
|
[0, 8, 5, 1]
|
[0, 8]
|
c040
|
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 contains a 3, else append 9 if the list contains a 9".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 0, 8, 5, 9, 1, 6, 2, 7] -> [4, 0, 8, 5, 9, 1, 6, 2, 7, 9]
[9, 0] -> [9, 0, 9]
[5, 0, 2, 9] -> [5, 0, 2, 9, 9]
[7, 5, 8, 3, 4, 1, 6] -> [7, 5, 8, 3, 4, 1, 6, 3]
[2, 8, 0, 5] -> [2, 8, 0, 5]
[1, 8, 4, 3, 0, 6] -> [1, 8, 4, 3, 0, 6, 3]
[] -> []
[3, 4, 7, 6, 0] -> [3, 4, 7, 6, 0, 3]
Questions:
[6] -> ?
Answer:
|
[6] -> [6]
|
[6]
|
[6]
|
c117
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "left-rotate by three elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 3, 5, 85, 89] -> [85, 89, 9, 3, 5]
[9, 7, 69, 88, 6] -> [88, 6, 9, 7, 69]
[7, 1, 4, 26, 58, 72, 2, 5, 67, 8] -> [26, 58, 72, 2, 5, 67, 8, 7, 1, 4]
[14, 6, 83, 86, 8, 61, 18] -> [86, 8, 61, 18, 14, 6, 83]
[70, 5, 77, 54] -> [54, 70, 5, 77]
[64, 0, 42, 49, 75, 48] -> [49, 75, 48, 64, 0, 42]
[2, 45, 32, 14] -> [14, 2, 45, 32]
[4, 9, 3, 2, 57] -> [2, 57, 4, 9, 3]
Questions:
[5, 3, 49, 22, 69, 70, 95] -> ?
Answer:
|
[5, 3, 49, 22, 69, 70, 95] -> [22, 69, 70, 95, 5, 3, 49]
|
[5, 3, 49, 22, 69, 70, 95]
|
[22, 69, 70, 95, 5, 3, 49]
|
c168
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count from 1 to 10, skipping the input’s length".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[20, 9, 16, 92, 82, 3] -> [1, 2, 3, 4, 5, 7, 8, 9, 10]
[77, 76, 34, 12, 26, 20, 79] -> [1, 2, 3, 4, 5, 6, 8, 9, 10]
[6, 74, 2, 9, 5, 67] -> [1, 2, 3, 4, 5, 7, 8, 9, 10]
[95] -> [2, 3, 4, 5, 6, 7, 8, 9, 10]
[97, 86, 90, 37, 43, 5, 57, 33, 72, 7] -> [1, 2, 3, 4, 5, 6, 7, 8, 9]
[40, 86] -> [1, 3, 4, 5, 6, 7, 8, 9, 10]
[87, 5, 66] -> [1, 2, 4, 5, 6, 7, 8, 9, 10]
[85, 20, 90, 5, 65] -> [1, 2, 3, 4, 6, 7, 8, 9, 10]
Questions:
[30, 6] -> ?
Answer:
|
[30, 6] -> [1, 3, 4, 5, 6, 7, 8, 9, 10]
|
[30, 6]
|
[1, 3, 4, 5, 6, 7, 8, 9, 10]
|
c148
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count from 1 to each original element, in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 5, 4] -> [1, 2, 3, 4, 5, 1, 2, 3, 4, 5, 1, 2, 3, 4]
[2, 5, 2, 5] -> [1, 2, 1, 2, 3, 4, 5, 1, 2, 1, 2, 3, 4, 5]
[1, 5, 3, 4] -> [1, 1, 2, 3, 4, 5, 1, 2, 3, 1, 2, 3, 4]
[3, 3, 1, 0] -> [1, 2, 3, 1, 2, 3, 1]
[2, 1, 1] -> [1, 2, 1, 1]
[5, 3, 1] -> [1, 2, 3, 4, 5, 1, 2, 3, 1]
[6, 3, 3] -> [1, 2, 3, 4, 5, 6, 1, 2, 3, 1, 2, 3]
[6, 4, 1] -> [1, 2, 3, 4, 5, 6, 1, 2, 3, 4, 1]
Questions:
[2, 2, 4, 2, 2] -> ?
Answer:
|
[2, 2, 4, 2, 2] -> [1, 2, 1, 2, 1, 2, 3, 4, 1, 2, 1, 2]
|
[2, 2, 4, 2, 2]
|
[1, 2, 1, 2, 1, 2, 3, 4, 1, 2, 1, 2]
|
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:
[36, 93, 33, 6, 1, 29, 39, 3] -> ?
Answer:
|
[36, 93, 33, 6, 1, 29, 39, 3] -> [1, 3, 33, 6, 36, 29, 93, 39]
|
[36, 93, 33, 6, 1, 29, 39, 3]
|
[1, 3, 33, 6, 36, 29, 93, 39]
|
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:
[4, 7, 6, 3, 8] -> ?
Answer:
|
[4, 7, 6, 3, 8] -> [6]
|
[4, 7, 6, 3, 8]
|
[6]
|
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:
[25, 28, 25, 25, 25, 28] -> ?
Answer:
|
[25, 28, 25, 25, 25, 28] -> [25, 26, 27, 28]
|
[25, 28, 25, 25, 25, 28]
|
[25, 26, 27, 28]
|
c135
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the first 7".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 19, 7, 6, 9, 1, 5, 64, 47, 93] -> [2, 19, 6, 9, 1, 5, 64, 47, 93]
[1, 69, 1, 7, 17, 17, 10, 7, 3, 37] -> [1, 69, 1, 17, 17, 10, 7, 3, 37]
[7, 7, 9, 21, 7, 4, 4, 91, 0] -> [7, 9, 21, 7, 4, 4, 91, 0]
[5, 7, 39, 7] -> [5, 39, 7]
[7, 7, 7] -> [7, 7]
[7, 7, 6, 6, 88, 7, 8] -> [7, 6, 6, 88, 7, 8]
[7, 6, 9, 7] -> [6, 9, 7]
[5, 7, 7, 7] -> [5, 7, 7]
Questions:
[5, 6, 91, 2, 12, 14, 78, 7, 3] -> ?
Answer:
|
[5, 6, 91, 2, 12, 14, 78, 7, 3] -> [5, 6, 91, 2, 12, 14, 78, 3]
|
[5, 6, 91, 2, 12, 14, 78, 7, 3]
|
[5, 6, 91, 2, 12, 14, 78, 3]
|
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:
[17, 91, 59, 25, 42, 10, 5] -> ?
Answer:
|
[17, 91, 59, 25, 42, 10, 5] -> [5, 10, 25, 59]
|
[17, 91, 59, 25, 42, 10, 5]
|
[5, 10, 25, 59]
|
c111
|
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 the largest element N times, where N is the smallest element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[90, 5] -> [90, 90, 90, 90, 90]
[61, 9, 39, 47, 46] -> [61, 61, 61, 61, 61, 61, 61, 61, 61]
[10] -> [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]
[91, 10] -> [91, 91, 91, 91, 91, 91, 91, 91, 91, 91]
[62, 88, 8, 74, 9, 7, 4] -> [88, 88, 88, 88]
[38, 39, 1] -> [39]
[6, 62] -> [62, 62, 62, 62, 62, 62]
[0, 30, 25, 57, 2, 5] -> []
Questions:
[52, 18, 5, 49, 4] -> ?
Answer:
|
[52, 18, 5, 49, 4] -> [52, 52, 52, 52]
|
[52, 18, 5, 49, 4]
|
[52, 52, 52, 52]
|
c180
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "take the smallest element, append the second smallest, prepend the third smallest, append the fourth smallest, and so on".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[43, 15, 16, 18, 32, 22, 98, 3] -> [43, 22, 16, 3, 15, 18, 32, 98]
[6, 27, 75, 54, 73, 2, 85, 97, 7] -> [85, 73, 27, 6, 2, 7, 54, 75, 97]
[5, 27, 62, 54, 88, 8, 6, 68] -> [68, 54, 8, 5, 6, 27, 62, 88]
[0, 17, 45, 35, 5, 1, 6, 68, 60] -> [60, 35, 6, 1, 0, 5, 17, 45, 68]
[70, 81, 6, 46, 90, 9, 23, 20, 1, 4] -> [81, 46, 20, 6, 1, 4, 9, 23, 70, 90]
[43, 12, 6, 24, 1, 75] -> [43, 12, 1, 6, 24, 75]
[0, 23, 2, 7, 3, 6, 57] -> [23, 6, 2, 0, 3, 7, 57]
[0, 85, 36, 7, 4, 9, 13, 62] -> [62, 13, 7, 0, 4, 9, 36, 85]
Questions:
[4, 8, 0, 5, 54, 12, 35, 99, 7, 36] -> ?
Answer:
|
[4, 8, 0, 5, 54, 12, 35, 99, 7, 36] -> [54, 35, 8, 5, 0, 4, 7, 12, 36, 99]
|
[4, 8, 0, 5, 54, 12, 35, 99, 7, 36]
|
[54, 35, 8, 5, 0, 4, 7, 12, 36, 99]
|
c231
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the number of occurrences of each unique element in ascending order".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[28, 7, 7, 28, 28] -> [2, 3]
[28, 28, 28] -> [3]
[59, 59, 59, 59, 59, 59, 59] -> [7]
[4, 71, 32, 71, 71, 71, 32, 4, 32] -> [2, 3, 4]
[6, 6, 0, 18, 5, 12, 4, 6, 53, 65] -> [1, 1, 1, 1, 1, 1, 1, 3]
[76, 9, 27, 9] -> [1, 1, 2]
[69, 69, 50, 69, 69, 50] -> [2, 4]
[4, 74, 4, 58, 74, 58, 58, 4, 74] -> [3, 3, 3]
Questions:
[23, 23, 23, 23, 23, 23] -> ?
Answer:
|
[23, 23, 23, 23, 23, 23] -> [6]
|
[23, 23, 23, 23, 23, 23]
|
[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:
[0, 7, 2, 6] -> ?
Answer:
|
[0, 7, 2, 6] -> [4]
|
[0, 7, 2, 6]
|
[4]
|
c217
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements in ascending order by ones digits".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[46, 0, 9, 36] -> [0, 46, 36, 9]
[9, 7, 92, 23] -> [92, 23, 7, 9]
[88, 8, 5, 7, 2, 9, 4] -> [2, 4, 5, 7, 88, 8, 9]
[55, 31, 78, 70] -> [70, 31, 55, 78]
[48, 31, 26, 99, 86, 2] -> [31, 2, 26, 86, 48, 99]
[9, 7, 21, 0] -> [0, 21, 7, 9]
[5, 9, 98, 75, 73, 10] -> [10, 73, 5, 75, 98, 9]
[23, 90, 69, 67, 9] -> [90, 23, 67, 69, 9]
Questions:
[98, 20, 9, 72, 85, 78, 3] -> ?
Answer:
|
[98, 20, 9, 72, 85, 78, 3] -> [20, 72, 3, 85, 98, 78, 9]
|
[98, 20, 9, 72, 85, 78, 3]
|
[20, 72, 3, 85, 98, 78, 9]
|
c074
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove every element whose value < 8".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3] -> []
[1, 4, 5, 6, 2, 7, 0, 8, 3] -> [8]
[4, 1] -> []
[2, 1, 3, 0, 7] -> []
[2, 9, 7, 5, 6] -> [9]
[2, 5, 8, 7, 9, 0, 1, 3, 6, 4] -> [8, 9]
[8, 1, 6, 3, 4, 7, 9, 0, 5] -> [8, 9]
[0, 4, 3, 7, 6, 5, 1, 9, 2, 8] -> [9, 8]
Questions:
[4, 3, 9, 2, 6, 0] -> ?
Answer:
|
[4, 3, 9, 2, 6, 0] -> [9]
|
[4, 3, 9, 2, 6, 0]
|
[9]
|
c017
|
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 if there is an element 2".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 6, 4, 5, 3, 9, 2] -> [7, 8, 4, 5, 3, 9, 2]
[1, 5, 6, 9] -> [1, 8, 6, 9]
[2, 1, 7] -> [2, 8, 7]
[5, 6] -> [5, 8]
[2, 7, 3, 6, 4, 0, 5, 9, 1] -> [2, 8, 3, 6, 4, 0, 5, 9, 1]
[5, 1, 0, 7, 9, 8, 2, 3, 4, 6] -> [5, 8, 0, 7, 9, 8, 2, 3, 4, 6]
[4, 1, 9, 0, 6, 2, 5] -> [4, 8, 9, 0, 6, 2, 5]
[0, 6, 7, 2, 9, 4, 1, 5] -> [0, 8, 7, 2, 9, 4, 1, 5]
Questions:
[4, 7] -> ?
Answer:
|
[4, 7] -> [4, 8]
|
[4, 7]
|
[4, 8]
|
c168
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count from 1 to 10, skipping the input’s length".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[20, 9, 16, 92, 82, 3] -> [1, 2, 3, 4, 5, 7, 8, 9, 10]
[77, 76, 34, 12, 26, 20, 79] -> [1, 2, 3, 4, 5, 6, 8, 9, 10]
[6, 74, 2, 9, 5, 67] -> [1, 2, 3, 4, 5, 7, 8, 9, 10]
[95] -> [2, 3, 4, 5, 6, 7, 8, 9, 10]
[97, 86, 90, 37, 43, 5, 57, 33, 72, 7] -> [1, 2, 3, 4, 5, 6, 7, 8, 9]
[40, 86] -> [1, 3, 4, 5, 6, 7, 8, 9, 10]
[87, 5, 66] -> [1, 2, 4, 5, 6, 7, 8, 9, 10]
[85, 20, 90, 5, 65] -> [1, 2, 3, 4, 6, 7, 8, 9, 10]
Questions:
[93, 8, 24, 35, 5, 3, 85, 65, 62] -> ?
Answer:
|
[93, 8, 24, 35, 5, 3, 85, 65, 62] -> [1, 2, 3, 4, 5, 6, 7, 8, 10]
|
[93, 8, 24, 35, 5, 3, 85, 65, 62]
|
[1, 2, 3, 4, 5, 6, 7, 8, 10]
|
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, 3, 9, 5] -> ?
Answer:
|
[2, 3, 9, 5] -> [2, 8, 9, 5]
|
[2, 3, 9, 5]
|
[2, 8, 9, 5]
|
c239
|
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 repetitions in the input".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[93, 94, 7, 29, 36, 9, 1, 5, 94, 2] -> [1]
[88, 4, 7, 49, 5, 49, 2] -> [1]
[0, 88, 7, 2, 88] -> [1]
[86, 4, 2, 3, 66, 11, 89] -> [0]
[9, 74] -> [0]
[9, 48, 5, 5, 9, 5, 48, 41, 5] -> [5]
[60, 3, 8, 6, 95, 60, 15, 64, 45] -> [1]
[54, 7, 72, 6, 64, 24, 1, 19, 95] -> [0]
Questions:
[6, 82, 2, 23, 7, 78, 9, 49, 25, 98] -> ?
Answer:
|
[6, 82, 2, 23, 7, 78, 9, 49, 25, 98] -> [0]
|
[6, 82, 2, 23, 7, 78, 9, 49, 25, 98]
|
[0]
|
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:
[31, 2, 24, 39] -> ?
Answer:
|
[31, 2, 24, 39] -> [2, 24, 31, 39]
|
[31, 2, 24, 39]
|
[2, 24, 31, 39]
|
c063
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the first N + 1 elements, N = element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 9, 3, 5, 2, 0, 6, 7, 4] -> [3, 5, 2, 0, 6, 7, 4]
[1, 2, 6, 9] -> [6, 9]
[9] -> []
[2, 9, 6, 0, 3, 5, 4, 7, 8, 1] -> [0, 3, 5, 4, 7, 8, 1]
[0, 5, 9, 6, 2] -> [5, 9, 6, 2]
[1, 4, 8, 5] -> [8, 5]
[0, 7] -> [7]
[0, 9, 6, 2, 3, 8] -> [9, 6, 2, 3, 8]
Questions:
[0, 7, 4, 8, 9, 1, 6] -> ?
Answer:
|
[0, 7, 4, 8, 9, 1, 6] -> [7, 4, 8, 9, 1, 6]
|
[0, 7, 4, 8, 9, 1, 6]
|
[7, 4, 8, 9, 1, 6]
|
c058
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the first 7 elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8] -> []
[2, 3, 1, 0, 8, 5, 6, 7, 9] -> [7, 9]
[8, 3, 2, 1, 9, 5, 4, 6, 0, 7] -> [6, 0, 7]
[1, 9, 5, 3] -> []
[1] -> []
[1, 8, 4, 9, 0, 6, 7, 3] -> [3]
[2, 4, 8, 9, 7, 3, 0, 6, 5] -> [6, 5]
[8, 7, 2, 9, 0, 5, 3, 6] -> [6]
Questions:
[7, 6, 2, 1, 5, 8, 4, 9, 3] -> ?
Answer:
|
[7, 6, 2, 1, 5, 8, 4, 9, 3] -> [9, 3]
|
[7, 6, 2, 1, 5, 8, 4, 9, 3]
|
[9, 3]
|
c083
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 7".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[84, 3, 23, 69, 4, 1, 9] -> [9]
[7, 77, 5, 2, 99, 94, 36, 59] -> [36]
[3, 26, 7, 1, 0, 81, 5, 34, 8, 37] -> [5]
[2, 7, 8, 66, 4, 89, 9, 54, 3, 87] -> [9]
[45, 29, 91, 56, 58, 10, 5, 25] -> [5]
[0, 77, 3, 87, 85, 5, 93, 1, 29, 76] -> [93]
[9, 31, 3, 1, 47, 67, 4] -> [4]
[8, 5, 60, 67, 39, 4, 3, 90, 87] -> [3]
Questions:
[15, 8, 19, 86, 7, 52, 35, 81] -> ?
Answer:
|
[15, 8, 19, 86, 7, 52, 35, 81] -> [35]
|
[15, 8, 19, 86, 7, 52, 35, 81]
|
[35]
|
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:
[6, 97, 71, 31, 76, 5, 3, 26, 7, 54] -> ?
Answer:
|
[6, 97, 71, 31, 76, 5, 3, 26, 7, 54] -> [71, 31, 6, 97, 76, 5, 3, 26, 7, 54]
|
[6, 97, 71, 31, 76, 5, 3, 26, 7, 54]
|
[71, 31, 6, 97, 76, 5, 3, 26, 7, 54]
|
c108
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "sum of elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 83] -> [86]
[10, 0, 59, 5, 1, 9, 4] -> [88]
[14, 4, 12] -> [30]
[6, 0, 3, 82] -> [91]
[5, 7, 4, 2] -> [18]
[] -> [0]
[62] -> [62]
[22, 6, 1] -> [29]
Questions:
[9, 84] -> ?
Answer:
|
[9, 84] -> [93]
|
[9, 84]
|
[93]
|
c140
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element 2 with a 9".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[65, 43, 3, 9, 69, 17, 8, 7, 38, 58] -> [65, 9, 3, 9, 69, 17, 8, 7, 38, 58]
[36, 90] -> [36, 9]
[16, 8, 80, 5, 81] -> [16, 9, 80, 5, 81]
[67, 74, 8, 18, 60, 5, 4, 38, 26] -> [67, 9, 8, 18, 60, 5, 4, 38, 26]
[35, 51, 6] -> [35, 9, 6]
[9, 1] -> [9, 9]
[1, 30, 3, 76, 6, 5, 43, 79] -> [1, 9, 3, 76, 6, 5, 43, 79]
[49, 55, 78, 3] -> [49, 9, 78, 3]
Questions:
[6, 32, 94, 7, 4, 0, 90, 92, 24, 73] -> ?
Answer:
|
[6, 32, 94, 7, 4, 0, 90, 92, 24, 73] -> [6, 9, 94, 7, 4, 0, 90, 92, 24, 73]
|
[6, 32, 94, 7, 4, 0, 90, 92, 24, 73]
|
[6, 9, 94, 7, 4, 0, 90, 92, 24, 73]
|
c008
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the first 6 elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 5, 9, 3, 1, 6, 0, 7, 4, 2] -> [8, 5, 9, 3, 1, 6]
[0, 4, 6] -> [0, 4, 6]
[4, 8, 2, 3, 6] -> [4, 8, 2, 3, 6]
[1, 0, 7, 3, 4, 2, 8, 9, 6, 5] -> [1, 0, 7, 3, 4, 2]
[1] -> [1]
[6, 4, 2, 1, 0, 7, 3, 5, 9] -> [6, 4, 2, 1, 0, 7]
[1, 5, 6, 9, 0, 4, 8, 2, 3] -> [1, 5, 6, 9, 0, 4]
[0, 6, 1, 3, 8, 9, 7] -> [0, 6, 1, 3, 8, 9]
Questions:
[3, 0, 6, 4] -> ?
Answer:
|
[3, 0, 6, 4] -> [3, 0, 6, 4]
|
[3, 0, 6, 4]
|
[3, 0, 6, 4]
|
c096
|
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 98 and append 37".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 86, 28, 75, 21, 0, 50, 98, 8, 22] -> [98, 7, 86, 28, 75, 21, 0, 50, 98, 8, 22, 37]
[7, 58, 6, 24, 0] -> [98, 7, 58, 6, 24, 0, 37]
[27] -> [98, 27, 37]
[38] -> [98, 38, 37]
[69, 7, 12, 23] -> [98, 69, 7, 12, 23, 37]
[32, 27, 14] -> [98, 32, 27, 14, 37]
[0, 20, 73, 83, 47, 9, 99] -> [98, 0, 20, 73, 83, 47, 9, 99, 37]
[0, 93, 92, 5] -> [98, 0, 93, 92, 5, 37]
Questions:
[7, 78, 1, 38, 80, 66] -> ?
Answer:
|
[7, 78, 1, 38, 80, 66] -> [98, 7, 78, 1, 38, 80, 66, 37]
|
[7, 78, 1, 38, 80, 66]
|
[98, 7, 78, 1, 38, 80, 66, 37]
|
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:
[8, 18, 61, 59, 92, 4] -> ?
Answer:
|
[8, 18, 61, 59, 92, 4] -> [92]
|
[8, 18, 61, 59, 92, 4]
|
[92]
|
c181
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse the order of elements with even indices".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 21, 89, 0, 63, 27, 9, 70] -> [8, 70, 89, 27, 63, 0, 9, 21]
[5, 90, 38, 87, 53, 40, 3, 42, 2, 36] -> [5, 36, 38, 42, 53, 40, 3, 87, 2, 90]
[98, 9, 79, 8, 74, 80] -> [98, 80, 79, 8, 74, 9]
[8, 2, 16, 36, 60, 14] -> [8, 14, 16, 36, 60, 2]
[7, 12, 8, 0, 83, 72] -> [7, 72, 8, 0, 83, 12]
[27, 32, 3, 5, 94, 80] -> [27, 80, 3, 5, 94, 32]
[4, 76, 47, 75, 1, 0, 2, 6] -> [4, 6, 47, 0, 1, 75, 2, 76]
[97, 45, 46, 7, 51, 47, 38, 3, 0, 92] -> [97, 92, 46, 3, 51, 47, 38, 7, 0, 45]
Questions:
[5, 10, 1, 13, 34, 68, 2, 93] -> ?
Answer:
|
[5, 10, 1, 13, 34, 68, 2, 93] -> [5, 93, 1, 68, 34, 13, 2, 10]
|
[5, 10, 1, 13, 34, 68, 2, 93]
|
[5, 93, 1, 68, 34, 13, 2, 10]
|
c184
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only odd elements with an even index".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 1, 48, 8, 2, 98, 13] -> [1]
[67, 78, 17, 5, 55, 3, 6, 4, 41] -> [5, 3]
[3, 5, 6, 21, 15, 77, 8, 86, 1] -> [5, 21, 77]
[90, 31, 8, 2, 7, 24] -> [31]
[9, 8, 0, 58, 21, 3] -> [3]
[5, 10, 96, 79, 1, 7, 9, 99] -> [79, 7, 99]
[9, 6, 2, 64, 15, 84] -> []
[3, 41, 7, 1, 11, 77, 9, 61, 4, 17] -> [41, 1, 77, 61, 17]
Questions:
[8, 2, 27, 7, 37, 4, 36, 3, 62, 15] -> ?
Answer:
|
[8, 2, 27, 7, 37, 4, 36, 3, 62, 15] -> [7, 3, 15]
|
[8, 2, 27, 7, 37, 4, 36, 3, 62, 15]
|
[7, 3, 15]
|
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:
[3, 8, 9] -> ?
Answer:
|
[3, 8, 9] -> [8, 9, 3]
|
[3, 8, 9]
|
[8, 9, 3]
|
c091
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
[2, 91, 37, 38, 71, 5] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
[47, 47] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
[66, 84, 97, 78, 46, 13, 9] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
[72, 40, 72] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
[15, 3, 15, 55, 7, 15, 85, 74, 6] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
[33, 0, 3, 25] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
[5, 42, 7, 28] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
Questions:
[2, 12, 88, 80, 5, 4, 55, 52] -> ?
Answer:
|
[2, 12, 88, 80, 5, 4, 55, 52] -> [81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
|
[2, 12, 88, 80, 5, 4, 55, 52]
|
[81, 99, 41, 23, 22, 75, 68, 30, 24, 69]
|
c161
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with M + the input length - M’s index".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[40, 5, 83, 3, 29, 8] -> [45, 9, 86, 5, 30, 8]
[40, 4, 83, 6, 5, 61, 9] -> [46, 9, 87, 9, 7, 62, 9]
[0, 87, 50, 11, 7, 72] -> [5, 91, 53, 13, 8, 72]
[4, 6, 46, 96, 1, 9] -> [9, 10, 49, 98, 2, 9]
[44, 4, 24, 95, 92, 33, 6] -> [50, 9, 28, 98, 94, 34, 6]
[80, 5, 49, 2, 21, 0, 32] -> [86, 10, 53, 5, 23, 1, 32]
[19, 28, 34, 16, 1, 51] -> [24, 32, 37, 18, 2, 51]
[1, 9, 2, 89, 21, 64, 11, 71, 15, 7] -> [10, 17, 9, 95, 26, 68, 14, 73, 16, 7]
Questions:
[9, 60, 4, 5, 7, 25, 6, 3, 51] -> ?
Answer:
|
[9, 60, 4, 5, 7, 25, 6, 3, 51] -> [17, 67, 10, 10, 11, 28, 8, 4, 51]
|
[9, 60, 4, 5, 7, 25, 6, 3, 51]
|
[17, 67, 10, 10, 11, 28, 8, 4, 51]
|
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:
[1, 29, 3, 96, 18] -> ?
Answer:
|
[1, 29, 3, 96, 18] -> [0, 0, 1, 2, 9]
|
[1, 29, 3, 96, 18]
|
[0, 0, 1, 2, 9]
|
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:
[61, 13, 0, 9, 7, 61, 5, 3] -> ?
Answer:
|
[61, 13, 0, 9, 7, 61, 5, 3] -> [0, 13, 0, 9, 7, 0, 5, 3]
|
[61, 13, 0, 9, 7, 61, 5, 3]
|
[0, 13, 0, 9, 7, 0, 5, 3]
|
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:
[16, 17, 89, 8, 4, 36, 90] -> ?
Answer:
|
[16, 17, 89, 8, 4, 36, 90] -> [16, 1, 17, 2, 89, 3, 8, 4, 4, 5, 36, 6, 90, 7]
|
[16, 17, 89, 8, 4, 36, 90]
|
[16, 1, 17, 2, 89, 3, 8, 4, 4, 5, 36, 6, 90, 7]
|
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:
[54, 64, 26, 15] -> ?
Answer:
|
[54, 64, 26, 15] -> [26, 15, 54, 64]
|
[54, 64, 26, 15]
|
[26, 15, 54, 64]
|
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:
[2, 9, 4, 8, 7, 6, 3] -> ?
Answer:
|
[2, 9, 4, 8, 7, 6, 3] -> [2, 2, 9, 4, 8, 7, 6, 3]
|
[2, 9, 4, 8, 7, 6, 3]
|
[2, 2, 9, 4, 8, 7, 6, 3]
|
c165
|
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 keep only even elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[69, 41, 67, 46, 57, 5] -> [46]
[1, 2, 81, 9, 3, 19, 5, 7] -> [2]
[37, 5, 92, 44, 69, 4] -> [4, 44, 92]
[3, 2, 31, 4, 20, 7, 9, 6, 83, 44] -> [44, 6, 20, 4, 2]
[20, 21, 30, 7, 12, 3, 93] -> [12, 30, 20]
[56, 1, 0, 6, 26, 84, 8, 55, 72, 9] -> [72, 8, 84, 26, 6, 0, 56]
[2, 16, 68, 57, 34, 99, 9, 27, 44, 6] -> [6, 44, 34, 68, 16, 2]
[35, 54, 81, 51, 3, 18, 9] -> [18, 54]
Questions:
[61, 7, 9, 33, 5, 1] -> ?
Answer:
|
[61, 7, 9, 33, 5, 1] -> []
|
[61, 7, 9, 33, 5, 1]
|
[]
|
c162
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with 3 * M + 7".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 8, 1, 7, 1, 3] -> [31, 31, 10, 28, 10, 16]
[15, 6, 6, 16, 2, 6, 1, 6, 1, 15] -> [52, 25, 25, 55, 13, 25, 10, 25, 10, 52]
[6, 10, 0, 1, 10, 10, 8, 2, 6] -> [25, 37, 7, 10, 37, 37, 31, 13, 25]
[5, 4, 11, 16, 0, 8, 2] -> [22, 19, 40, 55, 7, 31, 13]
[4, 8, 10, 14, 0, 3, 6] -> [19, 31, 37, 49, 7, 16, 25]
[16, 9, 5, 4, 0, 7] -> [55, 34, 22, 19, 7, 28]
[1, 4, 4, 15, 1, 13, 1, 4, 7, 10] -> [10, 19, 19, 52, 10, 46, 10, 19, 28, 37]
[0, 9, 3, 3, 9, 9] -> [7, 34, 16, 16, 34, 34]
Questions:
[18, 5, 7, 3, 18, 18, 7] -> ?
Answer:
|
[18, 5, 7, 3, 18, 18, 7] -> [61, 22, 28, 16, 61, 61, 28]
|
[18, 5, 7, 3, 18, 18, 7]
|
[61, 22, 28, 16, 61, 61, 28]
|
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:
[3, 72, 2, 58, 63, 58, 8, 2, 3] -> ?
Answer:
|
[3, 72, 2, 58, 63, 58, 8, 2, 3] -> [72, 63, 8]
|
[3, 72, 2, 58, 63, 58, 8, 2, 3]
|
[72, 63, 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:
[42, 44, 8, 27, 6] -> ?
Answer:
|
[42, 44, 8, 27, 6] -> [44]
|
[42, 44, 8, 27, 6]
|
[44]
|
c222
|
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 input length".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 60, 78, 91] -> [4, 4, 4, 4]
[96, 30, 0, 2, 6, 17] -> [6, 6, 6, 6, 6, 6]
[89, 98, 99] -> [3, 3, 3]
[4, 52, 90, 88, 7, 97, 14] -> [7, 7, 7, 7, 7, 7, 7]
[25, 64, 79] -> [3, 3, 3]
[41, 89, 5] -> [3, 3, 3]
[71, 65, 3, 43, 44, 4] -> [6, 6, 6, 6, 6, 6]
[80, 37, 78, 6, 66, 29, 89, 0, 79] -> [9, 9, 9, 9, 9, 9, 9, 9, 9]
Questions:
[7, 28] -> ?
Answer:
|
[7, 28] -> [2, 2]
|
[7, 28]
|
[2, 2]
|
c222
|
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 input length".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 60, 78, 91] -> [4, 4, 4, 4]
[96, 30, 0, 2, 6, 17] -> [6, 6, 6, 6, 6, 6]
[89, 98, 99] -> [3, 3, 3]
[4, 52, 90, 88, 7, 97, 14] -> [7, 7, 7, 7, 7, 7, 7]
[25, 64, 79] -> [3, 3, 3]
[41, 89, 5] -> [3, 3, 3]
[71, 65, 3, 43, 44, 4] -> [6, 6, 6, 6, 6, 6]
[80, 37, 78, 6, 66, 29, 89, 0, 79] -> [9, 9, 9, 9, 9, 9, 9, 9, 9]
Questions:
[67] -> ?
Answer:
|
[67] -> [1]
|
[67]
|
[1]
|
c236
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "even elements divided by 2".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[77, 86, 96, 7, 24, 32, 4, 9, 3, 2] -> [43, 48, 12, 16, 2, 1]
[2, 3, 1, 9, 7, 63, 81] -> [1]
[83, 0, 3, 1, 7, 5, 4] -> [0, 2]
[0, 7, 8, 90, 5, 3, 72, 87, 88] -> [0, 4, 45, 36, 44]
[90, 67, 91, 9, 0, 96, 88, 50] -> [45, 0, 48, 44, 25]
[29, 5, 9, 2, 8, 88, 11, 71, 6, 45] -> [1, 4, 44, 3]
[31, 8, 32, 46, 13, 9, 81, 16, 42, 6] -> [4, 16, 23, 8, 21, 3]
[0, 1, 14, 55, 45, 86, 58, 21, 74] -> [0, 7, 43, 29, 37]
Questions:
[32, 0, 6, 42, 1, 87, 4] -> ?
Answer:
|
[32, 0, 6, 42, 1, 87, 4] -> [16, 0, 3, 21, 2]
|
[32, 0, 6, 42, 1, 87, 4]
|
[16, 0, 3, 21, 2]
|
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:
[7] -> ?
Answer:
|
[7] -> [7]
|
[7]
|
[7]
|
c194
|
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; prepend and append the input’s length".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 55, 4, 39, 1, 51, 46] -> [7, 46, 51, 1, 39, 4, 55, 3, 7]
[74, 1, 24] -> [3, 24, 1, 74, 3]
[94, 12, 6, 7, 43, 47, 25, 82] -> [8, 82, 25, 47, 43, 7, 6, 12, 94, 8]
[6] -> [1, 6, 1]
[53, 87, 5, 9, 88, 40, 7] -> [7, 7, 40, 88, 9, 5, 87, 53, 7]
[4, 5, 0, 23, 84, 83, 3, 44, 49, 36] -> [10, 36, 49, 44, 3, 83, 84, 23, 0, 5, 4, 10]
[92, 6, 0, 20, 3, 49, 85] -> [7, 85, 49, 3, 20, 0, 6, 92, 7]
[21] -> [1, 21, 1]
Questions:
[26, 98, 7, 77, 5, 30] -> ?
Answer:
|
[26, 98, 7, 77, 5, 30] -> [6, 30, 5, 77, 7, 98, 26, 6]
|
[26, 98, 7, 77, 5, 30]
|
[6, 30, 5, 77, 7, 98, 26, 6]
|
c162
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with 3 * M + 7".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 8, 1, 7, 1, 3] -> [31, 31, 10, 28, 10, 16]
[15, 6, 6, 16, 2, 6, 1, 6, 1, 15] -> [52, 25, 25, 55, 13, 25, 10, 25, 10, 52]
[6, 10, 0, 1, 10, 10, 8, 2, 6] -> [25, 37, 7, 10, 37, 37, 31, 13, 25]
[5, 4, 11, 16, 0, 8, 2] -> [22, 19, 40, 55, 7, 31, 13]
[4, 8, 10, 14, 0, 3, 6] -> [19, 31, 37, 49, 7, 16, 25]
[16, 9, 5, 4, 0, 7] -> [55, 34, 22, 19, 7, 28]
[1, 4, 4, 15, 1, 13, 1, 4, 7, 10] -> [10, 19, 19, 52, 10, 46, 10, 19, 28, 37]
[0, 9, 3, 3, 9, 9] -> [7, 34, 16, 16, 34, 34]
Questions:
[10, 10, 4, 8, 13, 13] -> ?
Answer:
|
[10, 10, 4, 8, 13, 13] -> [37, 37, 19, 31, 46, 46]
|
[10, 10, 4, 8, 13, 13]
|
[37, 37, 19, 31, 46, 46]
|
c027
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 2 if element 1 = element 2, else remove element 3".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 7, 4, 2, 9, 0, 8] -> [6, 7, 2, 9, 0, 8]
[3, 6, 0, 1, 5, 7, 4, 2] -> [3, 6, 1, 5, 7, 4, 2]
[9, 9, 3, 9, 5, 5] -> [9, 3, 9, 5, 5]
[9, 3, 0, 1, 2, 6, 8, 7] -> [9, 3, 1, 2, 6, 8, 7]
[1, 9, 8, 4, 6, 2, 0, 3, 7, 5] -> [1, 9, 4, 6, 2, 0, 3, 7, 5]
[9, 9, 6, 8, 2, 4, 1, 0] -> [9, 6, 8, 2, 4, 1, 0]
[9, 0, 3, 8, 1, 4, 2] -> [9, 0, 8, 1, 4, 2]
[3, 9, 8, 1, 2, 4, 6, 0, 7, 5] -> [3, 9, 1, 2, 4, 6, 0, 7, 5]
Questions:
[4, 4, 3, 9, 0] -> ?
Answer:
|
[4, 4, 3, 9, 0] -> [4, 3, 9, 0]
|
[4, 4, 3, 9, 0]
|
[4, 3, 9, 0]
|
c056
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 5".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 5, 4, 8, 9] -> [6, 5, 4, 8]
[4, 2, 9, 1, 0, 7, 6, 3] -> [4, 2, 9, 1, 7, 6, 3]
[1, 0, 4, 3, 8, 5] -> [1, 0, 4, 3, 5]
[5, 7, 1, 8, 3, 6, 4] -> [5, 7, 1, 8, 6, 4]
[0, 9, 7, 5] -> [0, 9, 7, 5]
[7] -> [7]
[0, 1, 7, 9, 3, 8, 4, 6, 2] -> [0, 1, 7, 9, 8, 4, 6, 2]
[8, 7, 3, 6, 0, 4, 5, 2, 9] -> [8, 7, 3, 6, 4, 5, 2, 9]
Questions:
[5, 1, 3, 8, 7, 2] -> ?
Answer:
|
[5, 1, 3, 8, 7, 2] -> [5, 1, 3, 8, 2]
|
[5, 1, 3, 8, 7, 2]
|
[5, 1, 3, 8, 2]
|
c047
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate [9, 6, 3, 8, 5] and input".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 2, 0, 6, 3, 1, 5, 7, 9] -> [9, 6, 3, 8, 5, 8, 2, 0, 6, 3, 1, 5, 7, 9]
[7, 1, 9, 2] -> [9, 6, 3, 8, 5, 7, 1, 9, 2]
[0, 5, 4] -> [9, 6, 3, 8, 5, 0, 5, 4]
[1] -> [9, 6, 3, 8, 5, 1]
[6, 1, 0, 2, 7, 8, 9, 3, 5, 4] -> [9, 6, 3, 8, 5, 6, 1, 0, 2, 7, 8, 9, 3, 5, 4]
[2, 8, 6, 7, 1] -> [9, 6, 3, 8, 5, 2, 8, 6, 7, 1]
[1, 7, 4, 8, 5, 2, 3, 9, 6, 0] -> [9, 6, 3, 8, 5, 1, 7, 4, 8, 5, 2, 3, 9, 6, 0]
[] -> [9, 6, 3, 8, 5]
Questions:
[0, 3, 7, 4, 6, 9, 1, 8] -> ?
Answer:
|
[0, 3, 7, 4, 6, 9, 1, 8] -> [9, 6, 3, 8, 5, 0, 3, 7, 4, 6, 9, 1, 8]
|
[0, 3, 7, 4, 6, 9, 1, 8]
|
[9, 6, 3, 8, 5, 0, 3, 7, 4, 6, 9, 1, 8]
|
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:
[69, 1, 1, 1, 69, 69, 69, 69, 69] -> ?
Answer:
|
[69, 1, 1, 1, 69, 69, 69, 69, 69] -> [69, 69, 69, 69, 69]
|
[69, 1, 1, 1, 69, 69, 69, 69, 69]
|
[69, 69, 69, 69, 69]
|
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:
[1, 2, 0, 7, 6, 3, 4, 5] -> ?
Answer:
|
[1, 2, 0, 7, 6, 3, 4, 5] -> [1, 0, 2, 7, 6, 3, 4, 5]
|
[1, 2, 0, 7, 6, 3, 4, 5]
|
[1, 0, 2, 7, 6, 3, 4, 5]
|
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:
[76] -> ?
Answer:
|
[76] -> [76]
|
[76]
|
[76]
|
c150
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count from element 1 up to each element, in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[17, 7, 2, 4] -> [17, 7, 2, 4]
[52, 18, 3] -> [52, 18, 3]
[80, 0, 7, 52, 62, 73] -> [80, 0, 7, 52, 62, 73]
[2, 0, 3, 6, 1] -> [2, 0, 2, 3, 2, 3, 4, 5, 6, 1]
[45, 23, 7, 4, 1, 47] -> [45, 23, 7, 4, 1, 45, 46, 47]
[90, 90, 90] -> [90, 90, 90]
[69, 3, 37, 55, 57, 1, 4, 6, 72] -> [69, 3, 37, 55, 57, 1, 4, 6, 69, 70, 71, 72]
[99, 9, 0, 72] -> [99, 9, 0, 72]
Questions:
[82, 71, 71, 71, 4] -> ?
Answer:
|
[82, 71, 71, 71, 4] -> [82, 71, 71, 71, 4]
|
[82, 71, 71, 71, 4]
|
[82, 71, 71, 71, 4]
|
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, 2, 7, 4, 3] -> ?
Answer:
|
[0, 2, 7, 4, 3] -> [0, 8, 7, 4, 3]
|
[0, 2, 7, 4, 3]
|
[0, 8, 7, 4, 3]
|
c214
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove elements 1 and N+1, where N is element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 60, 15, 5, 4, 42, 29] -> [60, 15, 4, 42, 29]
[5, 1, 24, 34, 1, 1, 1] -> [1, 24, 34, 1, 1]
[4, 6, 55, 8, 74, 1] -> [6, 55, 8, 1]
[8, 78, 4, 8, 75, 3, 1, 68, 0, 92] -> [78, 4, 8, 75, 3, 1, 68, 92]
[2, 0, 1, 76, 98, 33, 79] -> [0, 76, 98, 33, 79]
[3, 13, 13, 46, 2, 80, 45, 1] -> [13, 13, 2, 80, 45, 1]
[6, 53, 50, 71, 9, 13, 16, 8] -> [53, 50, 71, 9, 13, 8]
[4, 0, 9, 27, 2, 40, 56] -> [0, 9, 27, 40, 56]
Questions:
[2, 5, 3, 2] -> ?
Answer:
|
[2, 5, 3, 2] -> [5, 2]
|
[2, 5, 3, 2]
|
[5, 2]
|
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:
[0, 36, 0, 36, 0] -> ?
Answer:
|
[0, 36, 0, 36, 0] -> [36, 36]
|
[0, 36, 0, 36, 0]
|
[36, 36]
|
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:
[3, 81, 1, 6, 8, 75, 3, 70, 3, 4] -> ?
Answer:
|
[3, 81, 1, 6, 8, 75, 3, 70, 3, 4] -> [81, 1, 6, 8, 75, 70, 4]
|
[3, 81, 1, 6, 8, 75, 3, 70, 3, 4]
|
[81, 1, 6, 8, 75, 70, 4]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.