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
|
|---|---|---|---|---|---|
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:
[1, 30, 7, 72] -> ?
Answer:
|
[1, 30, 7, 72] -> [1, 30, 7, 30, 7, 72]
|
[1, 30, 7, 72]
|
[1, 30, 7, 30, 7, 72]
|
c248
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements after the last 0".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 54, 7, 0, 9, 0, 97, 1] -> [97, 1]
[61, 0, 2, 61, 2, 0, 2, 2] -> [2, 2]
[2, 26, 44, 11, 0, 5, 9, 32, 6] -> [5, 9, 32, 6]
[37, 37, 37, 37] -> [37, 37, 37, 37]
[3, 92, 6, 1, 93, 26, 4, 0, 9, 34] -> [9, 34]
[94, 9, 0, 30, 52, 30, 2, 0, 30, 9] -> [30, 9]
[7, 0, 6, 57, 0, 57] -> [57]
[81, 0, 81, 81, 0, 81] -> [81]
Questions:
[71, 8, 5] -> ?
Answer:
|
[71, 8, 5] -> [71, 8, 5]
|
[71, 8, 5]
|
[71, 8, 5]
|
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:
[3, 4, 33, 44, 8, 70, 79, 35, 2, 80] -> ?
Answer:
|
[3, 4, 33, 44, 8, 70, 79, 35, 2, 80] -> [2, 22, 4, 35, 1, 40]
|
[3, 4, 33, 44, 8, 70, 79, 35, 2, 80]
|
[2, 22, 4, 35, 1, 40]
|
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:
[3, 8, 71, 60, 79, 2, 73, 36] -> ?
Answer:
|
[3, 8, 71, 60, 79, 2, 73, 36] -> [71, 60, 79, 2]
|
[3, 8, 71, 60, 79, 2, 73, 36]
|
[71, 60, 79, 2]
|
c039
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "append 3 if the list length is 3, else append 9 if the list length is 9".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 2, 7, 0, 5, 1, 6, 4, 8] -> [9, 2, 7, 0, 5, 1, 6, 4, 8, 9]
[2, 0, 5, 3, 7, 6, 1, 9, 8] -> [2, 0, 5, 3, 7, 6, 1, 9, 8, 9]
[6, 2, 0] -> [6, 2, 0, 3]
[0, 9, 8, 2, 7, 5, 4, 1, 6] -> [0, 9, 8, 2, 7, 5, 4, 1, 6, 9]
[] -> []
[8, 4, 3] -> [8, 4, 3, 3]
[2, 4, 5, 3, 1, 7, 0, 8, 6] -> [2, 4, 5, 3, 1, 7, 0, 8, 6, 9]
[6, 1, 2, 0, 4, 3, 5, 7, 8] -> [6, 1, 2, 0, 4, 3, 5, 7, 8, 9]
Questions:
[4, 0, 7, 1, 5, 6, 8, 3, 2] -> ?
Answer:
|
[4, 0, 7, 1, 5, 6, 8, 3, 2] -> [4, 0, 7, 1, 5, 6, 8, 3, 2, 9]
|
[4, 0, 7, 1, 5, 6, 8, 3, 2]
|
[4, 0, 7, 1, 5, 6, 8, 3, 2, 9]
|
c232
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "mean value of the input".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[60, 45, 24] -> [43]
[72, 98, 43] -> [71]
[32, 76, 3] -> [37]
[13, 3, 6, 4] -> [6]
[8, 37, 46, 7] -> [24]
[3, 48, 8] -> [19]
[90, 4, 1, 13, 2] -> [22]
[4, 22, 93, 81, 8] -> [41]
Questions:
[10, 99, 8] -> ?
Answer:
|
[10, 99, 8] -> [39]
|
[10, 99, 8]
|
[39]
|
c133
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove elements 2 through 5".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[28, 95, 72, 3, 1, 42, 4] -> [28, 42, 4]
[8, 38, 4, 57, 88, 20, 36, 68] -> [8, 20, 36, 68]
[89, 6, 16, 88, 4, 47] -> [89, 47]
[9, 94, 8, 44, 24, 7, 87, 0, 89] -> [9, 7, 87, 0, 89]
[65, 0, 82, 93, 42, 38, 7, 5] -> [65, 38, 7, 5]
[59, 8, 86, 6, 96, 16, 4] -> [59, 16, 4]
[96, 2, 44, 1, 35, 4] -> [96, 4]
[87, 83, 3, 0, 19, 14, 9, 99, 61, 5] -> [87, 14, 9, 99, 61, 5]
Questions:
[15, 6, 97, 0, 2, 49, 8, 65, 26, 50] -> ?
Answer:
|
[15, 6, 97, 0, 2, 49, 8, 65, 26, 50] -> [15, 49, 8, 65, 26, 50]
|
[15, 6, 97, 0, 2, 49, 8, 65, 26, 50]
|
[15, 49, 8, 65, 26, 50]
|
c038
|
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 9".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 1, 5] -> [4, 1, 5, 9]
[1, 4, 8, 2, 3, 5, 9, 0, 7, 6] -> [1, 4, 8, 2, 3, 5, 9, 0, 7, 6, 9]
[2, 6] -> [2, 6, 9]
[4, 6, 1, 0, 5, 8] -> [4, 6, 1, 0, 5, 8, 9]
[2, 5, 3, 0, 6, 8, 1, 9] -> [2, 5, 3, 0, 6, 8, 1, 9, 9]
[6, 1, 4, 5, 8] -> [6, 1, 4, 5, 8, 9]
[3, 8, 9, 7, 5, 6, 1, 4] -> [3, 8, 9, 7, 5, 6, 1, 4, 9]
[6, 3, 2, 0] -> [6, 3, 2, 0, 9]
Questions:
[3] -> ?
Answer:
|
[3] -> [3, 9]
|
[3]
|
[3, 9]
|
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:
[5, 50, 92, 42, 58, 6] -> ?
Answer:
|
[5, 50, 92, 42, 58, 6] -> [5, 1, 50, 2, 92, 3, 42, 4, 58, 5, 6, 6]
|
[5, 50, 92, 42, 58, 6]
|
[5, 1, 50, 2, 92, 3, 42, 4, 58, 5, 6, 6]
|
c085
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element N + 1, N = element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 62, 4] -> [62]
[5, 17, 1, 4, 3, 88, 68] -> [88]
[1, 56, 7, 30] -> [56]
[2, 1, 40, 92, 26, 95, 45] -> [40]
[3, 79, 55, 55, 1, 74] -> [55]
[1, 14, 3, 2, 78, 9] -> [14]
[3, 23, 72, 23] -> [23]
[3, 7, 55, 75, 5, 24, 14, 1] -> [75]
Questions:
[3, 2, 5, 35, 63, 62, 7, 1, 20, 22] -> ?
Answer:
|
[3, 2, 5, 35, 63, 62, 7, 1, 20, 22] -> [35]
|
[3, 2, 5, 35, 63, 62, 7, 1, 20, 22]
|
[35]
|
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:
[8, 9, 3, 6, 5, 0, 2, 7, 1, 4] -> ?
Answer:
|
[8, 9, 3, 6, 5, 0, 2, 7, 1, 4] -> [8, 9, 6, 5, 0, 2, 7, 1, 4]
|
[8, 9, 3, 6, 5, 0, 2, 7, 1, 4]
|
[8, 9, 6, 5, 0, 2, 7, 1, 4]
|
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:
[7, 8, 4, 9, 5, 3, 1, 0, 6, 2] -> ?
Answer:
|
[7, 8, 4, 9, 5, 3, 1, 0, 6, 2] -> [7, 8, 4, 9, 3, 1, 0, 6, 2]
|
[7, 8, 4, 9, 5, 3, 1, 0, 6, 2]
|
[7, 8, 4, 9, 3, 1, 0, 6, 2]
|
c050
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "prepend element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 7, 0, 5] -> [4, 4, 7, 0, 5]
[1] -> [1, 1]
[5, 2] -> [5, 5, 2]
[1, 4, 0, 8, 6, 7, 3, 2] -> [1, 1, 4, 0, 8, 6, 7, 3, 2]
[5] -> [5, 5]
[6, 9, 2, 1, 3] -> [6, 6, 9, 2, 1, 3]
[4, 3, 6, 2, 5, 0, 7, 8, 1, 9] -> [4, 4, 3, 6, 2, 5, 0, 7, 8, 1, 9]
[2, 4, 1, 3, 8, 0, 9, 7, 5, 6] -> [2, 2, 4, 1, 3, 8, 0, 9, 7, 5, 6]
Questions:
[1, 7, 3, 4, 6, 8, 2, 9, 5] -> ?
Answer:
|
[1, 7, 3, 4, 6, 8, 2, 9, 5] -> [1, 1, 7, 3, 4, 6, 8, 2, 9, 5]
|
[1, 7, 3, 4, 6, 8, 2, 9, 5]
|
[1, 1, 7, 3, 4, 6, 8, 2, 9, 5]
|
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:
[3, 7, 9, 1, 5] -> ?
Answer:
|
[3, 7, 9, 1, 5] -> [5, 7, 9, 1, 3]
|
[3, 7, 9, 1, 5]
|
[5, 7, 9, 1, 3]
|
c011
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements 2 through 4".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 8] -> [8]
[0, 8, 7, 9] -> [8, 7, 9]
[7, 6] -> [6]
[7] -> []
[8, 9, 6, 5, 4] -> [9, 6, 5]
[7, 4] -> [4]
[8, 2, 1, 6, 7] -> [2, 1, 6]
[3, 0, 4] -> [0, 4]
Questions:
[9, 4] -> ?
Answer:
|
[9, 4] -> [4]
|
[9, 4]
|
[4]
|
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:
[] -> ?
Answer:
|
[] -> []
|
[]
|
[]
|
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:
[4, 2, 3, 0, 9, 5, 1, 8, 7, 6] -> ?
Answer:
|
[4, 2, 3, 0, 9, 5, 1, 8, 7, 6] -> [4, 3, 9, 1, 7]
|
[4, 2, 3, 0, 9, 5, 1, 8, 7, 6]
|
[4, 3, 9, 1, 7]
|
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:
[51, 77, 6, 7, 4, 0] -> ?
Answer:
|
[51, 77, 6, 7, 4, 0] -> [51, 77, 6, 7, 4, 0]
|
[51, 77, 6, 7, 4, 0]
|
[51, 77, 6, 7, 4, 0]
|
c103
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "input length".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[24, 47, 46, 40, 20] -> [5]
[5, 99, 8, 30, 42, 13, 2, 83, 58, 44] -> [10]
[40, 11] -> [2]
[44, 6, 51, 71, 81, 68, 3] -> [7]
[35, 17, 3, 6, 23, 0, 5, 90] -> [8]
[9, 97, 28, 78, 48, 6, 31] -> [7]
[71, 80] -> [2]
[86, 27, 53] -> [3]
Questions:
[4, 1, 56, 14, 88, 2, 79, 93, 17, 53] -> ?
Answer:
|
[4, 1, 56, 14, 88, 2, 79, 93, 17, 53] -> [10]
|
[4, 1, 56, 14, 88, 2, 79, 93, 17, 53]
|
[10]
|
c055
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 3 and elements 2 and 4".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 7, 9, 8, 6] -> [9, 8, 5, 7, 6]
[4, 3, 2, 8, 9, 6, 7, 1, 0] -> [2, 8, 4, 3, 9, 6, 7, 1, 0]
[3, 8, 0, 7] -> [0, 7, 3, 8]
[3, 8, 7, 0, 9, 6, 5, 2, 4] -> [7, 0, 3, 8, 9, 6, 5, 2, 4]
[0, 3, 7, 1, 5, 8, 9, 6, 4, 2] -> [7, 1, 0, 3, 5, 8, 9, 6, 4, 2]
[7, 1, 8, 0, 3, 4, 9] -> [8, 0, 7, 1, 3, 4, 9]
[9, 4] -> [9, 4]
[9, 6, 8, 7, 5, 0, 1, 4] -> [8, 7, 9, 6, 5, 0, 1, 4]
Questions:
[1, 9, 6] -> ?
Answer:
|
[1, 9, 6] -> [6, 1, 9]
|
[1, 9, 6]
|
[6, 1, 9]
|
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:
[9, 7, 8] -> ?
Answer:
|
[9, 7, 8] -> [9, 8, 7, 8]
|
[9, 7, 8]
|
[9, 8, 7, 8]
|
c049
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 8, 4, 2, 3, 0, 6, 7] -> [8, 4, 2, 3, 0, 6, 7]
[2, 9, 1, 3, 4, 6, 7, 8, 5] -> [9, 1, 3, 4, 6, 7, 8, 5]
[2, 9, 4] -> [9, 4]
[9] -> []
[1, 8, 4, 2, 6] -> [8, 4, 2, 6]
[7, 1, 8, 3, 2, 4] -> [1, 8, 3, 2, 4]
[1, 9] -> [9]
[6, 0, 5] -> [0, 5]
Questions:
[4, 9, 6, 7, 2, 1, 5] -> ?
Answer:
|
[4, 9, 6, 7, 2, 1, 5] -> [9, 6, 7, 2, 1, 5]
|
[4, 9, 6, 7, 2, 1, 5]
|
[9, 6, 7, 2, 1, 5]
|
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:
[3, 6, 5, 2, 7, 5, 1, 8, 9, 4] -> ?
Answer:
|
[3, 6, 5, 2, 7, 5, 1, 8, 9, 4] -> [7, 5, 1, 8]
|
[3, 6, 5, 2, 7, 5, 1, 8, 9, 4]
|
[7, 5, 1, 8]
|
c042
|
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 [5, 2]".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 7, 8] -> [5, 2]
[1, 8, 7, 7, 8] -> [5, 2]
[4, 0, 1, 4, 0, 6, 0, 9, 6, 6] -> [5, 2]
[3, 7, 0, 7, 7, 0] -> [5, 2]
[0, 8, 4, 8] -> [5, 2]
[6, 3, 7, 7, 4, 6] -> [5, 2]
[3, 4, 4, 1, 1, 3, 3, 4, 1, 3] -> [5, 2]
[3, 8] -> [5, 2]
Questions:
[0, 9, 0, 7, 7] -> ?
Answer:
|
[0, 9, 0, 7, 7] -> [5, 2]
|
[0, 9, 0, 7, 7]
|
[5, 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:
[0, 38, 80, 33, 6, 9, 2] -> ?
Answer:
|
[0, 38, 80, 33, 6, 9, 2] -> [0, 38, 33, 6, 9, 2]
|
[0, 38, 80, 33, 6, 9, 2]
|
[0, 38, 33, 6, 9, 2]
|
c154
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "triple each even element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 1, 1, 20, 37, 3] -> [7, 1, 1, 60, 37, 3]
[3, 5, 0, 8, 6, 7, 27, 4, 2, 9] -> [3, 5, 0, 24, 18, 7, 27, 12, 6, 9]
[91, 6, 1, 55, 28, 91] -> [91, 18, 1, 55, 84, 91]
[63, 7, 1, 2, 77, 57, 0, 5] -> [63, 7, 1, 6, 77, 57, 0, 5]
[10, 93, 22, 10, 5, 10] -> [30, 93, 66, 30, 5, 30]
[33, 2, 0, 21, 6, 28, 3, 8, 4] -> [33, 6, 0, 21, 18, 84, 3, 24, 12]
[77, 8, 1, 77, 3, 9, 7, 4] -> [77, 24, 1, 77, 3, 9, 7, 12]
[6, 9, 43, 7, 65, 7] -> [18, 9, 43, 7, 65, 7]
Questions:
[26, 1, 37, 8, 7, 6, 3] -> ?
Answer:
|
[26, 1, 37, 8, 7, 6, 3] -> [78, 1, 37, 24, 7, 18, 3]
|
[26, 1, 37, 8, 7, 6, 3]
|
[78, 1, 37, 24, 7, 18, 3]
|
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:
[8] -> ?
Answer:
|
[8] -> [1, 2, 3, 4, 5, 6, 7, 8]
|
[8]
|
[1, 2, 3, 4, 5, 6, 7, 8]
|
c072
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repeat every element 2 times in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 6, 0, 2, 7] -> [1, 1, 6, 6, 0, 0, 2, 2, 7, 7]
[8, 1, 7, 4, 2] -> [8, 8, 1, 1, 7, 7, 4, 4, 2, 2]
[9, 4, 0, 1, 2, 6] -> [9, 9, 4, 4, 0, 0, 1, 1, 2, 2, 6, 6]
[3, 8, 9, 5, 1, 6, 0] -> [3, 3, 8, 8, 9, 9, 5, 5, 1, 1, 6, 6, 0, 0]
[8, 1, 3, 9] -> [8, 8, 1, 1, 3, 3, 9, 9]
[9, 6, 8, 1, 2, 5] -> [9, 9, 6, 6, 8, 8, 1, 1, 2, 2, 5, 5]
[3, 1] -> [3, 3, 1, 1]
[3] -> [3, 3]
Questions:
[5, 7, 4, 3] -> ?
Answer:
|
[5, 7, 4, 3] -> [5, 5, 7, 7, 4, 4, 3, 3]
|
[5, 7, 4, 3]
|
[5, 5, 7, 7, 4, 4, 3, 3]
|
c237
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "cumulative sum of unique elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 8, 1, 2, 2, 2, 1] -> [2, 10, 11]
[0, 2, 3, 5, 5, 0, 6, 6, 0, 5] -> [0, 2, 5, 10, 16]
[2, 8, 6, 48, 48, 48, 8, 48, 8] -> [2, 10, 16, 64]
[0, 5, 0, 15, 5, 2, 28, 4, 7, 4] -> [0, 5, 20, 22, 50, 54, 61]
[1, 4, 4, 1, 3, 6, 3] -> [1, 5, 8, 14]
[13, 8, 2, 4, 9, 9, 9] -> [13, 21, 23, 27, 36]
[8, 0, 0, 15, 15, 3, 4] -> [8, 8, 23, 26, 30]
[0, 8, 9, 8, 8, 0, 6] -> [0, 8, 17, 23]
Questions:
[1, 8, 1, 0, 0, 8, 8, 1] -> ?
Answer:
|
[1, 8, 1, 0, 0, 8, 8, 1] -> [1, 9, 9]
|
[1, 8, 1, 0, 0, 8, 8, 1]
|
[1, 9, 9]
|
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:
[4, 8, 2, 4, 0, 12, 30, 7, 31] -> ?
Answer:
|
[4, 8, 2, 4, 0, 12, 30, 7, 31] -> [8, 12, 30, 7, 31]
|
[4, 8, 2, 4, 0, 12, 30, 7, 31]
|
[8, 12, 30, 7, 31]
|
c044
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 6, 6, 6, 6] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[5, 7, 3] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[7, 6, 6, 6, 6, 7, 7, 6, 6, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[7, 7, 7, 7, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[8, 5, 2, 8, 7, 1] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[6, 6, 6, 6, 6, 6, 6] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[8, 8, 1, 2, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
[6, 3, 0, 6, 7, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
Questions:
[3, 7, 3, 3, 1, 7, 3, 7] -> ?
Answer:
|
[3, 7, 3, 3, 1, 7, 3, 7] -> [1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
|
[3, 7, 3, 3, 1, 7, 3, 7]
|
[1, 9, 4, 3, 2, 5, 8, 0, 4, 9]
|
c245
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of times element 1 appears in elements 2 and following".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 4, 5, 9, 2, 63, 8] -> [1]
[33, 33, 33, 33, 33, 33, 33] -> [6]
[6, 6, 6, 6, 6, 6, 6, 6, 6, 6] -> [9]
[35, 1, 40, 2, 9, 6, 15, 5, 92, 19] -> [0]
[1, 75, 61, 2, 53, 86, 93, 4] -> [0]
[9, 9, 9, 9, 58, 9, 58, 9] -> [5]
[13, 13, 13, 13, 13, 13, 13, 13] -> [7]
[4, 34, 77, 6, 0, 8, 94, 2, 7] -> [0]
Questions:
[34, 32, 42, 97, 9, 12, 45, 48, 3, 14] -> ?
Answer:
|
[34, 32, 42, 97, 9, 12, 45, 48, 3, 14] -> [0]
|
[34, 32, 42, 97, 9, 12, 45, 48, 3, 14]
|
[0]
|
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:
[3, 0, 9, 6, 1, 5, 7, 2] -> ?
Answer:
|
[3, 0, 9, 6, 1, 5, 7, 2] -> [2]
|
[3, 0, 9, 6, 1, 5, 7, 2]
|
[2]
|
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:
[1, 0, 5, 7] -> ?
Answer:
|
[1, 0, 5, 7] -> [1, 0]
|
[1, 0, 5, 7]
|
[1, 0]
|
c249
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "use 0s to delimit sublists; give element 1 of each sublist".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[66, 0, 66, 0, 66, 1, 1, 78, 67, 8] -> [66, 66, 66]
[75, 10, 0, 52, 0, 75] -> [75, 52, 75]
[96, 6, 2, 96, 0, 14, 0, 2] -> [96, 14, 2]
[1, 2, 1, 13, 0, 13, 2, 0, 13] -> [1, 13, 13]
[76, 80, 39, 0, 26, 26, 26, 8, 64, 13] -> [76, 26]
[8, 7, 0, 16, 16, 2, 0, 43, 43, 54] -> [8, 16, 43]
[4, 3, 2, 0, 8, 28, 28, 47, 3, 49] -> [4, 8]
[74, 74, 74, 68, 68, 68, 68, 74, 68] -> [74]
Questions:
[7, 2, 16, 71, 73, 13, 77, 0, 59, 3] -> ?
Answer:
|
[7, 2, 16, 71, 73, 13, 77, 0, 59, 3] -> [7, 59]
|
[7, 2, 16, 71, 73, 13, 77, 0, 59, 3]
|
[7, 59]
|
c210
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements with last element inserted at index M, where M is element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 9, 83, 7, 52] -> [2, 52, 9, 83, 7, 52]
[1, 22] -> [22, 1, 22]
[4, 8, 73, 99, 6, 1, 90, 1, 45, 83] -> [4, 8, 73, 83, 99, 6, 1, 90, 45, 83]
[5, 8, 33, 0, 7, 80] -> [5, 8, 33, 0, 80, 7, 80]
[2, 2, 12, 7, 2, 7, 23, 23, 28] -> [2, 28, 12, 7, 23, 28]
[3, 44, 74, 44, 1, 0, 0] -> [3, 44, 0, 74, 1, 0]
[2, 1, 66] -> [2, 66, 1, 66]
[3, 7, 8, 5] -> [3, 7, 5, 8, 5]
Questions:
[5, 6, 41, 40, 4, 79, 46, 71, 9, 7] -> ?
Answer:
|
[5, 6, 41, 40, 4, 79, 46, 71, 9, 7] -> [5, 6, 41, 40, 7, 4, 79, 46, 71, 9, 7]
|
[5, 6, 41, 40, 4, 79, 46, 71, 9, 7]
|
[5, 6, 41, 40, 7, 4, 79, 46, 71, 9, 7]
|
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:
[0, 9, 2, 5, 1, 6, 4] -> ?
Answer:
|
[0, 9, 2, 5, 1, 6, 4] -> [0, 9, 5, 1, 6, 4]
|
[0, 9, 2, 5, 1, 6, 4]
|
[0, 9, 5, 1, 6, 4]
|
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:
[19, 6, 10, 5, 72] -> ?
Answer:
|
[19, 6, 10, 5, 72] -> [10, 5, 19, 6, 72]
|
[19, 6, 10, 5, 72]
|
[10, 5, 19, 6, 72]
|
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:
[1, 6, 9, 7, 4, 0, 5, 2] -> ?
Answer:
|
[1, 6, 9, 7, 4, 0, 5, 2] -> [1, 6, 9, 7, 4, 0]
|
[1, 6, 9, 7, 4, 0, 5, 2]
|
[1, 6, 9, 7, 4, 0]
|
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:
[8, 9, 1, 0, 73, 77, 71] -> ?
Answer:
|
[8, 9, 1, 0, 73, 77, 71] -> [0, 1, 71, 77]
|
[8, 9, 1, 0, 73, 77, 71]
|
[0, 1, 71, 77]
|
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:
[85, 71, 8, 56, 81, 90] -> ?
Answer:
|
[85, 71, 8, 56, 81, 90] -> [85, 71, 8, 56, 81, 85, 86, 87, 88, 89, 90]
|
[85, 71, 8, 56, 81, 90]
|
[85, 71, 8, 56, 81, 85, 86, 87, 88, 89, 90]
|
c215
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element M + 1 with the length of the input, M = element 1; drop element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 9, 4, 1, 93] -> [9, 4, 5, 93]
[3, 87, 87, 33, 59, 2, 6, 72, 45, 8] -> [87, 87, 10, 59, 2, 6, 72, 45, 8]
[2, 61, 0, 27, 1, 4, 72, 92, 84] -> [61, 9, 27, 1, 4, 72, 92, 84]
[4, 1, 5, 2, 0, 68, 36, 2, 14, 6] -> [1, 5, 2, 10, 68, 36, 2, 14, 6]
[4, 97, 57, 8, 83, 1] -> [97, 57, 8, 6, 1]
[6, 45, 1, 99, 53, 0, 41, 5, 4] -> [45, 1, 99, 53, 0, 9, 5, 4]
[1, 1, 82] -> [3, 82]
[6, 75, 55, 9, 0, 16, 0, 5] -> [75, 55, 9, 0, 16, 8, 5]
Questions:
[3, 18, 9, 7, 4] -> ?
Answer:
|
[3, 18, 9, 7, 4] -> [18, 9, 5, 4]
|
[3, 18, 9, 7, 4]
|
[18, 9, 5, 4]
|
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:
[62, 0, 4, 88, 54, 88, 7, 1, 16, 49] -> ?
Answer:
|
[62, 0, 4, 88, 54, 88, 7, 1, 16, 49] -> [62, 0, 4, 0, 54, 0, 7, 1, 16, 49]
|
[62, 0, 4, 88, 54, 88, 7, 1, 16, 49]
|
[62, 0, 4, 0, 54, 0, 7, 1, 16, 49]
|
c211
|
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 input; insert elements 4 and 5 so they are fourth and third from last, respectively".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 9, 6, 5, 71, 67] -> [67, 71, 5, 5, 71, 6, 9, 2]
[43, 77, 6, 1, 80, 5, 8, 57] -> [57, 8, 5, 80, 1, 1, 80, 6, 77, 43]
[82, 9, 57, 3, 22, 31] -> [31, 22, 3, 3, 22, 57, 9, 82]
[23, 19, 7, 90, 12, 3] -> [3, 12, 90, 90, 12, 7, 19, 23]
[43, 0, 2, 51, 48, 5, 1, 6] -> [6, 1, 5, 48, 51, 51, 48, 2, 0, 43]
[5, 39, 42, 3, 1, 4, 51] -> [51, 4, 1, 3, 3, 1, 42, 39, 5]
[0, 91, 68, 5, 18, 11] -> [11, 18, 5, 5, 18, 68, 91, 0]
[51, 7, 3, 51, 9, 15, 32] -> [32, 15, 9, 51, 51, 9, 3, 7, 51]
Questions:
[62, 96, 6, 7, 40, 3, 25] -> ?
Answer:
|
[62, 96, 6, 7, 40, 3, 25] -> [25, 3, 40, 7, 7, 40, 6, 96, 62]
|
[62, 96, 6, 7, 40, 3, 25]
|
[25, 3, 40, 7, 7, 40, 6, 96, 62]
|
c064
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the first and last elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 8, 4] -> [8]
[7, 1, 2, 9, 3, 0, 8, 4, 5, 6] -> [1, 2, 9, 3, 0, 8, 4, 5]
[7, 9, 3, 6, 5, 1, 2, 8, 0] -> [9, 3, 6, 5, 1, 2, 8]
[1, 6, 7, 2, 3, 5, 0, 4, 9] -> [6, 7, 2, 3, 5, 0, 4]
[0, 5] -> []
[8, 7, 5, 2, 0, 4] -> [7, 5, 2, 0]
[8, 3, 6, 1] -> [3, 6]
[8, 2, 1, 0, 9, 7, 3, 6] -> [2, 1, 0, 9, 7, 3]
Questions:
[4, 1, 0, 3, 8, 5, 7] -> ?
Answer:
|
[4, 1, 0, 3, 8, 5, 7] -> [1, 0, 3, 8, 5]
|
[4, 1, 0, 3, 8, 5, 7]
|
[1, 0, 3, 8, 5]
|
c211
|
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 input; insert elements 4 and 5 so they are fourth and third from last, respectively".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 9, 6, 5, 71, 67] -> [67, 71, 5, 5, 71, 6, 9, 2]
[43, 77, 6, 1, 80, 5, 8, 57] -> [57, 8, 5, 80, 1, 1, 80, 6, 77, 43]
[82, 9, 57, 3, 22, 31] -> [31, 22, 3, 3, 22, 57, 9, 82]
[23, 19, 7, 90, 12, 3] -> [3, 12, 90, 90, 12, 7, 19, 23]
[43, 0, 2, 51, 48, 5, 1, 6] -> [6, 1, 5, 48, 51, 51, 48, 2, 0, 43]
[5, 39, 42, 3, 1, 4, 51] -> [51, 4, 1, 3, 3, 1, 42, 39, 5]
[0, 91, 68, 5, 18, 11] -> [11, 18, 5, 5, 18, 68, 91, 0]
[51, 7, 3, 51, 9, 15, 32] -> [32, 15, 9, 51, 51, 9, 3, 7, 51]
Questions:
[85, 1, 68, 6, 64, 63] -> ?
Answer:
|
[85, 1, 68, 6, 64, 63] -> [63, 64, 6, 6, 64, 68, 1, 85]
|
[85, 1, 68, 6, 64, 63]
|
[63, 64, 6, 6, 64, 68, 1, 85]
|
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:
[30] -> ?
Answer:
|
[30] -> [30]
|
[30]
|
[30]
|
c072
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repeat every element 2 times in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 6, 0, 2, 7] -> [1, 1, 6, 6, 0, 0, 2, 2, 7, 7]
[8, 1, 7, 4, 2] -> [8, 8, 1, 1, 7, 7, 4, 4, 2, 2]
[9, 4, 0, 1, 2, 6] -> [9, 9, 4, 4, 0, 0, 1, 1, 2, 2, 6, 6]
[3, 8, 9, 5, 1, 6, 0] -> [3, 3, 8, 8, 9, 9, 5, 5, 1, 1, 6, 6, 0, 0]
[8, 1, 3, 9] -> [8, 8, 1, 1, 3, 3, 9, 9]
[9, 6, 8, 1, 2, 5] -> [9, 9, 6, 6, 8, 8, 1, 1, 2, 2, 5, 5]
[3, 1] -> [3, 3, 1, 1]
[3] -> [3, 3]
Questions:
[9, 0, 8] -> ?
Answer:
|
[9, 0, 8] -> [9, 9, 0, 0, 8, 8]
|
[9, 0, 8]
|
[9, 9, 0, 0, 8, 8]
|
c213
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "three smallest elements in ascending order".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 51, 55, 73, 3, 56, 87, 10, 5] -> [3, 5, 8]
[70, 76, 71, 10, 60, 42, 7, 40] -> [7, 10, 40]
[6, 59, 22, 7, 30, 68] -> [6, 7, 22]
[40, 1, 72, 18, 61, 27, 48] -> [1, 18, 27]
[75, 7, 16, 2, 8, 26] -> [2, 7, 8]
[77, 5, 2, 1] -> [1, 2, 5]
[25, 2, 70, 85, 35] -> [2, 25, 35]
[4, 46, 20, 7, 41, 96, 42, 84] -> [4, 7, 20]
Questions:
[88, 32, 61, 8, 4] -> ?
Answer:
|
[88, 32, 61, 8, 4] -> [4, 8, 32]
|
[88, 32, 61, 8, 4]
|
[4, 8, 32]
|
c078
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "maximum element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 7, 1, 2, 0, 3, 9, 4] -> [9]
[2, 4] -> [4]
[1, 9, 5, 7, 4, 6, 2, 3] -> [9]
[2, 7, 4, 3, 5, 0, 6, 1] -> [7]
[0, 6, 5] -> [6]
[2, 7, 0, 8, 3] -> [8]
[0, 1] -> [1]
[8, 1, 9, 6, 3, 0, 2, 4, 5, 7] -> [9]
Questions:
[1, 0, 5] -> ?
Answer:
|
[1, 0, 5] -> [5]
|
[1, 0, 5]
|
[5]
|
c089
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 2 and 3 if element 2 > element 3, else swap elements 1 and 4".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[69, 0, 0, 42] -> [42, 0, 0, 69]
[3, 30, 6, 6] -> [3, 6, 30, 6]
[21, 6, 7, 14, 26, 26, 5, 8, 13, 67] -> [14, 6, 7, 21, 26, 26, 5, 8, 13, 67]
[25, 19, 1, 31, 12, 13, 57, 7, 32] -> [25, 1, 19, 31, 12, 13, 57, 7, 32]
[3, 8, 2, 6, 55, 7, 54] -> [3, 2, 8, 6, 55, 7, 54]
[4, 87, 4, 87] -> [4, 4, 87, 87]
[28, 60, 80, 8, 65] -> [8, 60, 80, 28, 65]
[36, 66, 91, 9, 3, 18, 1, 7] -> [9, 66, 91, 36, 3, 18, 1, 7]
Questions:
[25, 6, 39, 18, 5, 9, 8, 0, 1] -> ?
Answer:
|
[25, 6, 39, 18, 5, 9, 8, 0, 1] -> [18, 6, 39, 25, 5, 9, 8, 0, 1]
|
[25, 6, 39, 18, 5, 9, 8, 0, 1]
|
[18, 6, 39, 25, 5, 9, 8, 0, 1]
|
c229
|
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 first N elements of the reversed input, N = element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 96] -> [96]
[4, 43, 0, 31, 71, 39, 97, 6, 8] -> [8, 6, 97, 39]
[2, 90, 2, 60, 9, 94] -> [94, 9]
[5, 53, 66, 42, 56, 20, 15, 92, 9] -> [9, 92, 15, 20, 56]
[1, 6, 55, 0, 32] -> [32]
[9, 6, 63, 8, 7, 1, 3, 43, 32, 46] -> [46, 32, 43, 3, 1, 7, 8, 63, 6]
[9, 4, 1, 6, 24, 8, 38, 67, 46, 39] -> [39, 46, 67, 38, 8, 24, 6, 1, 4]
[1, 25, 25] -> [25]
Questions:
[1, 92, 0, 6, 19, 4, 48] -> ?
Answer:
|
[1, 92, 0, 6, 19, 4, 48] -> [48]
|
[1, 92, 0, 6, 19, 4, 48]
|
[48]
|
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:
[7, 8, 9, 0, 3] -> ?
Answer:
|
[7, 8, 9, 0, 3] -> [7, 7, 8, 9, 0, 3]
|
[7, 8, 9, 0, 3]
|
[7, 7, 8, 9, 0, 3]
|
c055
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 3 and elements 2 and 4".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 7, 9, 8, 6] -> [9, 8, 5, 7, 6]
[4, 3, 2, 8, 9, 6, 7, 1, 0] -> [2, 8, 4, 3, 9, 6, 7, 1, 0]
[3, 8, 0, 7] -> [0, 7, 3, 8]
[3, 8, 7, 0, 9, 6, 5, 2, 4] -> [7, 0, 3, 8, 9, 6, 5, 2, 4]
[0, 3, 7, 1, 5, 8, 9, 6, 4, 2] -> [7, 1, 0, 3, 5, 8, 9, 6, 4, 2]
[7, 1, 8, 0, 3, 4, 9] -> [8, 0, 7, 1, 3, 4, 9]
[9, 4] -> [9, 4]
[9, 6, 8, 7, 5, 0, 1, 4] -> [8, 7, 9, 6, 5, 0, 1, 4]
Questions:
[4, 7, 2, 1, 0, 6, 5, 8] -> ?
Answer:
|
[4, 7, 2, 1, 0, 6, 5, 8] -> [2, 1, 4, 7, 0, 6, 5, 8]
|
[4, 7, 2, 1, 0, 6, 5, 8]
|
[2, 1, 4, 7, 0, 6, 5, 8]
|
c219
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only every other element, starting from the end of the list".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 1, 25, 6, 27, 27, 61, 20, 33] -> [3, 25, 27, 61, 33]
[5, 50, 75, 58, 64, 30, 26] -> [5, 75, 64, 26]
[5, 1, 18, 89, 17, 35, 58] -> [5, 18, 17, 58]
[48, 6, 25, 14, 3, 55, 47, 38, 1] -> [48, 25, 3, 47, 1]
[8, 3, 67, 89, 18, 73, 7, 6] -> [3, 89, 73, 6]
[91, 51, 6, 5, 0, 1, 8, 61, 4, 95] -> [51, 5, 1, 61, 95]
[85, 58, 98, 9, 41, 61, 7, 6, 67] -> [85, 98, 41, 7, 67]
[32, 67, 9, 48, 3, 6, 7, 0, 8] -> [32, 9, 3, 7, 8]
Questions:
[81, 3, 35, 88, 5, 4, 27, 0, 84, 22] -> ?
Answer:
|
[81, 3, 35, 88, 5, 4, 27, 0, 84, 22] -> [3, 88, 4, 0, 22]
|
[81, 3, 35, 88, 5, 4, 27, 0, 84, 22]
|
[3, 88, 4, 0, 22]
|
c003
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element 7".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 0, 6, 2, 3, 8, 5, 9, 4] -> [5]
[5, 6, 2, 3, 9, 7, 1, 0] -> [1]
[9, 8, 7, 4, 0, 3, 6, 5, 2, 1] -> [6]
[1, 2, 0, 8, 5, 9, 3, 6, 7, 4] -> [3]
[1, 0, 9, 5, 4, 2, 8] -> [8]
[4, 5, 8, 3, 1, 6, 0] -> [0]
[8, 3, 4, 0, 5, 1, 6, 9, 2] -> [6]
[1, 7, 9, 4, 6, 2, 0] -> [0]
Questions:
[8, 9, 2, 4, 0, 6, 5, 3] -> ?
Answer:
|
[8, 9, 2, 4, 0, 6, 5, 3] -> [5]
|
[8, 9, 2, 4, 0, 6, 5, 3]
|
[5]
|
c042
|
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 [5, 2]".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 7, 8] -> [5, 2]
[1, 8, 7, 7, 8] -> [5, 2]
[4, 0, 1, 4, 0, 6, 0, 9, 6, 6] -> [5, 2]
[3, 7, 0, 7, 7, 0] -> [5, 2]
[0, 8, 4, 8] -> [5, 2]
[6, 3, 7, 7, 4, 6] -> [5, 2]
[3, 4, 4, 1, 1, 3, 3, 4, 1, 3] -> [5, 2]
[3, 8] -> [5, 2]
Questions:
[6] -> ?
Answer:
|
[6] -> [5, 2]
|
[6]
|
[5, 2]
|
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:
[0, 57, 9, 28, 7, 5, 14, 77, 10, 61] -> ?
Answer:
|
[0, 57, 9, 28, 7, 5, 14, 77, 10, 61] -> [1, 2, 3, 4, 5, 6, 7, 8, 9]
|
[0, 57, 9, 28, 7, 5, 14, 77, 10, 61]
|
[1, 2, 3, 4, 5, 6, 7, 8, 9]
|
c246
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "number of unique elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[34, 44, 0, 2, 3, 5, 8, 98, 9, 73] -> [10]
[4, 66, 92, 99, 23, 7, 19, 5, 56, 91] -> [10]
[31, 3, 40, 34, 9, 0, 67, 1] -> [8]
[21, 30, 8, 79, 51, 0, 84, 49, 15] -> [9]
[53, 39, 61, 7, 97, 2, 4, 5, 81] -> [9]
[78, 81, 67, 27, 3, 63, 10, 69, 60, 39] -> [10]
[2, 9, 48, 44, 93, 0, 6, 8, 97, 24] -> [10]
[2, 0, 78, 30, 7, 9, 28, 62, 83, 5] -> [10]
Questions:
[4, 88, 70, 86, 3, 70, 48] -> ?
Answer:
|
[4, 88, 70, 86, 3, 70, 48] -> [6]
|
[4, 88, 70, 86, 3, 70, 48]
|
[6]
|
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:
[3, 5, 0, 4, 4, 2, 1, 8, 9, 6] -> ?
Answer:
|
[3, 5, 0, 4, 4, 2, 1, 8, 9, 6] -> [4, 2, 1]
|
[3, 5, 0, 4, 4, 2, 1, 8, 9, 6]
|
[4, 2, 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:
[97] -> ?
Answer:
|
[97] -> [17, 38, 82, 97, 1, 55, 27]
|
[97]
|
[17, 38, 82, 97, 1, 55, 27]
|
c124
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element M, M = element N, N = element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 0, 0] -> [1]
[8, 24, 5, 24, 0, 82, 5, 4, 2] -> [24]
[1, 1, 1, 1, 1, 1, 1, 1] -> [1]
[2, 8, 2, 65, 7, 7, 9, 11, 2] -> [11]
[7, 2, 7, 7, 3, 2, 3, 3, 63, 2] -> [7]
[2, 5, 4, 55, 81, 0] -> [81]
[1, 4, 49, 3, 2, 0, 4] -> [1]
[6, 6, 6, 17, 29, 4, 6, 32, 32] -> [17]
Questions:
[4, 9, 6, 7, 1, 0, 36, 4, 5] -> ?
Answer:
|
[4, 9, 6, 7, 1, 0, 36, 4, 5] -> [36]
|
[4, 9, 6, 7, 1, 0, 36, 4, 5]
|
[36]
|
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:
[3, 3, 3, 3, 3, 3] -> ?
Answer:
|
[3, 3, 3, 3, 3, 3] -> [0, 0, 1, 0, 0, 0]
|
[3, 3, 3, 3, 3, 3]
|
[0, 0, 1, 0, 0, 0]
|
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:
[9, 6, 4, 3, 5, 1, 0] -> ?
Answer:
|
[9, 6, 4, 3, 5, 1, 0] -> [9, 8, 6, 4, 3, 5, 1, 0]
|
[9, 6, 4, 3, 5, 1, 0]
|
[9, 8, 6, 4, 3, 5, 1, 0]
|
c185
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace the sublist between the first and last elements with its sum".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[33, 7, 8, 24, 29, 21, 1, 5] -> [33, 90, 5]
[8, 81, 7, 1, 3, 0] -> [8, 92, 0]
[6, 22, 1, 7, 20, 14, 14, 14] -> [6, 78, 14]
[60, 11, 63, 4, 11, 1, 7] -> [60, 90, 7]
[96, 4, 0, 1, 63, 17] -> [96, 68, 17]
[9, 0, 24, 4, 50, 0, 7] -> [9, 78, 7]
[74, 9, 3, 0, 44, 54] -> [74, 56, 54]
[31, 7, 1, 62, 2, 7, 8, 6, 4] -> [31, 93, 4]
Questions:
[84, 70, 9, 0, 1, 32] -> ?
Answer:
|
[84, 70, 9, 0, 1, 32] -> [84, 80, 32]
|
[84, 70, 9, 0, 1, 32]
|
[84, 80, 32]
|
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:
[4, 6, 8] -> ?
Answer:
|
[4, 6, 8] -> [8, 6, 8]
|
[4, 6, 8]
|
[8, 6, 8]
|
c079
|
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, 6, 0] -> [9]
[8, 1] -> [9]
[0, 8] -> [8]
[0, 1, 3] -> [4]
[5, 2] -> [7]
[1, 7] -> [8]
[2, 4, 3] -> [9]
[2, 0] -> [2]
Questions:
[2, 5, 1] -> ?
Answer:
|
[2, 5, 1] -> [8]
|
[2, 5, 1]
|
[8]
|
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:
[38, 0, 6, 38, 36, 36, 6, 6, 38] -> ?
Answer:
|
[38, 0, 6, 38, 36, 36, 6, 6, 38] -> [38, 6, 0, 38, 36, 36, 6, 6, 38]
|
[38, 0, 6, 38, 36, 36, 6, 6, 38]
|
[38, 6, 0, 38, 36, 36, 6, 6, 38]
|
c078
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "maximum element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 7, 1, 2, 0, 3, 9, 4] -> [9]
[2, 4] -> [4]
[1, 9, 5, 7, 4, 6, 2, 3] -> [9]
[2, 7, 4, 3, 5, 0, 6, 1] -> [7]
[0, 6, 5] -> [6]
[2, 7, 0, 8, 3] -> [8]
[0, 1] -> [1]
[8, 1, 9, 6, 3, 0, 2, 4, 5, 7] -> [9]
Questions:
[2, 7, 6, 5, 4, 3, 1] -> ?
Answer:
|
[2, 7, 6, 5, 4, 3, 1] -> [7]
|
[2, 7, 6, 5, 4, 3, 1]
|
[7]
|
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:
[8, 5, 8, 9, 8, 8] -> ?
Answer:
|
[8, 5, 8, 9, 8, 8] -> [5, 9]
|
[8, 5, 8, 9, 8, 8]
|
[5, 9]
|
c068
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate input and [7, 3, 8, 4, 3]".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 9] -> [0, 9, 7, 3, 8, 4, 3]
[4, 6, 9, 0, 5] -> [4, 6, 9, 0, 5, 7, 3, 8, 4, 3]
[9, 5, 7, 0, 1, 6, 2, 4, 8, 3] -> [9, 5, 7, 0, 1, 6, 2, 4, 8, 3, 7, 3, 8, 4, 3]
[2, 7] -> [2, 7, 7, 3, 8, 4, 3]
[4, 8, 1, 9, 3, 0, 2, 5, 6, 7] -> [4, 8, 1, 9, 3, 0, 2, 5, 6, 7, 7, 3, 8, 4, 3]
[2] -> [2, 7, 3, 8, 4, 3]
[1, 6, 7, 5, 2, 0] -> [1, 6, 7, 5, 2, 0, 7, 3, 8, 4, 3]
[3, 7, 1, 2, 6, 9, 0, 4, 8, 5] -> [3, 7, 1, 2, 6, 9, 0, 4, 8, 5, 7, 3, 8, 4, 3]
Questions:
[9, 7, 0, 2, 4, 6] -> ?
Answer:
|
[9, 7, 0, 2, 4, 6] -> [9, 7, 0, 2, 4, 6, 7, 3, 8, 4, 3]
|
[9, 7, 0, 2, 4, 6]
|
[9, 7, 0, 2, 4, 6, 7, 3, 8, 4, 3]
|
c090
|
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 [18, 42, 77, 20, 36]".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 6, 9, 49, 90, 34, 24, 51, 35] -> [18, 42, 77, 20, 36]
[24, 55] -> [18, 42, 77, 20, 36]
[89, 4, 30, 8, 82, 63, 7, 1] -> [18, 42, 77, 20, 36]
[37, 6, 37, 37, 10, 10, 10, 37] -> [18, 42, 77, 20, 36]
[9, 84, 87, 78] -> [18, 42, 77, 20, 36]
[32, 97, 3, 30, 8, 1, 3, 97, 79, 30] -> [18, 42, 77, 20, 36]
[52, 52, 72, 98, 4, 52, 52, 72, 72] -> [18, 42, 77, 20, 36]
[] -> [18, 42, 77, 20, 36]
Questions:
[75, 4, 6, 14] -> ?
Answer:
|
[75, 4, 6, 14] -> [18, 42, 77, 20, 36]
|
[75, 4, 6, 14]
|
[18, 42, 77, 20, 36]
|
c024
|
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 element 1 > 5 else 5".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 3, 2, 4, 6, 7] -> [9, 5, 3, 2, 4, 6, 7]
[6, 8, 2, 0, 1] -> [6, 5, 8, 2, 0, 1]
[0, 1, 8, 4, 2, 6, 9, 7, 5] -> [0, 8, 1, 8, 4, 2, 6, 9, 7, 5]
[0, 1, 5, 3, 2, 6, 9] -> [0, 8, 1, 5, 3, 2, 6, 9]
[6, 7, 9, 1, 0] -> [6, 5, 7, 9, 1, 0]
[6, 8, 3, 0, 5, 2, 4, 7] -> [6, 5, 8, 3, 0, 5, 2, 4, 7]
[3, 0, 1, 4, 5, 9] -> [3, 8, 0, 1, 4, 5, 9]
[0, 7, 1, 2, 4] -> [0, 8, 7, 1, 2, 4]
Questions:
[8, 1, 9] -> ?
Answer:
|
[8, 1, 9] -> [8, 5, 1, 9]
|
[8, 1, 9]
|
[8, 5, 1, 9]
|
c205
|
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 divisible by 4".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[81, 53, 4, 4] -> [16]
[4, 84, 0, 35, 99, 6, 57, 94] -> [0]
[5, 9, 83, 51, 4, 8, 53, 3] -> [32]
[4, 9, 4, 30, 9] -> [16]
[2, 9, 5, 8, 5, 83, 66, 4, 65] -> [32]
[6, 4, 55, 2, 4, 97, 55, 1, 41, 3] -> [16]
[8, 4, 3, 74, 38, 3, 2, 53, 5] -> [32]
[97, 9, 4, 8, 50, 2, 5] -> [32]
Questions:
[57, 9, 9, 21, 8, 9, 8] -> ?
Answer:
|
[57, 9, 9, 21, 8, 9, 8] -> [64]
|
[57, 9, 9, 21, 8, 9, 8]
|
[64]
|
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:
[28, 3] -> ?
Answer:
|
[28, 3] -> [28]
|
[28, 3]
|
[28]
|
c071
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "add 2 to every element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 6] -> [2, 8]
[0, 4, 6, 2, 3, 1] -> [2, 6, 8, 4, 5, 3]
[2] -> [4]
[3, 6, 5, 0, 1, 2] -> [5, 8, 7, 2, 3, 4]
[1, 6] -> [3, 8]
[1, 2] -> [3, 4]
[1] -> [3]
[5, 3, 0, 1] -> [7, 5, 2, 3]
Questions:
[4, 2, 6] -> ?
Answer:
|
[4, 2, 6] -> [6, 4, 8]
|
[4, 2, 6]
|
[6, 4, 8]
|
c209
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements in ascending order; insert sum of smallest and largest elements at index 3".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[94, 76, 5] -> [5, 76, 99, 94]
[53, 17, 64] -> [17, 53, 81, 64]
[77, 21, 20, 2] -> [2, 20, 79, 21, 77]
[2, 39, 42] -> [2, 39, 44, 42]
[7, 76, 86] -> [7, 76, 93, 86]
[8, 1, 35, 56, 32, 63] -> [1, 8, 64, 32, 35, 56, 63]
[96, 28, 3, 11, 0] -> [0, 3, 96, 11, 28, 96]
[2, 4, 3, 54] -> [2, 3, 56, 4, 54]
Questions:
[1, 97, 2, 90, 47, 50] -> ?
Answer:
|
[1, 97, 2, 90, 47, 50] -> [1, 2, 98, 47, 50, 90, 97]
|
[1, 97, 2, 90, 47, 50]
|
[1, 2, 98, 47, 50, 90, 97]
|
c046
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "prepend 7".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 0, 4, 1, 6, 8, 9] -> [7, 5, 0, 4, 1, 6, 8, 9]
[2, 6, 9, 8] -> [7, 2, 6, 9, 8]
[0, 6, 2, 4, 8, 1, 9] -> [7, 0, 6, 2, 4, 8, 1, 9]
[1, 8, 2, 4, 9, 0, 3] -> [7, 1, 8, 2, 4, 9, 0, 3]
[1, 9, 2, 0, 6, 4, 8, 5, 3] -> [7, 1, 9, 2, 0, 6, 4, 8, 5, 3]
[7, 4, 1, 5, 6, 9, 8, 0, 2, 3] -> [7, 7, 4, 1, 5, 6, 9, 8, 0, 2, 3]
[0, 8, 1, 3, 7, 6, 5, 9, 2] -> [7, 0, 8, 1, 3, 7, 6, 5, 9, 2]
[5, 3, 2, 6, 0, 4, 8, 7] -> [7, 5, 3, 2, 6, 0, 4, 8, 7]
Questions:
[6, 1, 3, 9, 0, 4] -> ?
Answer:
|
[6, 1, 3, 9, 0, 4] -> [7, 6, 1, 3, 9, 0, 4]
|
[6, 1, 3, 9, 0, 4]
|
[7, 6, 1, 3, 9, 0, 4]
|
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:
[69, 66, 6, 3, 6, 3, 69, 66] -> ?
Answer:
|
[69, 66, 6, 3, 6, 3, 69, 66] -> [69, 2, 66, 2, 6, 2, 3, 2]
|
[69, 66, 6, 3, 6, 3, 69, 66]
|
[69, 2, 66, 2, 6, 2, 3, 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:
[5, 6, 6, 6] -> ?
Answer:
|
[5, 6, 6, 6] -> [8, 2, 7, 0, 3]
|
[5, 6, 6, 6]
|
[8, 2, 7, 0, 3]
|
c045
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the input".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 4, 5, 0, 3, 6, 9, 1] -> [8, 4, 5, 0, 3, 6, 9, 1]
[7, 4, 2, 3] -> [7, 4, 2, 3]
[0, 9, 5] -> [0, 9, 5]
[5, 3, 7, 6, 0, 9, 2, 1, 8] -> [5, 3, 7, 6, 0, 9, 2, 1, 8]
[0, 3, 4, 6, 1, 8, 9, 7, 2] -> [0, 3, 4, 6, 1, 8, 9, 7, 2]
[3, 5, 8, 4, 1, 0, 2, 7] -> [3, 5, 8, 4, 1, 0, 2, 7]
[9, 1, 8, 4, 2] -> [9, 1, 8, 4, 2]
[7] -> [7]
Questions:
[5, 8, 0, 4, 7, 6, 1, 2, 3, 9] -> ?
Answer:
|
[5, 8, 0, 4, 7, 6, 1, 2, 3, 9] -> [5, 8, 0, 4, 7, 6, 1, 2, 3, 9]
|
[5, 8, 0, 4, 7, 6, 1, 2, 3, 9]
|
[5, 8, 0, 4, 7, 6, 1, 2, 3, 9]
|
c146
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "absolute difference of each consecutive pair, in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[93, 5] -> [88]
[1, 96, 12, 76, 6, 51, 38, 5, 25, 88] -> [95, 84, 64, 70, 45, 13, 33, 20, 63]
[1, 17, 3, 96, 5] -> [16, 14, 93, 91]
[70, 92, 34] -> [22, 58]
[89, 53, 20, 48, 2] -> [36, 33, 28, 46]
[21, 4, 6, 82, 1, 9, 2] -> [17, 2, 76, 81, 8, 7]
[0, 93, 7, 72, 35, 3, 10, 36] -> [93, 86, 65, 37, 32, 7, 26]
[55, 43, 19] -> [12, 24]
Questions:
[36, 82, 49, 9] -> ?
Answer:
|
[36, 82, 49, 9] -> [46, 33, 40]
|
[36, 82, 49, 9]
|
[46, 33, 40]
|
c185
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace the sublist between the first and last elements with its sum".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[33, 7, 8, 24, 29, 21, 1, 5] -> [33, 90, 5]
[8, 81, 7, 1, 3, 0] -> [8, 92, 0]
[6, 22, 1, 7, 20, 14, 14, 14] -> [6, 78, 14]
[60, 11, 63, 4, 11, 1, 7] -> [60, 90, 7]
[96, 4, 0, 1, 63, 17] -> [96, 68, 17]
[9, 0, 24, 4, 50, 0, 7] -> [9, 78, 7]
[74, 9, 3, 0, 44, 54] -> [74, 56, 54]
[31, 7, 1, 62, 2, 7, 8, 6, 4] -> [31, 93, 4]
Questions:
[30, 11, 41, 0, 9, 6] -> ?
Answer:
|
[30, 11, 41, 0, 9, 6] -> [30, 61, 6]
|
[30, 11, 41, 0, 9, 6]
|
[30, 61, 6]
|
c210
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements with last element inserted at index M, where M is element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 9, 83, 7, 52] -> [2, 52, 9, 83, 7, 52]
[1, 22] -> [22, 1, 22]
[4, 8, 73, 99, 6, 1, 90, 1, 45, 83] -> [4, 8, 73, 83, 99, 6, 1, 90, 45, 83]
[5, 8, 33, 0, 7, 80] -> [5, 8, 33, 0, 80, 7, 80]
[2, 2, 12, 7, 2, 7, 23, 23, 28] -> [2, 28, 12, 7, 23, 28]
[3, 44, 74, 44, 1, 0, 0] -> [3, 44, 0, 74, 1, 0]
[2, 1, 66] -> [2, 66, 1, 66]
[3, 7, 8, 5] -> [3, 7, 5, 8, 5]
Questions:
[6, 9, 7, 0, 0, 4, 1, 16, 5, 3] -> ?
Answer:
|
[6, 9, 7, 0, 0, 4, 1, 16, 5, 3] -> [6, 9, 7, 0, 4, 3, 1, 16, 5, 3]
|
[6, 9, 7, 0, 0, 4, 1, 16, 5, 3]
|
[6, 9, 7, 0, 4, 3, 1, 16, 5, 3]
|
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:
[7, 8, 5, 42] -> ?
Answer:
|
[7, 8, 5, 42] -> [4, 6, 0, 74]
|
[7, 8, 5, 42]
|
[4, 6, 0, 74]
|
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:
[41, 4, 4, 2, 79, 13, 7, 13, 79] -> ?
Answer:
|
[41, 4, 4, 2, 79, 13, 7, 13, 79] -> [41, 2, 7]
|
[41, 4, 4, 2, 79, 13, 7, 13, 79]
|
[41, 2, 7]
|
c005
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element N + 1, N = element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 4, 6, 4] -> [4]
[3, 7, 9, 7, 1, 1, 8, 9] -> [7]
[2, 5, 3, 1, 0, 4, 7, 8] -> [3]
[7, 6, 8, 3, 1, 9, 0, 2, 4] -> [2]
[4, 2, 6, 3, 1, 0] -> [1]
[2, 6, 6] -> [6]
[2, 8, 6, 3, 1] -> [6]
[4, 2, 5, 7, 6, 9, 8] -> [6]
Questions:
[4, 9, 2, 3, 6, 0] -> ?
Answer:
|
[4, 9, 2, 3, 6, 0] -> [6]
|
[4, 9, 2, 3, 6, 0]
|
[6]
|
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:
[24, 20, 45, 24] -> ?
Answer:
|
[24, 20, 45, 24] -> [38, 30, 80, 38]
|
[24, 20, 45, 24]
|
[38, 30, 80, 38]
|
c007
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but the first 2 elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 6, 4, 5, 7] -> [8, 6]
[2, 4, 7, 0, 8, 3, 5, 6, 1, 9] -> [2, 4]
[3, 4, 2, 1] -> [3, 4]
[3] -> [3]
[3, 1, 0, 5, 7, 6, 2, 8] -> [3, 1]
[0, 1, 4, 7, 5, 6, 3, 8, 2, 9] -> [0, 1]
[5] -> [5]
[6, 1, 7, 9, 5] -> [6, 1]
Questions:
[7, 8, 2, 9] -> ?
Answer:
|
[7, 8, 2, 9] -> [7, 8]
|
[7, 8, 2, 9]
|
[7, 8]
|
c007
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but the first 2 elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 6, 4, 5, 7] -> [8, 6]
[2, 4, 7, 0, 8, 3, 5, 6, 1, 9] -> [2, 4]
[3, 4, 2, 1] -> [3, 4]
[3] -> [3]
[3, 1, 0, 5, 7, 6, 2, 8] -> [3, 1]
[0, 1, 4, 7, 5, 6, 3, 8, 2, 9] -> [0, 1]
[5] -> [5]
[6, 1, 7, 9, 5] -> [6, 1]
Questions:
[6, 5, 1, 7, 3, 0, 4, 2, 9] -> ?
Answer:
|
[6, 5, 1, 7, 3, 0, 4, 2, 9] -> [6, 5]
|
[6, 5, 1, 7, 3, 0, 4, 2, 9]
|
[6, 5]
|
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:
[5, 7, 2, 3, 8, 6, 0, 9, 1, 4] -> ?
Answer:
|
[5, 7, 2, 3, 8, 6, 0, 9, 1, 4] -> [5, 7, 2, 3, 8, 6]
|
[5, 7, 2, 3, 8, 6, 0, 9, 1, 4]
|
[5, 7, 2, 3, 8, 6]
|
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:
[0, 70, 6, 13, 1, 74, 73, 75, 5, 54] -> ?
Answer:
|
[0, 70, 6, 13, 1, 74, 73, 75, 5, 54] -> [0, 70, 6, 13, 1, 74, 73, 0, 5, 54]
|
[0, 70, 6, 13, 1, 74, 73, 75, 5, 54]
|
[0, 70, 6, 13, 1, 74, 73, 0, 5, 54]
|
c038
|
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 9".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 1, 5] -> [4, 1, 5, 9]
[1, 4, 8, 2, 3, 5, 9, 0, 7, 6] -> [1, 4, 8, 2, 3, 5, 9, 0, 7, 6, 9]
[2, 6] -> [2, 6, 9]
[4, 6, 1, 0, 5, 8] -> [4, 6, 1, 0, 5, 8, 9]
[2, 5, 3, 0, 6, 8, 1, 9] -> [2, 5, 3, 0, 6, 8, 1, 9, 9]
[6, 1, 4, 5, 8] -> [6, 1, 4, 5, 8, 9]
[3, 8, 9, 7, 5, 6, 1, 4] -> [3, 8, 9, 7, 5, 6, 1, 4, 9]
[6, 3, 2, 0] -> [6, 3, 2, 0, 9]
Questions:
[0, 5, 6, 3, 2, 1, 4, 7, 8] -> ?
Answer:
|
[0, 5, 6, 3, 2, 1, 4, 7, 8] -> [0, 5, 6, 3, 2, 1, 4, 7, 8, 9]
|
[0, 5, 6, 3, 2, 1, 4, 7, 8]
|
[0, 5, 6, 3, 2, 1, 4, 7, 8, 9]
|
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:
[65, 84, 9, 3] -> ?
Answer:
|
[65, 84, 9, 3] -> [68, 93, 93, 68]
|
[65, 84, 9, 3]
|
[68, 93, 93, 68]
|
c247
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements before the first 0".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[30, 6, 0, 8, 0, 88, 3] -> [30, 6]
[62, 0, 3, 0, 5, 56, 49] -> [62]
[66, 0, 66, 66, 1] -> [66]
[39, 39, 0, 39, 0, 39, 39, 39, 39] -> [39, 39]
[6, 1, 7, 0, 6, 2, 0, 6, 69] -> [6, 1, 7]
[84, 84, 84, 0, 7, 0, 62, 7, 62, 0] -> [84, 84, 84]
[44, 8, 0, 13, 82, 16, 48, 5, 32] -> [44, 8]
[6, 50, 50, 0, 7, 0, 8] -> [6, 50, 50]
Questions:
[9, 0, 9, 9, 0, 9, 5] -> ?
Answer:
|
[9, 0, 9, 9, 0, 9, 5] -> [9]
|
[9, 0, 9, 9, 0, 9, 5]
|
[9]
|
c101
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the list [11,19, 24, 33, 42, 5, 82, 0, 64, 9]".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[47, 59, 59, 23, 4, 78, 23] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[43, 7, 78, 7, 43, 4, 4] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[83] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[58, 58, 58] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[84, 84, 84] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[14] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[52, 57, 55, 51] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
[62, 20, 8, 62, 56, 8, 3, 98, 66] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
Questions:
[21, 21] -> ?
Answer:
|
[21, 21] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
|
[21, 21]
|
[11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
|
c051
|
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 five times".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 8, 3, 5, 4] -> [0, 0, 0, 0, 0, 0, 8, 3, 5, 4]
[4, 0, 6, 5, 3, 8, 9, 1, 7, 2] -> [4, 4, 4, 4, 4, 4, 0, 6, 5, 3, 8, 9, 1, 7, 2]
[9, 4] -> [9, 9, 9, 9, 9, 9, 4]
[0] -> [0, 0, 0, 0, 0, 0]
[1, 6, 5, 2, 3, 7, 8, 4] -> [1, 1, 1, 1, 1, 1, 6, 5, 2, 3, 7, 8, 4]
[5] -> [5, 5, 5, 5, 5, 5]
[5, 6, 9, 2, 4] -> [5, 5, 5, 5, 5, 5, 6, 9, 2, 4]
[7, 4, 1] -> [7, 7, 7, 7, 7, 7, 4, 1]
Questions:
[1, 9, 0, 3, 4, 7, 8, 6] -> ?
Answer:
|
[1, 9, 0, 3, 4, 7, 8, 6] -> [1, 1, 1, 1, 1, 1, 9, 0, 3, 4, 7, 8, 6]
|
[1, 9, 0, 3, 4, 7, 8, 6]
|
[1, 1, 1, 1, 1, 1, 9, 0, 3, 4, 7, 8, 6]
|
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:
[29, 29, 29, 29, 29, 29, 29, 29, 29, 29] -> ?
Answer:
|
[29, 29, 29, 29, 29, 29, 29, 29, 29, 29] -> [29, 29, 29, 29, 29, 29, 29, 29, 29]
|
[29, 29, 29, 29, 29, 29, 29, 29, 29, 29]
|
[29, 29, 29, 29, 29, 29, 29, 29, 29]
|
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:
[3, 2, 8, 0] -> ?
Answer:
|
[3, 2, 8, 0] -> [4]
|
[3, 2, 8, 0]
|
[4]
|
c136
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the first occurrence of the largest element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[64, 3, 64, 64, 1, 55] -> [3, 64, 64, 1, 55]
[5, 24, 11, 26, 73, 41, 60, 73] -> [5, 24, 11, 26, 41, 60, 73]
[82, 5, 82, 82, 81, 12, 31, 5, 31] -> [5, 82, 82, 81, 12, 31, 5, 31]
[59, 4, 5, 16, 59, 9] -> [4, 5, 16, 59, 9]
[0, 78, 78, 9, 78] -> [0, 78, 9, 78]
[25, 25] -> [25]
[71, 1, 0, 22, 6, 18, 4, 99, 3, 87] -> [71, 1, 0, 22, 6, 18, 4, 3, 87]
[4, 1, 40, 56, 71, 8, 45, 3, 13] -> [4, 1, 40, 56, 8, 45, 3, 13]
Questions:
[2, 4, 59, 53, 77, 5, 77] -> ?
Answer:
|
[2, 4, 59, 53, 77, 5, 77] -> [2, 4, 59, 53, 5, 77]
|
[2, 4, 59, 53, 77, 5, 77]
|
[2, 4, 59, 53, 5, 77]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.