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
|
|---|---|---|---|---|---|
c004
|
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:
[2, 6, 5, 9, 7, 1, 8, 3, 4] -> [8]
[0, 4, 7, 3, 2, 9, 1, 8, 5, 6] -> [1]
[9, 3, 2, 8] -> []
[0, 4, 5, 2, 8, 7, 1, 6] -> [1]
[6] -> []
[0, 3, 5, 8, 2] -> []
[6, 8] -> []
[4, 7, 6] -> []
Questions:
[6, 3, 1, 8, 7, 4, 9, 0] -> ?
Answer:
|
[6, 3, 1, 8, 7, 4, 9, 0] -> [9]
|
[6, 3, 1, 8, 7, 4, 9, 0]
|
[9]
|
c030
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the last two elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 8, 9, 3, 4, 5, 1, 2] -> [7, 8, 9, 3, 4, 5]
[7, 4, 3, 0, 9, 6, 8, 2] -> [7, 4, 3, 0, 9, 6]
[4, 0, 1, 3, 2, 5, 7] -> [4, 0, 1, 3, 2]
[8, 6] -> []
[9, 5, 2, 0, 1] -> [9, 5, 2]
[7, 5, 9, 4, 8, 1, 0, 6, 2] -> [7, 5, 9, 4, 8, 1, 0]
[5, 6, 7, 0, 4, 9] -> [5, 6, 7, 0]
[6, 4, 0, 7] -> [6, 4]
Questions:
[0, 8, 3, 9] -> ?
Answer:
|
[0, 8, 3, 9] -> [0, 8]
|
[0, 8, 3, 9]
|
[0, 8]
|
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:
[58] -> ?
Answer:
|
[58] -> []
|
[58]
|
[]
|
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:
[6, 3] -> ?
Answer:
|
[6, 3] -> [9]
|
[6, 3]
|
[9]
|
c140
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element 2 with a 9".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[65, 43, 3, 9, 69, 17, 8, 7, 38, 58] -> [65, 9, 3, 9, 69, 17, 8, 7, 38, 58]
[36, 90] -> [36, 9]
[16, 8, 80, 5, 81] -> [16, 9, 80, 5, 81]
[67, 74, 8, 18, 60, 5, 4, 38, 26] -> [67, 9, 8, 18, 60, 5, 4, 38, 26]
[35, 51, 6] -> [35, 9, 6]
[9, 1] -> [9, 9]
[1, 30, 3, 76, 6, 5, 43, 79] -> [1, 9, 3, 76, 6, 5, 43, 79]
[49, 55, 78, 3] -> [49, 9, 78, 3]
Questions:
[92, 4, 42] -> ?
Answer:
|
[92, 4, 42] -> [92, 9, 42]
|
[92, 4, 42]
|
[92, 9, 42]
|
c225
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove first and last two elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 5, 10, 34, 57, 44] -> [10, 34]
[6, 5, 11, 42, 91, 70, 4] -> [11, 42, 91]
[3, 91, 25, 90, 92, 0] -> [25, 90]
[24, 46, 0, 31, 74, 5, 44, 80, 94] -> [0, 31, 74, 5, 44]
[99, 9, 35, 98, 7, 54, 69, 8, 6] -> [35, 98, 7, 54, 69]
[58, 8, 86, 6, 5] -> [86]
[1, 6, 5, 48, 3, 76, 7, 83] -> [5, 48, 3, 76]
[2, 7, 9, 20, 32, 60, 13] -> [9, 20, 32]
Questions:
[2, 47, 55, 7, 5] -> ?
Answer:
|
[2, 47, 55, 7, 5] -> [55]
|
[2, 47, 55, 7, 5]
|
[55]
|
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:
[6, 9, 5, 4, 0, 8, 1, 7, 2] -> ?
Answer:
|
[6, 9, 5, 4, 0, 8, 1, 7, 2] -> [6, 8, 5, 4, 0, 8, 1, 7, 2]
|
[6, 9, 5, 4, 0, 8, 1, 7, 2]
|
[6, 8, 5, 4, 0, 8, 1, 7, 2]
|
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:
[2, 34, 77, 37, 70, 19, 86, 9, 4, 83] -> ?
Answer:
|
[2, 34, 77, 37, 70, 19, 86, 9, 4, 83] -> [4, 19, 37, 77, 86, 83, 70, 34, 9, 2]
|
[2, 34, 77, 37, 70, 19, 86, 9, 4, 83]
|
[4, 19, 37, 77, 86, 83, 70, 34, 9, 2]
|
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:
[84, 98, 7, 6, 77, 45, 95, 78, 3] -> ?
Answer:
|
[84, 98, 7, 6, 77, 45, 95, 78, 3] -> [48, 89, 70, 60, 77, 54, 59, 87, 30]
|
[84, 98, 7, 6, 77, 45, 95, 78, 3]
|
[48, 89, 70, 60, 77, 54, 59, 87, 30]
|
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:
[0, 3, 0, 3, 7, 5, 7, 8] -> ?
Answer:
|
[0, 3, 0, 3, 7, 5, 7, 8] -> [7, 16, 7, 16, 28, 22, 28, 31]
|
[0, 3, 0, 3, 7, 5, 7, 8]
|
[7, 16, 7, 16, 28, 22, 28, 31]
|
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, 8] -> ?
Answer:
|
[3, 8] -> [24]
|
[3, 8]
|
[24]
|
c153
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "each unique element followed by its number of occurrences, in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 81, 81, 1, 1, 17, 81, 17] -> [1, 3, 81, 3, 17, 2]
[71, 9, 9, 71, 71, 9, 42, 9, 42] -> [71, 3, 9, 4, 42, 2]
[43, 43, 91, 91, 91] -> [43, 2, 91, 3]
[6, 54, 6, 67, 67, 54, 83, 83, 6, 67] -> [6, 3, 54, 2, 67, 3, 83, 2]
[26, 26, 26, 26, 26, 26] -> [26, 6]
[83, 83, 9, 9, 9, 9] -> [83, 2, 9, 4]
[17, 92, 69, 17, 92, 69, 92, 17, 69, 17] -> [17, 4, 92, 3, 69, 3]
[6, 45, 6, 13, 18, 18, 45, 13, 18] -> [6, 2, 45, 2, 13, 2, 18, 3]
Questions:
[19, 31, 19, 19, 31, 19, 31, 31] -> ?
Answer:
|
[19, 31, 19, 19, 31, 19, 31, 31] -> [19, 4, 31, 4]
|
[19, 31, 19, 19, 31, 19, 31, 31]
|
[19, 4, 31, 4]
|
c028
|
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:
[4, 7, 3, 8, 3, 8] -> [4, 7, 8, 3, 8]
[1, 0, 9, 8, 2, 7, 3, 6, 5, 4] -> [1, 9, 8, 2, 7, 3, 6, 5, 4]
[8, 7, 9, 1, 4, 5, 5, 5, 3, 2] -> [8, 9, 1, 4, 5, 5, 5, 3, 2]
[7, 0, 8] -> [7, 8]
[4, 5, 1, 5, 4, 1, 4, 5] -> [4, 5, 5, 4, 1, 4, 5]
[2, 9, 1, 5, 0, 3, 7, 8, 6, 4] -> [2, 9, 5, 0, 3, 7, 8, 6, 4]
[3, 2, 9] -> [3, 9]
[7, 9, 4, 2, 0, 5, 8] -> [7, 9, 2, 0, 5, 8]
Questions:
[4, 6, 2, 0, 1, 3, 9, 5, 1, 7] -> ?
Answer:
|
[4, 6, 2, 0, 1, 3, 9, 5, 1, 7] -> [4, 6, 0, 1, 3, 9, 5, 1, 7]
|
[4, 6, 2, 0, 1, 3, 9, 5, 1, 7]
|
[4, 6, 0, 1, 3, 9, 5, 1, 7]
|
c100
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reversed input".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[96, 69] -> [69, 96]
[3, 53, 99, 51, 50, 92, 6] -> [6, 92, 50, 51, 99, 53, 3]
[87, 91, 74] -> [74, 91, 87]
[90, 5, 0, 96] -> [96, 0, 5, 90]
[32, 0, 88, 5, 83, 2, 44, 16, 1, 97] -> [97, 1, 16, 44, 2, 83, 5, 88, 0, 32]
[18, 59, 10, 83, 86, 64, 0] -> [0, 64, 86, 83, 10, 59, 18]
[0, 42, 11, 2, 35] -> [35, 2, 11, 42, 0]
[39, 65, 0, 1, 49, 30] -> [30, 49, 1, 0, 65, 39]
Questions:
[0, 2, 45, 35, 1, 47, 46, 92] -> ?
Answer:
|
[0, 2, 45, 35, 1, 47, 46, 92] -> [92, 46, 47, 1, 35, 45, 2, 0]
|
[0, 2, 45, 35, 1, 47, 46, 92]
|
[92, 46, 47, 1, 35, 45, 2, 0]
|
c023
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "insert as element 2: 8 if the list length > 5 else 5".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 3, 8, 0, 7, 6, 4, 2] -> [9, 5, 3, 8, 0, 7, 6, 4, 2]
[4, 1, 2, 0, 6, 9] -> [4, 5, 1, 2, 0, 6, 9]
[6, 2, 8, 5, 1, 9, 7, 3, 4] -> [6, 5, 2, 8, 5, 1, 9, 7, 3, 4]
[6, 2] -> [6, 8, 2]
[7, 9, 2, 1, 4, 3, 8, 6, 0] -> [7, 5, 9, 2, 1, 4, 3, 8, 6, 0]
[6, 2, 4, 3] -> [6, 8, 2, 4, 3]
[0, 7, 1, 5, 4] -> [0, 5, 7, 1, 5, 4]
[4, 8, 9, 5, 1, 7, 6, 3, 0, 2] -> [4, 5, 8, 9, 5, 1, 7, 6, 3, 0, 2]
Questions:
[6, 1, 9, 0, 2, 4, 3] -> ?
Answer:
|
[6, 1, 9, 0, 2, 4, 3] -> [6, 5, 1, 9, 0, 2, 4, 3]
|
[6, 1, 9, 0, 2, 4, 3]
|
[6, 5, 1, 9, 0, 2, 4, 3]
|
c105
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate all but the last element with all but the first element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[49, 11, 73, 7] -> [49, 11, 73, 11, 73, 7]
[3, 81, 35, 26] -> [3, 81, 35, 81, 35, 26]
[6, 8, 5] -> [6, 8, 8, 5]
[47, 45, 73] -> [47, 45, 45, 73]
[62, 4, 8, 75, 2, 19] -> [62, 4, 8, 75, 2, 4, 8, 75, 2, 19]
[39, 61, 49, 63, 89] -> [39, 61, 49, 63, 61, 49, 63, 89]
[59, 65, 90, 9] -> [59, 65, 90, 65, 90, 9]
[2, 20, 8, 28, 17, 88] -> [2, 20, 8, 28, 17, 20, 8, 28, 17, 88]
Questions:
[0, 35, 54, 44, 21] -> ?
Answer:
|
[0, 35, 54, 44, 21] -> [0, 35, 54, 44, 35, 54, 44, 21]
|
[0, 35, 54, 44, 21]
|
[0, 35, 54, 44, 35, 54, 44, 21]
|
c028
|
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:
[4, 7, 3, 8, 3, 8] -> [4, 7, 8, 3, 8]
[1, 0, 9, 8, 2, 7, 3, 6, 5, 4] -> [1, 9, 8, 2, 7, 3, 6, 5, 4]
[8, 7, 9, 1, 4, 5, 5, 5, 3, 2] -> [8, 9, 1, 4, 5, 5, 5, 3, 2]
[7, 0, 8] -> [7, 8]
[4, 5, 1, 5, 4, 1, 4, 5] -> [4, 5, 5, 4, 1, 4, 5]
[2, 9, 1, 5, 0, 3, 7, 8, 6, 4] -> [2, 9, 5, 0, 3, 7, 8, 6, 4]
[3, 2, 9] -> [3, 9]
[7, 9, 4, 2, 0, 5, 8] -> [7, 9, 2, 0, 5, 8]
Questions:
[5, 6, 0, 4, 5, 2] -> ?
Answer:
|
[5, 6, 0, 4, 5, 2] -> [5, 6, 4, 5, 2]
|
[5, 6, 0, 4, 5, 2]
|
[5, 6, 4, 5, 2]
|
c206
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements whose value is between the first two elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[43, 2, 9, 4, 3] -> [9, 4, 3]
[85, 4, 89, 58, 54, 2, 6, 2, 85] -> [58, 54, 6]
[98, 0, 5, 7, 12] -> [5, 7, 12]
[80, 91, 81, 4, 88, 9, 53, 84] -> [81, 88, 84]
[90, 3, 86, 85, 56, 18] -> [86, 85, 56, 18]
[86, 1, 73, 8, 85, 9, 0, 42] -> [73, 8, 85, 9, 42]
[75, 7, 9, 5, 48, 2, 8, 21] -> [9, 48, 8, 21]
[29, 76, 62, 14, 4, 67, 89, 1, 88, 50] -> [62, 67, 50]
Questions:
[63, 1, 4, 64, 89, 78, 33, 51, 2] -> ?
Answer:
|
[63, 1, 4, 64, 89, 78, 33, 51, 2] -> [4, 33, 51, 2]
|
[63, 1, 4, 64, 89, 78, 33, 51, 2]
|
[4, 33, 51, 2]
|
c043
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [8, 2, 7, 0, 3]".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 6, 6, 6, 6, 3] -> [8, 2, 7, 0, 3]
[6] -> [8, 2, 7, 0, 3]
[5, 5, 5, 5, 5, 5, 5, 5, 5, 5] -> [8, 2, 7, 0, 3]
[5, 5, 5, 5, 5] -> [8, 2, 7, 0, 3]
[1, 1, 1, 1, 1, 1] -> [8, 2, 7, 0, 3]
[5, 1, 5, 9, 6, 5, 1] -> [8, 2, 7, 0, 3]
[6, 1, 9, 5, 0, 4] -> [8, 2, 7, 0, 3]
[1, 1, 1, 6, 5, 6, 1, 5] -> [8, 2, 7, 0, 3]
Questions:
[6, 1, 9, 2, 3, 1, 8, 5, 2] -> ?
Answer:
|
[6, 1, 9, 2, 3, 1, 8, 5, 2] -> [8, 2, 7, 0, 3]
|
[6, 1, 9, 2, 3, 1, 8, 5, 2]
|
[8, 2, 7, 0, 3]
|
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:
[8, 7, 8, 8, 7] -> ?
Answer:
|
[8, 7, 8, 8, 7] -> [8, 7, 8, 8, 7, 8]
|
[8, 7, 8, 8, 7]
|
[8, 7, 8, 8, 7, 8]
|
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, 5, 7, 2, 1, 9, 0] -> ?
Answer:
|
[8, 5, 7, 2, 1, 9, 0] -> [8, 5, 7, 2, 1, 9, 0, 8, 5, 7, 2, 1, 9, 0]
|
[8, 5, 7, 2, 1, 9, 0]
|
[8, 5, 7, 2, 1, 9, 0, 8, 5, 7, 2, 1, 9, 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:
[6, 0, 4, 3, 2, 7, 9, 1] -> ?
Answer:
|
[6, 0, 4, 3, 2, 7, 9, 1] -> [6, 0, 4, 1, 2, 7, 9, 3]
|
[6, 0, 4, 3, 2, 7, 9, 1]
|
[6, 0, 4, 1, 2, 7, 9, 3]
|
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:
[29, 72, 55] -> ?
Answer:
|
[29, 72, 55] -> [11, 21, 43, 19, 29, 72, 55, 7, 89, 0, 57]
|
[29, 72, 55]
|
[11, 21, 43, 19, 29, 72, 55, 7, 89, 0, 57]
|
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:
[5, 8, 8, 0, 5, 0, 0, 8, 8] -> ?
Answer:
|
[5, 8, 8, 0, 5, 0, 0, 8, 8] -> [8, 5, 0]
|
[5, 8, 8, 0, 5, 0, 0, 8, 8]
|
[8, 5, 0]
|
c129
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements M + 2 through N + 2, M = element 1, N = element 2".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 7, 73, 93, 49, 3, 2, 93, 5, 0] -> [73, 93, 49, 3, 2, 93, 5]
[3, 5, 8, 79, 28, 4, 57, 89] -> [28, 4, 57]
[81, 99, 88] -> []
[4, 6, 5, 23, 8, 34, 0] -> [34, 0]
[4, 4, 4, 4, 4, 4, 4, 4] -> [4]
[2, 3, 2, 65, 65, 8, 8] -> [65, 65]
[5, 33, 12, 67, 7, 4] -> []
[6, 6, 7, 7, 6, 4, 4, 4, 6] -> [4]
Questions:
[7, 7, 6, 2, 0, 56, 86, 8, 38, 76] -> ?
Answer:
|
[7, 7, 6, 2, 0, 56, 86, 8, 38, 76] -> [38]
|
[7, 7, 6, 2, 0, 56, 86, 8, 38, 76]
|
[38]
|
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:
[2, 9, 3, 7, 6, 4, 1] -> ?
Answer:
|
[2, 9, 3, 7, 6, 4, 1] -> [9, 6, 3, 8, 5, 2, 9, 3, 7, 6, 4, 1]
|
[2, 9, 3, 7, 6, 4, 1]
|
[9, 6, 3, 8, 5, 2, 9, 3, 7, 6, 4, 1]
|
c243
|
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 odd elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 33, 9, 1, 7, 62, 88, 9, 8] -> [5]
[72, 1, 6, 2, 5, 0, 82, 9] -> [3]
[8, 45, 77, 9, 88, 77, 81, 66] -> [5]
[34, 2, 88, 4, 63, 7, 9, 62, 7, 2] -> [4]
[3, 27, 5, 1, 8, 4, 7, 6, 37] -> [6]
[1, 0, 85, 3, 99, 68, 8] -> [4]
[24, 51, 1, 7, 55, 9, 70, 77, 95, 90] -> [7]
[89, 4, 93, 92, 67, 18, 7, 1] -> [5]
Questions:
[21, 86, 9, 2, 12, 4, 6, 40, 25, 22] -> ?
Answer:
|
[21, 86, 9, 2, 12, 4, 6, 40, 25, 22] -> [3]
|
[21, 86, 9, 2, 12, 4, 6, 40, 25, 22]
|
[3]
|
c193
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "input in ascending order, minus an occurrence of both the smallest and largest elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[64, 85, 45, 1, 7, 52, 1, 60, 64, 6] -> [1, 6, 7, 45, 52, 60, 64, 64]
[52, 6, 54, 0, 5, 33, 8, 82, 92] -> [5, 6, 8, 33, 52, 54, 82]
[53, 50, 1, 7, 9, 74, 0, 25, 80, 4] -> [1, 4, 7, 9, 25, 50, 53, 74]
[66, 9, 2, 8, 8, 34, 3, 1, 0] -> [1, 2, 3, 8, 8, 9, 34]
[43, 0, 39, 4, 53, 57, 55, 52, 8] -> [4, 8, 39, 43, 52, 53, 55]
[0, 3, 2, 6, 53, 8, 20, 5, 37] -> [2, 3, 5, 6, 8, 20, 37]
[6, 8, 78, 9, 75, 1, 1, 17, 4, 2] -> [1, 2, 4, 6, 8, 9, 17, 75]
[19, 17, 77, 6, 7, 0, 52, 1, 76, 41] -> [1, 6, 7, 17, 19, 41, 52, 76]
Questions:
[71, 3, 18, 19, 9, 8, 7, 5, 5, 8] -> ?
Answer:
|
[71, 3, 18, 19, 9, 8, 7, 5, 5, 8] -> [5, 5, 7, 8, 8, 9, 18, 19]
|
[71, 3, 18, 19, 9, 8, 7, 5, 5, 8]
|
[5, 5, 7, 8, 8, 9, 18, 19]
|
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:
[68, 7, 34, 9, 0, 66, 4, 47] -> ?
Answer:
|
[68, 7, 34, 9, 0, 66, 4, 47] -> [68, 7, 34, 9, 0, 66, 4, 47]
|
[68, 7, 34, 9, 0, 66, 4, 47]
|
[68, 7, 34, 9, 0, 66, 4, 47]
|
c130
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements 2 through N + 1, N = element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 44, 96, 40, 40, 3, 8] -> [44, 96, 40]
[4, 6, 0, 5, 2, 8, 3, 7, 37, 24] -> [6, 0, 5, 2]
[3, 51, 21, 21, 2] -> [51, 21, 21]
[6, 1, 90, 77, 85, 7, 4, 9, 5] -> [1, 90, 77, 85, 7, 4]
[2, 55, 5, 88, 9, 3, 45] -> [55, 5]
[5, 6, 35, 3, 67, 41, 27, 82] -> [6, 35, 3, 67, 41]
[5, 35, 4, 0, 7, 3, 9, 2] -> [35, 4, 0, 7, 3]
[7, 9, 81, 2, 6, 1, 5, 6, 3] -> [9, 81, 2, 6, 1, 5, 6]
Questions:
[3, 8, 7, 57, 4, 74, 49, 74, 78] -> ?
Answer:
|
[3, 8, 7, 57, 4, 74, 49, 74, 78] -> [8, 7, 57]
|
[3, 8, 7, 57, 4, 74, 49, 74, 78]
|
[8, 7, 57]
|
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, 5, 0, 8, 2, 7, 3, 9] -> ?
Answer:
|
[6, 5, 0, 8, 2, 7, 3, 9] -> [0, 8, 2, 7, 3]
|
[6, 5, 0, 8, 2, 7, 3, 9]
|
[0, 8, 2, 7, 3]
|
c035
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 4 if element 2 = element 3, else swap elements 2 and 3".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 5, 1, 0] -> [0, 1, 5, 0]
[7, 5, 7, 7, 4, 2, 8] -> [7, 7, 5, 7, 4, 2, 8]
[0, 7, 5, 0, 8, 5, 0, 1, 9, 7] -> [0, 5, 7, 0, 8, 5, 0, 1, 9, 7]
[4, 9, 9, 9, 4, 4, 6, 9] -> [9, 9, 9, 4, 4, 4, 6, 9]
[1, 1, 9, 1, 8, 7] -> [1, 9, 1, 1, 8, 7]
[3, 1, 1, 6] -> [6, 1, 1, 3]
[3, 4, 4, 0, 5, 9, 9, 7, 5] -> [0, 4, 4, 3, 5, 9, 9, 7, 5]
[2, 5, 1, 2, 8, 6] -> [2, 1, 5, 2, 8, 6]
Questions:
[5, 1, 8, 5, 9, 3, 0] -> ?
Answer:
|
[5, 1, 8, 5, 9, 3, 0] -> [5, 8, 1, 5, 9, 3, 0]
|
[5, 1, 8, 5, 9, 3, 0]
|
[5, 8, 1, 5, 9, 3, 0]
|
c107
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[35, 70, 1, 35, 70, 9, 35, 26, 9] -> [35, 70, 1, 9, 26]
[17, 25, 25, 43, 8, 25, 43] -> [17, 25, 43, 8]
[96, 25, 25, 3, 81, 16, 16, 16, 81] -> [96, 25, 3, 81, 16]
[37, 11, 11, 3, 3, 87, 87, 11] -> [37, 11, 3, 87]
[] -> []
[51, 51, 51, 51] -> [51]
[75, 21, 21, 21, 75, 75] -> [75, 21]
[8, 8, 8, 8] -> [8]
Questions:
[81, 81, 99, 81, 81] -> ?
Answer:
|
[81, 81, 99, 81, 81] -> [81, 99]
|
[81, 81, 99, 81, 81]
|
[81, 99]
|
c250
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "use 0s to delimit sublists; concatenate reverse of each sublist".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[57, 57, 33, 33, 0, 57, 33, 0, 6] -> [33, 33, 57, 57, 33, 57, 6]
[7, 0, 0, 93, 4, 9, 9, 96, 71] -> [7, 71, 96, 9, 9, 4, 93]
[6, 0, 90, 6, 0, 6] -> [6, 6, 90, 6]
[9, 78, 7, 0, 7, 78, 0, 9, 7] -> [7, 78, 9, 78, 7, 7, 9]
[68, 91, 91, 3, 1, 49, 98, 70, 7] -> [7, 70, 98, 49, 1, 3, 91, 91, 68]
[27, 95, 2, 95, 46, 0, 7, 4, 17, 47] -> [46, 95, 2, 95, 27, 47, 17, 4, 7]
[93, 4, 35, 62, 19, 10, 87, 15, 9, 15] -> [15, 9, 15, 87, 10, 19, 62, 35, 4, 93]
[8, 6, 0, 6, 5, 0, 82, 5, 6, 0] -> [6, 8, 5, 6, 6, 5, 82]
Questions:
[6, 0, 1, 99, 1, 80, 0, 94, 1] -> ?
Answer:
|
[6, 0, 1, 99, 1, 80, 0, 94, 1] -> [6, 80, 1, 99, 1, 1, 94]
|
[6, 0, 1, 99, 1, 80, 0, 94, 1]
|
[6, 80, 1, 99, 1, 1, 94]
|
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:
[2, 9, 4] -> ?
Answer:
|
[2, 9, 4] -> [2, 9, 4]
|
[2, 9, 4]
|
[2, 9, 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:
[9, 3, 6, 8] -> ?
Answer:
|
[9, 3, 6, 8] -> [8, 6, 3, 9]
|
[9, 3, 6, 8]
|
[8, 6, 3, 9]
|
c107
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[35, 70, 1, 35, 70, 9, 35, 26, 9] -> [35, 70, 1, 9, 26]
[17, 25, 25, 43, 8, 25, 43] -> [17, 25, 43, 8]
[96, 25, 25, 3, 81, 16, 16, 16, 81] -> [96, 25, 3, 81, 16]
[37, 11, 11, 3, 3, 87, 87, 11] -> [37, 11, 3, 87]
[] -> []
[51, 51, 51, 51] -> [51]
[75, 21, 21, 21, 75, 75] -> [75, 21]
[8, 8, 8, 8] -> [8]
Questions:
[60, 66, 66, 66, 60, 58] -> ?
Answer:
|
[60, 66, 66, 66, 60, 58] -> [60, 66, 58]
|
[60, 66, 66, 66, 60, 58]
|
[60, 66, 58]
|
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:
[88, 51] -> ?
Answer:
|
[88, 51] -> [88, 51, 0, 88, 51]
|
[88, 51]
|
[88, 51, 0, 88, 51]
|
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:
[0, 71, 4, 97, 57, 3, 7] -> ?
Answer:
|
[0, 71, 4, 97, 57, 3, 7] -> [4, 0]
|
[0, 71, 4, 97, 57, 3, 7]
|
[4, 0]
|
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:
[33, 8, 3, 5, 8, 0] -> ?
Answer:
|
[33, 8, 3, 5, 8, 0] -> [0, 3, 5, 33, 8]
|
[33, 8, 3, 5, 8, 0]
|
[0, 3, 5, 33, 8]
|
c145
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace every element with element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[89, 0, 73] -> [89, 89, 89]
[57, 0, 4, 9, 6, 97, 7, 2, 48, 77] -> [57, 57, 57, 57, 57, 57, 57, 57, 57, 57]
[63, 6] -> [63, 63]
[50, 1, 59, 28] -> [50, 50, 50, 50]
[18, 9, 1, 38, 8] -> [18, 18, 18, 18, 18]
[8, 0, 4] -> [8, 8, 8]
[] -> []
[30, 39, 84, 7, 0, 1] -> [30, 30, 30, 30, 30, 30]
Questions:
[13, 83, 4, 93, 7, 34, 90, 8, 3] -> ?
Answer:
|
[13, 83, 4, 93, 7, 34, 90, 8, 3] -> [13, 13, 13, 13, 13, 13, 13, 13, 13]
|
[13, 83, 4, 93, 7, 34, 90, 8, 3]
|
[13, 13, 13, 13, 13, 13, 13, 13, 13]
|
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:
[85, 69, 20, 2, 9, 90, 6, 24] -> ?
Answer:
|
[85, 69, 20, 2, 9, 90, 6, 24] -> [6]
|
[85, 69, 20, 2, 9, 90, 6, 24]
|
[6]
|
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:
[9, 67, 6, 0, 3, 90, 8, 1, 4] -> ?
Answer:
|
[9, 67, 6, 0, 3, 90, 8, 1, 4] -> [4, 8, 3, 6, 9, 67, 0, 90, 1]
|
[9, 67, 6, 0, 3, 90, 8, 1, 4]
|
[4, 8, 3, 6, 9, 67, 0, 90, 1]
|
c130
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements 2 through N + 1, N = element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 44, 96, 40, 40, 3, 8] -> [44, 96, 40]
[4, 6, 0, 5, 2, 8, 3, 7, 37, 24] -> [6, 0, 5, 2]
[3, 51, 21, 21, 2] -> [51, 21, 21]
[6, 1, 90, 77, 85, 7, 4, 9, 5] -> [1, 90, 77, 85, 7, 4]
[2, 55, 5, 88, 9, 3, 45] -> [55, 5]
[5, 6, 35, 3, 67, 41, 27, 82] -> [6, 35, 3, 67, 41]
[5, 35, 4, 0, 7, 3, 9, 2] -> [35, 4, 0, 7, 3]
[7, 9, 81, 2, 6, 1, 5, 6, 3] -> [9, 81, 2, 6, 1, 5, 6]
Questions:
[1, 68, 7] -> ?
Answer:
|
[1, 68, 7] -> [68]
|
[1, 68, 7]
|
[68]
|
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:
[2, 5, 8, 3, 6, 9, 7] -> ?
Answer:
|
[2, 5, 8, 3, 6, 9, 7] -> [7]
|
[2, 5, 8, 3, 6, 9, 7]
|
[7]
|
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:
[12] -> ?
Answer:
|
[12] -> [12]
|
[12]
|
[12]
|
c234
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repetitions in order of first appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[76, 42, 17, 76, 17] -> [76, 17]
[57, 77, 57, 77, 77, 77] -> [57, 77, 77, 77]
[0, 17, 17, 17, 70, 17] -> [17, 17, 17]
[62, 6, 48, 1, 67, 69, 0, 59, 15, 48] -> [48]
[81, 58, 58, 58, 58, 81, 58, 81, 81] -> [81, 81, 81, 58, 58, 58, 58]
[97, 97, 97, 97] -> [97, 97, 97]
[95, 95, 79, 5, 6, 22, 2] -> [95]
[98, 2, 77, 98, 19] -> [98]
Questions:
[31, 33, 31, 33, 33] -> ?
Answer:
|
[31, 33, 31, 33, 33] -> [31, 33, 33]
|
[31, 33, 31, 33, 33]
|
[31, 33, 33]
|
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:
[9, 5, 4, 7, 0, 3, 2, 6, 1, 8] -> ?
Answer:
|
[9, 5, 4, 7, 0, 3, 2, 6, 1, 8] -> [8, 5, 4, 7, 0, 3, 2, 6, 1, 8]
|
[9, 5, 4, 7, 0, 3, 2, 6, 1, 8]
|
[8, 5, 4, 7, 0, 3, 2, 6, 1, 8]
|
c186
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements greater than element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 62, 97, 4, 42, 27, 43, 1, 5] -> [62, 97, 42, 27, 43]
[9, 0, 16, 94, 4, 2, 6, 27, 9, 88] -> [16, 94, 27, 88]
[6, 4, 0, 87, 9, 86, 89, 1, 23] -> [87, 9, 86, 89, 23]
[5, 60, 5, 60] -> [60, 60]
[9, 6, 5, 8, 1, 34, 91, 36, 0] -> [34, 91, 36]
[15, 7, 31, 9, 4, 22, 82, 1, 38, 80] -> [31, 22, 82, 38, 80]
[39, 0, 22, 3, 8, 6, 9, 4, 51, 57] -> [51, 57]
[5, 46, 6, 49, 3, 9, 1, 4, 7] -> [46, 6, 49, 9, 7]
Questions:
[82, 6, 0, 4, 8, 2, 7, 86, 2, 91] -> ?
Answer:
|
[82, 6, 0, 4, 8, 2, 7, 86, 2, 91] -> [86, 91]
|
[82, 6, 0, 4, 8, 2, 7, 86, 2, 91]
|
[86, 91]
|
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, 6, 5, 2, 7, 1, 9] -> ?
Answer:
|
[0, 6, 5, 2, 7, 1, 9] -> [0, 5, 2, 7, 1, 9]
|
[0, 6, 5, 2, 7, 1, 9]
|
[0, 5, 2, 7, 1, 9]
|
c230
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count by 2 from the smallest element to the largest element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[40] -> [40]
[6, 28, 4, 7] -> [4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28]
[35] -> [35]
[6, 13] -> [6, 8, 10, 12]
[44, 63, 44, 44, 63] -> [44, 46, 48, 50, 52, 54, 56, 58, 60, 62]
[11, 2] -> [2, 4, 6, 8, 10]
[63, 63, 75] -> [63, 65, 67, 69, 71, 73, 75]
[29] -> [29]
Questions:
[64, 43] -> ?
Answer:
|
[64, 43] -> [43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63]
|
[64, 43]
|
[43, 45, 47, 49, 51, 53, 55, 57, 59, 61, 63]
|
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:
[9, 0, 4, 2, 8, 6] -> ?
Answer:
|
[9, 0, 4, 2, 8, 6] -> [9, 0, 4, 2, 8, 3]
|
[9, 0, 4, 2, 8, 6]
|
[9, 0, 4, 2, 8, 3]
|
c115
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the unique elements, prepended and appended by their sum".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[25, 4, 25, 4, 4] -> [29, 25, 4, 29]
[0, 7, 7, 4, 4, 40] -> [51, 0, 7, 4, 40, 51]
[35, 22, 35, 35, 22, 35, 35, 35, 22, 22] -> [57, 35, 22, 57]
[5, 5, 70] -> [75, 5, 70, 75]
[12, 9, 12, 10, 8, 9, 10, 5, 10, 9] -> [44, 12, 9, 10, 8, 5, 44]
[58, 14, 14, 58, 14, 14, 58, 58, 14] -> [72, 58, 14, 72]
[36, 36, 3, 36, 3, 3, 36] -> [39, 36, 3, 39]
[32, 4, 7, 7, 32, 7, 7, 7, 32] -> [43, 32, 4, 7, 43]
Questions:
[4, 6, 4, 3, 3, 6, 3, 3, 64, 8] -> ?
Answer:
|
[4, 6, 4, 3, 3, 6, 3, 3, 64, 8] -> [85, 4, 6, 3, 64, 8, 85]
|
[4, 6, 4, 3, 3, 6, 3, 3, 64, 8]
|
[85, 4, 6, 3, 64, 8, 85]
|
c197
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with the number of occurrences of that element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 8, 7, 20, 61, 45, 0] -> [2, 1, 1, 1, 1, 1, 2]
[11, 11, 11] -> [3, 3, 3]
[94, 53, 35, 60, 1, 38] -> [1, 1, 1, 1, 1, 1]
[] -> []
[75, 75, 75, 75, 75, 75, 75, 75, 75, 75] -> [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]
[26, 63, 63, 63, 26, 26, 63, 63, 26] -> [4, 5, 5, 5, 4, 4, 5, 5, 4]
[58, 71, 11, 11, 58] -> [2, 1, 2, 2, 2]
[25, 25, 25, 25, 25, 25, 25] -> [7, 7, 7, 7, 7, 7, 7]
Questions:
[89, 89, 89, 89, 89] -> ?
Answer:
|
[89, 89, 89, 89, 89] -> [5, 5, 5, 5, 5]
|
[89, 89, 89, 89, 89]
|
[5, 5, 5, 5, 5]
|
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:
[45, 9, 73, 66, 33, 53, 5] -> ?
Answer:
|
[45, 9, 73, 66, 33, 53, 5] -> [5, 33, 53, 45, 9, 73, 66]
|
[45, 9, 73, 66, 33, 53, 5]
|
[5, 33, 53, 45, 9, 73, 66]
|
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:
[2, 0, 7, 86, 39, 87, 82, 6] -> ?
Answer:
|
[2, 0, 7, 86, 39, 87, 82, 6] -> [0, 39, 87, 6]
|
[2, 0, 7, 86, 39, 87, 82, 6]
|
[0, 39, 87, 6]
|
c087
|
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:
[91, 1, 34, 73, 90, 4, 7] -> [91, 34, 1, 73, 90, 4, 7]
[68, 2, 30] -> [68, 30, 2]
[72, 48, 82, 86, 4, 7, 88] -> [72, 82, 48, 86, 4, 7, 88]
[1, 47, 17, 26, 9, 65, 21, 50, 5, 59] -> [1, 17, 47, 26, 9, 65, 21, 50, 5, 59]
[21, 47, 13, 70, 58, 26, 42] -> [21, 13, 47, 70, 58, 26, 42]
[65, 80, 6, 22, 50] -> [65, 6, 80, 22, 50]
[3, 60, 9, 47, 18, 16] -> [3, 9, 60, 47, 18, 16]
[65, 12, 5, 43, 9, 6, 31, 69, 92] -> [65, 5, 12, 43, 9, 6, 31, 69, 92]
Questions:
[2, 6, 19, 55, 33, 7, 45, 0] -> ?
Answer:
|
[2, 6, 19, 55, 33, 7, 45, 0] -> [2, 19, 6, 55, 33, 7, 45, 0]
|
[2, 6, 19, 55, 33, 7, 45, 0]
|
[2, 19, 6, 55, 33, 7, 45, 0]
|
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:
[35, 3, 8, 0, 12, 3, 50, 74] -> ?
Answer:
|
[35, 3, 8, 0, 12, 3, 50, 74] -> [2]
|
[35, 3, 8, 0, 12, 3, 50, 74]
|
[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:
[38, 62, 2, 0, 7] -> ?
Answer:
|
[38, 62, 2, 0, 7] -> [5, 5, 5, 5, 5]
|
[38, 62, 2, 0, 7]
|
[5, 5, 5, 5, 5]
|
c114
|
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 the last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[64, 81] -> [81, 64, 81]
[36, 46, 9, 37] -> [37, 36, 46, 9, 37]
[8, 50, 31] -> [31, 8, 50, 31]
[78, 11, 6, 27, 30] -> [30, 78, 11, 6, 27, 30]
[24, 56, 39, 44] -> [44, 24, 56, 39, 44]
[47, 25, 92, 3, 43] -> [43, 47, 25, 92, 3, 43]
[0, 67, 85] -> [85, 0, 67, 85]
[18, 36, 0, 38, 11] -> [11, 18, 36, 0, 38, 11]
Questions:
[13, 56] -> ?
Answer:
|
[13, 56] -> [56, 13, 56]
|
[13, 56]
|
[56, 13, 56]
|
c087
|
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:
[91, 1, 34, 73, 90, 4, 7] -> [91, 34, 1, 73, 90, 4, 7]
[68, 2, 30] -> [68, 30, 2]
[72, 48, 82, 86, 4, 7, 88] -> [72, 82, 48, 86, 4, 7, 88]
[1, 47, 17, 26, 9, 65, 21, 50, 5, 59] -> [1, 17, 47, 26, 9, 65, 21, 50, 5, 59]
[21, 47, 13, 70, 58, 26, 42] -> [21, 13, 47, 70, 58, 26, 42]
[65, 80, 6, 22, 50] -> [65, 6, 80, 22, 50]
[3, 60, 9, 47, 18, 16] -> [3, 9, 60, 47, 18, 16]
[65, 12, 5, 43, 9, 6, 31, 69, 92] -> [65, 5, 12, 43, 9, 6, 31, 69, 92]
Questions:
[59, 3, 61, 63, 6, 4, 2, 23, 67] -> ?
Answer:
|
[59, 3, 61, 63, 6, 4, 2, 23, 67] -> [59, 61, 3, 63, 6, 4, 2, 23, 67]
|
[59, 3, 61, 63, 6, 4, 2, 23, 67]
|
[59, 61, 3, 63, 6, 4, 2, 23, 67]
|
c054
|
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 elements 1 and 2 with element 3".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 8, 4, 3, 7, 6, 2, 0] -> [4, 4, 4, 3, 7, 6, 2, 0]
[4, 8, 3, 6, 5, 1, 0] -> [3, 3, 3, 6, 5, 1, 0]
[3, 1, 2, 8, 7, 9, 5] -> [2, 2, 2, 8, 7, 9, 5]
[9, 0, 5, 7, 3] -> [5, 5, 5, 7, 3]
[2, 1, 3, 8] -> [3, 3, 3, 8]
[3, 4, 5] -> [5, 5, 5]
[8, 2, 3, 9, 6, 7, 5] -> [3, 3, 3, 9, 6, 7, 5]
[6, 3, 4] -> [4, 4, 4]
Questions:
[3, 1, 2, 0, 4, 8, 9, 5, 6] -> ?
Answer:
|
[3, 1, 2, 0, 4, 8, 9, 5, 6] -> [2, 2, 2, 0, 4, 8, 9, 5, 6]
|
[3, 1, 2, 0, 4, 8, 9, 5, 6]
|
[2, 2, 2, 0, 4, 8, 9, 5, 6]
|
c186
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements greater than element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 62, 97, 4, 42, 27, 43, 1, 5] -> [62, 97, 42, 27, 43]
[9, 0, 16, 94, 4, 2, 6, 27, 9, 88] -> [16, 94, 27, 88]
[6, 4, 0, 87, 9, 86, 89, 1, 23] -> [87, 9, 86, 89, 23]
[5, 60, 5, 60] -> [60, 60]
[9, 6, 5, 8, 1, 34, 91, 36, 0] -> [34, 91, 36]
[15, 7, 31, 9, 4, 22, 82, 1, 38, 80] -> [31, 22, 82, 38, 80]
[39, 0, 22, 3, 8, 6, 9, 4, 51, 57] -> [51, 57]
[5, 46, 6, 49, 3, 9, 1, 4, 7] -> [46, 6, 49, 9, 7]
Questions:
[14, 9, 44, 2, 66, 19, 51, 2, 9] -> ?
Answer:
|
[14, 9, 44, 2, 66, 19, 51, 2, 9] -> [44, 66, 19, 51]
|
[14, 9, 44, 2, 66, 19, 51, 2, 9]
|
[44, 66, 19, 51]
|
c014
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but elements 3 through 7".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 6, 1, 9] -> [1, 9]
[3, 0] -> []
[8, 1, 6, 9, 7, 2, 3] -> [6, 9, 7, 2, 3]
[1, 9, 7, 3, 0, 5, 8, 6] -> [7, 3, 0, 5, 8]
[3, 0, 9, 2] -> [9, 2]
[3, 9, 7, 4, 6] -> [7, 4, 6]
[2, 5, 1, 8] -> [1, 8]
[8, 1, 5, 2] -> [5, 2]
Questions:
[7] -> ?
Answer:
|
[7] -> []
|
[7]
|
[]
|
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:
[6, 81, 54, 1, 84, 77] -> ?
Answer:
|
[6, 81, 54, 1, 84, 77] -> [77, 1, 81, 6, 54, 84]
|
[6, 81, 54, 1, 84, 77]
|
[77, 1, 81, 6, 54, 84]
|
c197
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with the number of occurrences of that element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 8, 7, 20, 61, 45, 0] -> [2, 1, 1, 1, 1, 1, 2]
[11, 11, 11] -> [3, 3, 3]
[94, 53, 35, 60, 1, 38] -> [1, 1, 1, 1, 1, 1]
[] -> []
[75, 75, 75, 75, 75, 75, 75, 75, 75, 75] -> [10, 10, 10, 10, 10, 10, 10, 10, 10, 10]
[26, 63, 63, 63, 26, 26, 63, 63, 26] -> [4, 5, 5, 5, 4, 4, 5, 5, 4]
[58, 71, 11, 11, 58] -> [2, 1, 2, 2, 2]
[25, 25, 25, 25, 25, 25, 25] -> [7, 7, 7, 7, 7, 7, 7]
Questions:
[69, 69] -> ?
Answer:
|
[69, 69] -> [2, 2]
|
[69, 69]
|
[2, 2]
|
c227
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "interleave input and reversed input; keep only unique elements in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[84, 32, 76, 4, 13, 0] -> [84, 0, 32, 13, 76, 4]
[] -> []
[17, 59, 69, 46, 28, 3, 67, 54] -> [17, 54, 59, 67, 69, 3, 46, 28]
[50, 72, 32, 3, 1, 3, 2, 32, 1] -> [50, 1, 72, 32, 2, 3]
[63, 94, 68, 92, 61, 96, 1] -> [63, 1, 94, 96, 68, 61, 92]
[83, 92, 6, 1, 72, 7, 66, 64, 40] -> [83, 40, 92, 64, 6, 66, 1, 7, 72]
[7, 27, 24, 51, 80, 3, 34, 47, 68] -> [7, 68, 27, 47, 24, 34, 51, 3, 80]
[93, 93, 29, 93, 29, 29, 93, 93, 29] -> [93, 29]
Questions:
[6, 7, 55, 49, 3, 4, 8, 37, 53, 9] -> ?
Answer:
|
[6, 7, 55, 49, 3, 4, 8, 37, 53, 9] -> [6, 9, 7, 53, 55, 37, 49, 8, 3, 4]
|
[6, 7, 55, 49, 3, 4, 8, 37, 53, 9]
|
[6, 9, 7, 53, 55, 37, 49, 8, 3, 4]
|
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:
[6] -> ?
Answer:
|
[6] -> [1, 2, 3, 4, 5, 6]
|
[6]
|
[1, 2, 3, 4, 5, 6]
|
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:
[57, 93, 3, 72, 75, 68, 10, 87] -> ?
Answer:
|
[57, 93, 3, 72, 75, 68, 10, 87] -> [10]
|
[57, 93, 3, 72, 75, 68, 10, 87]
|
[10]
|
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, 9, 72, 22, 86, 73, 8] -> ?
Answer:
|
[36, 9, 72, 22, 86, 73, 8] -> [86, 86, 86, 86, 86, 86, 86, 86]
|
[36, 9, 72, 22, 86, 73, 8]
|
[86, 86, 86, 86, 86, 86, 86, 86]
|
c021
|
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 an 8 as element 2".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 2, 6, 5] -> [9, 8, 2, 6, 5]
[4, 1] -> [4, 8, 1]
[2, 3] -> [2, 8, 3]
[5, 0, 1, 3, 8, 2, 4, 9, 6, 7] -> [5, 8, 0, 1, 3, 8, 2, 4, 9, 6, 7]
[6, 0, 8, 4, 9, 1, 3] -> [6, 8, 0, 8, 4, 9, 1, 3]
[3, 7, 1] -> [3, 8, 7, 1]
[2, 3, 1] -> [2, 8, 3, 1]
[3, 9, 8, 2, 5, 4] -> [3, 8, 9, 8, 2, 5, 4]
Questions:
[6, 4, 5, 9, 1] -> ?
Answer:
|
[6, 4, 5, 9, 1] -> [6, 8, 4, 5, 9, 1]
|
[6, 4, 5, 9, 1]
|
[6, 8, 4, 5, 9, 1]
|
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:
[16, 7, 84, 73] -> ?
Answer:
|
[16, 7, 84, 73] -> [73, 84, 7, 16, 7, 84, 73]
|
[16, 7, 84, 73]
|
[73, 84, 7, 16, 7, 84, 73]
|
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:
[2, 42, 37, 1, 59, 51, 35, 6, 89] -> ?
Answer:
|
[2, 42, 37, 1, 59, 51, 35, 6, 89] -> [37, 1, 2, 42, 59, 51, 35, 6, 89]
|
[2, 42, 37, 1, 59, 51, 35, 6, 89]
|
[37, 1, 2, 42, 59, 51, 35, 6, 89]
|
c186
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements greater than element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 62, 97, 4, 42, 27, 43, 1, 5] -> [62, 97, 42, 27, 43]
[9, 0, 16, 94, 4, 2, 6, 27, 9, 88] -> [16, 94, 27, 88]
[6, 4, 0, 87, 9, 86, 89, 1, 23] -> [87, 9, 86, 89, 23]
[5, 60, 5, 60] -> [60, 60]
[9, 6, 5, 8, 1, 34, 91, 36, 0] -> [34, 91, 36]
[15, 7, 31, 9, 4, 22, 82, 1, 38, 80] -> [31, 22, 82, 38, 80]
[39, 0, 22, 3, 8, 6, 9, 4, 51, 57] -> [51, 57]
[5, 46, 6, 49, 3, 9, 1, 4, 7] -> [46, 6, 49, 9, 7]
Questions:
[14, 63, 7, 43, 51, 66, 6, 5, 77, 2] -> ?
Answer:
|
[14, 63, 7, 43, 51, 66, 6, 5, 77, 2] -> [63, 43, 51, 66, 77]
|
[14, 63, 7, 43, 51, 66, 6, 5, 77, 2]
|
[63, 43, 51, 66, 77]
|
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:
[3, 5, 1, 55, 89, 6, 74, 88, 26, 65] -> ?
Answer:
|
[3, 5, 1, 55, 89, 6, 74, 88, 26, 65] -> [74, 88, 89]
|
[3, 5, 1, 55, 89, 6, 74, 88, 26, 65]
|
[74, 88, 89]
|
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:
[1, 7, 5, 1, 5, 7, 7, 7, 7, 5] -> ?
Answer:
|
[1, 7, 5, 1, 5, 7, 7, 7, 7, 5] -> [1, 0, 0, 0, 1, 0, 1, 0, 0, 0]
|
[1, 7, 5, 1, 5, 7, 7, 7, 7, 5]
|
[1, 0, 0, 0, 1, 0, 1, 0, 0, 0]
|
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:
[8, 7, 5, 5, 8, 2, 7] -> ?
Answer:
|
[8, 7, 5, 5, 8, 2, 7] -> [8, 14, 15, 20, 40, 12, 49]
|
[8, 7, 5, 5, 8, 2, 7]
|
[8, 14, 15, 20, 40, 12, 49]
|
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:
[6, 56, 43, 35, 1, 42, 5, 2, 77, 9] -> ?
Answer:
|
[6, 56, 43, 35, 1, 42, 5, 2, 77, 9] -> [2, 6, 35, 43, 77, 56, 42, 9, 5, 1]
|
[6, 56, 43, 35, 1, 42, 5, 2, 77, 9]
|
[2, 6, 35, 43, 77, 56, 42, 9, 5, 1]
|
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:
[1, 55, 94, 58, 3, 35] -> ?
Answer:
|
[1, 55, 94, 58, 3, 35] -> [94, 58, 1, 55, 3, 35]
|
[1, 55, 94, 58, 3, 35]
|
[94, 58, 1, 55, 3, 35]
|
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:
[6, 94, 0, 52, 3, 9, 36, 40] -> ?
Answer:
|
[6, 94, 0, 52, 3, 9, 36, 40] -> [40, 36, 52, 0, 94, 6]
|
[6, 94, 0, 52, 3, 9, 36, 40]
|
[40, 36, 52, 0, 94, 6]
|
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:
[9, 82, 64, 40] -> ?
Answer:
|
[9, 82, 64, 40] -> [64]
|
[9, 82, 64, 40]
|
[64]
|
c113
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements whose ones digit is greater than element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 2] -> []
[9, 7, 26, 0, 48, 10, 53] -> [7, 26, 0, 48, 10, 53]
[6, 0, 42, 1] -> [0, 42, 1]
[6, 75, 1, 3, 5, 2, 44] -> [75, 1, 3, 5, 2, 44]
[13, 78, 6, 8, 9] -> [13, 78, 6, 8, 9]
[54, 6, 23, 15] -> [54, 6, 23, 15]
[8, 31, 72, 13, 79, 81] -> [31, 72, 13, 81]
[2, 1, 0, 31, 9, 74, 25, 46, 26, 29] -> [1, 0, 31]
Questions:
[5, 2, 14, 46, 1, 9, 3, 6, 7, 70] -> ?
Answer:
|
[5, 2, 14, 46, 1, 9, 3, 6, 7, 70] -> [2, 14, 1, 3, 70]
|
[5, 2, 14, 46, 1, 9, 3, 6, 7, 70]
|
[2, 14, 1, 3, 70]
|
c151
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repeat each element, M, M times, in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 6, 2] -> [2, 2, 6, 6, 6, 6, 6, 6, 2, 2]
[4, 4, 4] -> [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4]
[2, 2, 2, 2, 2] -> [2, 2, 2, 2, 2, 2, 2, 2, 2, 2]
[4, 0, 4, 4, 0] -> [4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4, 4]
[3, 3, 3, 3, 3] -> [3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3]
[1, 1, 1, 1, 1] -> [1, 1, 1, 1, 1]
[2, 5, 3, 5] -> [2, 2, 5, 5, 5, 5, 5, 3, 3, 3, 5, 5, 5, 5, 5]
[0, 0, 0, 0, 0] -> []
Questions:
[2, 5, 6, 2] -> ?
Answer:
|
[2, 5, 6, 2] -> [2, 2, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 2, 2]
|
[2, 5, 6, 2]
|
[2, 2, 5, 5, 5, 5, 5, 6, 6, 6, 6, 6, 6, 2, 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:
[19, 1] -> ?
Answer:
|
[19, 1] -> [19]
|
[19, 1]
|
[19]
|
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:
[9, 90, 71, 2, 1, 68, 18, 7, 59] -> ?
Answer:
|
[9, 90, 71, 2, 1, 68, 18, 7, 59] -> [60, 9, 21, 72, 6, 8, 78, 98, 18]
|
[9, 90, 71, 2, 1, 68, 18, 7, 59]
|
[60, 9, 21, 72, 6, 8, 78, 98, 18]
|
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:
[7, 82, 87, 53, 60, 48, 6, 4] -> ?
Answer:
|
[7, 82, 87, 53, 60, 48, 6, 4] -> [87, 87, 87, 87]
|
[7, 82, 87, 53, 60, 48, 6, 4]
|
[87, 87, 87, 87]
|
c227
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "interleave input and reversed input; keep only unique elements in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[84, 32, 76, 4, 13, 0] -> [84, 0, 32, 13, 76, 4]
[] -> []
[17, 59, 69, 46, 28, 3, 67, 54] -> [17, 54, 59, 67, 69, 3, 46, 28]
[50, 72, 32, 3, 1, 3, 2, 32, 1] -> [50, 1, 72, 32, 2, 3]
[63, 94, 68, 92, 61, 96, 1] -> [63, 1, 94, 96, 68, 61, 92]
[83, 92, 6, 1, 72, 7, 66, 64, 40] -> [83, 40, 92, 64, 6, 66, 1, 7, 72]
[7, 27, 24, 51, 80, 3, 34, 47, 68] -> [7, 68, 27, 47, 24, 34, 51, 3, 80]
[93, 93, 29, 93, 29, 29, 93, 93, 29] -> [93, 29]
Questions:
[35, 6, 35, 6, 83, 35, 4, 83] -> ?
Answer:
|
[35, 6, 35, 6, 83, 35, 4, 83] -> [35, 83, 6, 4]
|
[35, 6, 35, 6, 83, 35, 4, 83]
|
[35, 83, 6, 4]
|
c092
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate [92, 63, 34, 18, 55] with input".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[21, 40, 9, 52, 7, 80] -> [92, 63, 34, 18, 55, 21, 40, 9, 52, 7, 80]
[12, 27, 65, 4, 31, 8] -> [92, 63, 34, 18, 55, 12, 27, 65, 4, 31, 8]
[23, 33, 76, 58, 90, 8] -> [92, 63, 34, 18, 55, 23, 33, 76, 58, 90, 8]
[7, 16, 60, 34, 58, 73, 0, 79, 86] -> [92, 63, 34, 18, 55, 7, 16, 60, 34, 58, 73, 0, 79, 86]
[57, 9, 33, 52, 4, 3, 0, 39] -> [92, 63, 34, 18, 55, 57, 9, 33, 52, 4, 3, 0, 39]
[87, 12, 50, 66, 64] -> [92, 63, 34, 18, 55, 87, 12, 50, 66, 64]
[41, 35, 4, 3, 25, 47, 88, 98, 0] -> [92, 63, 34, 18, 55, 41, 35, 4, 3, 25, 47, 88, 98, 0]
[47, 5, 57] -> [92, 63, 34, 18, 55, 47, 5, 57]
Questions:
[31, 35, 13, 56, 5, 94, 2, 0] -> ?
Answer:
|
[31, 35, 13, 56, 5, 94, 2, 0] -> [92, 63, 34, 18, 55, 31, 35, 13, 56, 5, 94, 2, 0]
|
[31, 35, 13, 56, 5, 94, 2, 0]
|
[92, 63, 34, 18, 55, 31, 35, 13, 56, 5, 94, 2, 0]
|
c172
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "cumulative product of elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6] -> [6]
[0, 13, 6, 70, 7, 12, 13, 7] -> [0, 0, 0, 0, 0, 0, 0, 0]
[1, 1, 82] -> [1, 1, 82]
[3, 4, 8] -> [3, 12, 96]
[3, 3, 1, 1] -> [3, 9, 9, 9]
[3, 0, 42, 33, 5, 98, 62, 2, 41, 77] -> [3, 0, 0, 0, 0, 0, 0, 0, 0, 0]
[1, 1, 1, 1, 1, 1] -> [1, 1, 1, 1, 1, 1]
[0, 9, 5, 3, 8, 8] -> [0, 0, 0, 0, 0, 0]
Questions:
[1, 3, 1, 3, 3, 3, 1] -> ?
Answer:
|
[1, 3, 1, 3, 3, 3, 1] -> [1, 3, 3, 9, 27, 81, 81]
|
[1, 3, 1, 3, 3, 3, 1]
|
[1, 3, 3, 9, 27, 81, 81]
|
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, 8, 4, 5, 2, 3] -> ?
Answer:
|
[0, 8, 4, 5, 2, 3] -> [8, 4, 5, 2, 3]
|
[0, 8, 4, 5, 2, 3]
|
[8, 4, 5, 2, 3]
|
c067
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap the first and last elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 0, 2, 8, 6, 7, 5, 1] -> [1, 0, 2, 8, 6, 7, 5, 9]
[9, 8] -> [8, 9]
[8, 0] -> [0, 8]
[4, 0, 8, 5, 3, 7, 1, 9, 6] -> [6, 0, 8, 5, 3, 7, 1, 9, 4]
[3, 4, 6, 2, 8, 1] -> [1, 4, 6, 2, 8, 3]
[3, 7, 4, 5, 2, 1, 0, 8] -> [8, 7, 4, 5, 2, 1, 0, 3]
[1, 7, 6, 9, 4] -> [4, 7, 6, 9, 1]
[4, 2, 1, 9, 7, 8, 0, 3, 6, 5] -> [5, 2, 1, 9, 7, 8, 0, 3, 6, 4]
Questions:
[6, 2, 3, 4, 9, 5, 8] -> ?
Answer:
|
[6, 2, 3, 4, 9, 5, 8] -> [8, 2, 3, 4, 9, 5, 6]
|
[6, 2, 3, 4, 9, 5, 8]
|
[8, 2, 3, 4, 9, 5, 6]
|
c241
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of even elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[28, 4, 78, 6, 6, 28, 1, 78, 4, 70] -> [9]
[84, 83, 51, 5, 85, 77, 59] -> [1]
[28, 5, 4, 6, 57, 12, 90, 61, 50] -> [6]
[2, 6, 78, 87, 97, 93, 11, 0, 34] -> [5]
[5, 3, 1, 4, 25, 32, 8] -> [3]
[80, 9, 38, 1, 4, 5, 6, 72, 98] -> [6]
[18, 7, 53, 11, 6, 64, 8, 2, 68, 4] -> [7]
[3, 6, 4, 63, 89, 41, 9] -> [2]
Questions:
[38, 5, 41, 51, 9, 6, 7] -> ?
Answer:
|
[38, 5, 41, 51, 9, 6, 7] -> [2]
|
[38, 5, 41, 51, 9, 6, 7]
|
[2]
|
c240
|
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 elements equal to the input length".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 61, 9, 55, 87, 10, 90, 1, 39] -> [2]
[24, 7, 85, 79, 7, 79, 9] -> [2]
[93, 93, 93, 9, 93, 93, 9, 9, 33] -> [3]
[2, 2] -> [2]
[72, 8, 72, 6, 6, 70, 28, 8] -> [2]
[52, 2, 14, 37, 92, 1, 96, 29] -> [0]
[2, 9, 4, 9, 9, 9, 9, 4, 4] -> [5]
[2, 1, 9, 2, 9, 13, 93, 93, 45] -> [2]
Questions:
[89, 9, 58, 3, 9, 3, 24, 3, 58] -> ?
Answer:
|
[89, 9, 58, 3, 9, 3, 24, 3, 58] -> [2]
|
[89, 9, 58, 3, 9, 3, 24, 3, 58]
|
[2]
|
c015
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements M + 2 through N + 2, M = element 1, N = element 2".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 5, 1, 6, 3, 1, 6, 0] -> [1, 6, 3, 1, 6]
[3, 4, 5, 7, 6, 0, 8, 9, 2, 1] -> [6, 0]
[2, 4, 0, 3, 7, 9, 6, 1] -> [3, 7, 9]
[2, 7, 9, 1, 0, 8, 3, 4, 5, 6] -> [1, 0, 8, 3, 4, 5]
[1, 4, 9, 3, 7, 8, 6] -> [9, 3, 7, 8]
[2, 3, 5, 4, 7, 1] -> [4, 7]
[5, 9, 9, 3, 3, 9] -> []
[1, 2, 1, 4, 5, 5] -> [1, 4]
Questions:
[2, 3, 4, 2, 7, 9, 7, 8, 9] -> ?
Answer:
|
[2, 3, 4, 2, 7, 9, 7, 8, 9] -> [2, 7]
|
[2, 3, 4, 2, 7, 9, 7, 8, 9]
|
[2, 7]
|
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:
[18, 4, 22, 0] -> ?
Answer:
|
[18, 4, 22, 0] -> [44]
|
[18, 4, 22, 0]
|
[44]
|
c207
|
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-wise sum of the input and the reversed input".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[56, 9, 72, 7] -> [63, 81, 81, 63]
[2, 5, 6, 59, 93, 1] -> [3, 98, 65, 65, 98, 3]
[21, 39, 5, 9, 40, 4] -> [25, 79, 14, 14, 79, 25]
[7, 37, 64] -> [71, 74, 71]
[8, 4, 45] -> [53, 8, 53]
[60, 4, 2] -> [62, 8, 62]
[0, 61, 89, 3, 6, 65] -> [65, 67, 92, 92, 67, 65]
[0, 42, 8, 27, 86] -> [86, 69, 16, 69, 86]
Questions:
[42, 1, 2, 54, 5] -> ?
Answer:
|
[42, 1, 2, 54, 5] -> [47, 55, 4, 55, 47]
|
[42, 1, 2, 54, 5]
|
[47, 55, 4, 55, 47]
|
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:
[4, 1, 36, 4, 8, 6, 16, 70, 52, 0] -> ?
Answer:
|
[4, 1, 36, 4, 8, 6, 16, 70, 52, 0] -> [4, 36, 1, 4, 8, 6, 16, 70, 52, 0]
|
[4, 1, 36, 4, 8, 6, 16, 70, 52, 0]
|
[4, 36, 1, 4, 8, 6, 16, 70, 52, 0]
|
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:
[55, 2, 4, 91, 90, 50, 5, 9, 0] -> ?
Answer:
|
[55, 2, 4, 91, 90, 50, 5, 9, 0] -> [91]
|
[55, 2, 4, 91, 90, 50, 5, 9, 0]
|
[91]
|
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:
[45, 18, 8, 14, 19, 14, 81, 5] -> ?
Answer:
|
[45, 18, 8, 14, 19, 14, 81, 5] -> [63, 26, 22, 33, 33, 95, 86]
|
[45, 18, 8, 14, 19, 14, 81, 5]
|
[63, 26, 22, 33, 33, 95, 86]
|
c081
|
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:
[23, 9, 13, 67, 24, 20, 71, 77] -> [13]
[84, 51, 3, 47, 4, 67, 43, 88, 13] -> [3]
[7, 55, 4] -> [4]
[2, 0, 70, 3, 5, 8, 9, 7, 1, 33] -> [70]
[41, 2, 48] -> [48]
[6, 50, 65] -> [65]
[2, 30, 7, 6, 89, 8, 45, 88] -> [7]
[60, 19, 68, 0, 4, 9, 95, 82] -> [68]
Questions:
[83, 9, 85, 12, 3] -> ?
Answer:
|
[83, 9, 85, 12, 3] -> [85]
|
[83, 9, 85, 12, 3]
|
[85]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.