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
|
---|---|---|---|---|---|
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:
[49, 3, 56, 51, 49, 43, 66, 56, 2] -> ?
Answer:
|
[49, 3, 56, 51, 49, 43, 66, 56, 2] -> [2, 1, 2, 1, 2, 1, 1, 2, 1]
|
[49, 3, 56, 51, 49, 43, 66, 56, 2]
|
[2, 1, 2, 1, 2, 1, 1, 2, 1]
|
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:
[3, 2, 77] -> ?
Answer:
|
[3, 2, 77] -> [77, 77]
|
[3, 2, 77]
|
[77, 77]
|
c161
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with M + the input length - M’s index".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[40, 5, 83, 3, 29, 8] -> [45, 9, 86, 5, 30, 8]
[40, 4, 83, 6, 5, 61, 9] -> [46, 9, 87, 9, 7, 62, 9]
[0, 87, 50, 11, 7, 72] -> [5, 91, 53, 13, 8, 72]
[4, 6, 46, 96, 1, 9] -> [9, 10, 49, 98, 2, 9]
[44, 4, 24, 95, 92, 33, 6] -> [50, 9, 28, 98, 94, 34, 6]
[80, 5, 49, 2, 21, 0, 32] -> [86, 10, 53, 5, 23, 1, 32]
[19, 28, 34, 16, 1, 51] -> [24, 32, 37, 18, 2, 51]
[1, 9, 2, 89, 21, 64, 11, 71, 15, 7] -> [10, 17, 9, 95, 26, 68, 14, 73, 16, 7]
Questions:
[7, 25, 5, 5, 8, 6, 4, 95, 9] -> ?
Answer:
|
[7, 25, 5, 5, 8, 6, 4, 95, 9] -> [15, 32, 11, 10, 12, 9, 6, 96, 9]
|
[7, 25, 5, 5, 8, 6, 4, 95, 9]
|
[15, 32, 11, 10, 12, 9, 6, 96, 9]
|
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:
[5, 47, 17, 55, 62, 35, 1, 0, 8] -> ?
Answer:
|
[5, 47, 17, 55, 62, 35, 1, 0, 8] -> [5, 17, 47, 55, 62, 35, 1, 0, 8]
|
[5, 47, 17, 55, 62, 35, 1, 0, 8]
|
[5, 17, 47, 55, 62, 35, 1, 0, 8]
|
c057
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "insert a 4 as element 7".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 2, 1, 3] -> [6, 2, 1, 3, 4]
[] -> [4]
[8, 6, 2] -> [8, 6, 2, 4]
[2, 5] -> [2, 5, 4]
[3, 9, 4, 5, 8, 0, 2, 7, 1] -> [3, 9, 4, 5, 8, 0, 4, 2, 7, 1]
[1, 8, 5, 6, 7] -> [1, 8, 5, 6, 7, 4]
[0] -> [0, 4]
[8, 0, 9, 3] -> [8, 0, 9, 3, 4]
Questions:
[8, 2, 5, 9, 3, 4, 6, 0, 7] -> ?
Answer:
|
[8, 2, 5, 9, 3, 4, 6, 0, 7] -> [8, 2, 5, 9, 3, 4, 4, 6, 0, 7]
|
[8, 2, 5, 9, 3, 4, 6, 0, 7]
|
[8, 2, 5, 9, 3, 4, 4, 6, 0, 7]
|
c070
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "concatenate input with itself".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 3, 6, 7] -> [8, 3, 6, 7, 8, 3, 6, 7]
[2, 6, 4, 8, 7] -> [2, 6, 4, 8, 7, 2, 6, 4, 8, 7]
[0, 1, 4, 7, 8] -> [0, 1, 4, 7, 8, 0, 1, 4, 7, 8]
[2, 4, 9, 3, 5, 1] -> [2, 4, 9, 3, 5, 1, 2, 4, 9, 3, 5, 1]
[8, 7, 3] -> [8, 7, 3, 8, 7, 3]
[5, 2, 8, 0, 3, 1, 6] -> [5, 2, 8, 0, 3, 1, 6, 5, 2, 8, 0, 3, 1, 6]
[6] -> [6, 6]
[0, 6, 9, 8, 5, 2] -> [0, 6, 9, 8, 5, 2, 0, 6, 9, 8, 5, 2]
Questions:
[0, 4, 6, 5] -> ?
Answer:
|
[0, 4, 6, 5] -> [0, 4, 6, 5, 0, 4, 6, 5]
|
[0, 4, 6, 5]
|
[0, 4, 6, 5, 0, 4, 6, 5]
|
c198
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "unique elements in descending order".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[] -> []
[94, 64, 8, 3, 1, 20, 38, 54, 0, 41] -> [94, 64, 54, 41, 38, 20, 8, 3, 1, 0]
[98, 9, 6, 68, 5, 3, 4, 7] -> [98, 68, 9, 7, 6, 5, 4, 3]
[5, 78, 58, 5, 30, 32, 7, 72, 0, 2] -> [78, 72, 58, 32, 30, 7, 5, 2, 0]
[4, 64, 39, 25, 83, 52, 5, 0, 88, 49] -> [88, 83, 64, 52, 49, 39, 25, 5, 4, 0]
[35, 80, 9, 22, 4, 57] -> [80, 57, 35, 22, 9, 4]
[4, 14, 1, 3, 75, 6] -> [75, 14, 6, 4, 3, 1]
[93, 93, 93, 93, 93, 93, 93, 93, 93] -> [93]
Questions:
[69, 11, 69, 17, 8, 6, 17] -> ?
Answer:
|
[69, 11, 69, 17, 8, 6, 17] -> [69, 17, 11, 8, 6]
|
[69, 11, 69, 17, 8, 6, 17]
|
[69, 17, 11, 8, 6]
|
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:
[0, 9, 18, 12, 68, 8, 1, 57] -> ?
Answer:
|
[0, 9, 18, 12, 68, 8, 1, 57] -> [0, 9, 18, 12, 57]
|
[0, 9, 18, 12, 68, 8, 1, 57]
|
[0, 9, 18, 12, 57]
|
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:
[0, 2] -> ?
Answer:
|
[0, 2] -> [1, 2]
|
[0, 2]
|
[1, 2]
|
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, 7, 1, 9, 4, 5, 2, 8] -> ?
Answer:
|
[3, 7, 1, 9, 4, 5, 2, 8] -> [1, 1, 1, 9, 4, 5, 2, 8]
|
[3, 7, 1, 9, 4, 5, 2, 8]
|
[1, 1, 1, 9, 4, 5, 2, 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:
[5, 3] -> ?
Answer:
|
[5, 3] -> [8]
|
[5, 3]
|
[8]
|
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:
[83, 48, 4, 51] -> ?
Answer:
|
[83, 48, 4, 51] -> [4]
|
[83, 48, 4, 51]
|
[4]
|
c052
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repeat element 1 ten times".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 2, 9, 0, 3, 8, 1, 5, 6, 7] -> [4, 4, 4, 4, 4, 4, 4, 4, 4, 4]
[1, 4, 7, 3, 6] -> [1, 1, 1, 1, 1, 1, 1, 1, 1, 1]
[8, 1, 2, 9, 6, 3, 4, 7] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8]
[5, 9, 1, 6, 2, 0] -> [5, 5, 5, 5, 5, 5, 5, 5, 5, 5]
[8, 4, 6] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8]
[8] -> [8, 8, 8, 8, 8, 8, 8, 8, 8, 8]
[6, 7, 5, 1, 4, 9, 3, 2, 0, 8] -> [6, 6, 6, 6, 6, 6, 6, 6, 6, 6]
[0, 2, 6, 8, 1, 5, 9, 4] -> [0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
Questions:
[9] -> ?
Answer:
|
[9] -> [9, 9, 9, 9, 9, 9, 9, 9, 9, 9]
|
[9]
|
[9, 9, 9, 9, 9, 9, 9, 9, 9, 9]
|
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:
[77, 0, 35, 8, 37, 66, 7, 3, 73] -> ?
Answer:
|
[77, 0, 35, 8, 37, 66, 7, 3, 73] -> [35]
|
[77, 0, 35, 8, 37, 66, 7, 3, 73]
|
[35]
|
c082
|
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:
[87, 66, 13, 56, 95, 8, 1, 6, 2] -> [13]
[91, 63, 15, 99, 4, 25, 14, 0, 9] -> [15]
[9, 29, 13, 52, 26, 5, 39, 45, 8, 58] -> [13]
[0, 76, 8, 52, 68] -> [8]
[38] -> []
[1] -> []
[79, 66, 1] -> [1]
[] -> []
Questions:
[4, 90, 61, 8, 40, 0, 5, 3, 29, 66] -> ?
Answer:
|
[4, 90, 61, 8, 40, 0, 5, 3, 29, 66] -> [61]
|
[4, 90, 61, 8, 40, 0, 5, 3, 29, 66]
|
[61]
|
c029
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the first two elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 5, 0, 4, 2, 6] -> [0, 4, 2, 6]
[8, 3] -> []
[2, 8, 1] -> [1]
[2, 1, 3, 8] -> [3, 8]
[5, 2, 6, 3, 9, 0, 8, 1] -> [6, 3, 9, 0, 8, 1]
[0, 9, 6, 5, 3, 8, 2, 1] -> [6, 5, 3, 8, 2, 1]
[5, 4, 1, 6, 9, 8, 7] -> [1, 6, 9, 8, 7]
[0, 4, 8, 2, 7, 5, 6] -> [8, 2, 7, 5, 6]
Questions:
[3, 9, 7, 5, 4, 0, 2, 6] -> ?
Answer:
|
[3, 9, 7, 5, 4, 0, 2, 6] -> [7, 5, 4, 0, 2, 6]
|
[3, 9, 7, 5, 4, 0, 2, 6]
|
[7, 5, 4, 0, 2, 6]
|
c124
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "element M, M = element N, N = element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 0, 0] -> [1]
[8, 24, 5, 24, 0, 82, 5, 4, 2] -> [24]
[1, 1, 1, 1, 1, 1, 1, 1] -> [1]
[2, 8, 2, 65, 7, 7, 9, 11, 2] -> [11]
[7, 2, 7, 7, 3, 2, 3, 3, 63, 2] -> [7]
[2, 5, 4, 55, 81, 0] -> [81]
[1, 4, 49, 3, 2, 0, 4] -> [1]
[6, 6, 6, 17, 29, 4, 6, 32, 32] -> [17]
Questions:
[9, 9, 29, 3, 8, 71, 6, 34, 3, 6] -> ?
Answer:
|
[9, 9, 29, 3, 8, 71, 6, 34, 3, 6] -> [29]
|
[9, 9, 29, 3, 8, 71, 6, 34, 3, 6]
|
[29]
|
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:
[9, 2, 4, 7, 6, 3, 5, 0, 8] -> ?
Answer:
|
[9, 2, 4, 7, 6, 3, 5, 0, 8] -> [9]
|
[9, 2, 4, 7, 6, 3, 5, 0, 8]
|
[9]
|
c119
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "prepend or append 8, if necessary, so the list begins and ends with 8".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[37] -> [8, 37, 8]
[99, 7, 79, 8] -> [8, 99, 7, 79, 8]
[39, 8, 39, 77, 8] -> [8, 39, 8, 39, 77, 8]
[8, 5] -> [8, 5, 8]
[8, 3, 8, 70, 90] -> [8, 3, 8, 70, 90, 8]
[58, 9, 8] -> [8, 58, 9, 8]
[8, 6, 99, 34, 8] -> [8, 6, 99, 34, 8]
[8, 8] -> [8, 8]
Questions:
[8, 72, 4, 86, 95] -> ?
Answer:
|
[8, 72, 4, 86, 95] -> [8, 72, 4, 86, 95, 8]
|
[8, 72, 4, 86, 95]
|
[8, 72, 4, 86, 95, 8]
|
c032
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove two elements: the first two if element 1 > last element, else the last two".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 2, 8, 7, 6, 5, 1, 0] -> [8, 7, 6, 5, 1, 0]
[8, 6, 7] -> [7]
[3, 8, 6, 0] -> [6, 0]
[0, 8, 5, 6, 3, 1, 7, 4, 9] -> [0, 8, 5, 6, 3, 1, 7]
[0, 8, 3, 4, 2, 6, 5, 9, 7, 1] -> [0, 8, 3, 4, 2, 6, 5, 9]
[3, 4, 9] -> [3]
[6, 7, 8, 9, 3, 4, 0, 1, 5, 2] -> [8, 9, 3, 4, 0, 1, 5, 2]
[5, 2, 9, 6, 8, 1, 7] -> [5, 2, 9, 6, 8]
Questions:
[2, 7, 5] -> ?
Answer:
|
[2, 7, 5] -> [2]
|
[2, 7, 5]
|
[2]
|
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, 2, 2, 2] -> ?
Answer:
|
[2, 2, 2, 2] -> [2, 2, 2, 2, 2, 2, 2, 2]
|
[2, 2, 2, 2]
|
[2, 2, 2, 2, 2, 2, 2, 2]
|
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, 1, 4, 8, 3, 0, 5] -> ?
Answer:
|
[7, 1, 4, 8, 3, 0, 5] -> [4, 8, 3, 0, 5]
|
[7, 1, 4, 8, 3, 0, 5]
|
[4, 8, 3, 0, 5]
|
c125
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements whose tens digit equals the tens digit of element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[59, 82, 59, 82, 9, 83] -> [59, 59]
[7, 9, 26, 5, 70, 6, 3] -> [7, 9, 5, 6, 3]
[23, 80, 23, 2, 1, 5, 77, 91] -> [23, 23]
[1, 9, 7, 78, 6, 5, 8, 0, 3, 4] -> [1, 9, 7, 6, 5, 8, 0, 3, 4]
[78, 78, 78, 66, 78] -> [78, 78, 78, 78]
[5, 8, 40, 6, 90, 2] -> [5, 8, 6, 2]
[3, 5, 95, 21, 0, 2, 3] -> [3, 5, 0, 2, 3]
[45, 62, 43, 73, 45, 52] -> [45, 43, 45]
Questions:
[41, 81, 3, 12, 47] -> ?
Answer:
|
[41, 81, 3, 12, 47] -> [41, 47]
|
[41, 81, 3, 12, 47]
|
[41, 47]
|
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, 0, 1] -> ?
Answer:
|
[4, 0, 1] -> [1, 0, 1]
|
[4, 0, 1]
|
[1, 0, 1]
|
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:
[52, 14, 0, 2, 22, 38, 54] -> ?
Answer:
|
[52, 14, 0, 2, 22, 38, 54] -> [0]
|
[52, 14, 0, 2, 22, 38, 54]
|
[0]
|
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:
[0, 1, 55, 7, 20, 11, 54] -> ?
Answer:
|
[0, 1, 55, 7, 20, 11, 54] -> [54, 11, 20, 7, 7, 20, 55, 1, 0]
|
[0, 1, 55, 7, 20, 11, 54]
|
[54, 11, 20, 7, 7, 20, 55, 1, 0]
|
c125
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements whose tens digit equals the tens digit of element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[59, 82, 59, 82, 9, 83] -> [59, 59]
[7, 9, 26, 5, 70, 6, 3] -> [7, 9, 5, 6, 3]
[23, 80, 23, 2, 1, 5, 77, 91] -> [23, 23]
[1, 9, 7, 78, 6, 5, 8, 0, 3, 4] -> [1, 9, 7, 6, 5, 8, 0, 3, 4]
[78, 78, 78, 66, 78] -> [78, 78, 78, 78]
[5, 8, 40, 6, 90, 2] -> [5, 8, 6, 2]
[3, 5, 95, 21, 0, 2, 3] -> [3, 5, 0, 2, 3]
[45, 62, 43, 73, 45, 52] -> [45, 43, 45]
Questions:
[13, 7, 7, 13] -> ?
Answer:
|
[13, 7, 7, 13] -> [13, 13]
|
[13, 7, 7, 13]
|
[13, 13]
|
c214
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove elements 1 and N+1, where N is element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 60, 15, 5, 4, 42, 29] -> [60, 15, 4, 42, 29]
[5, 1, 24, 34, 1, 1, 1] -> [1, 24, 34, 1, 1]
[4, 6, 55, 8, 74, 1] -> [6, 55, 8, 1]
[8, 78, 4, 8, 75, 3, 1, 68, 0, 92] -> [78, 4, 8, 75, 3, 1, 68, 92]
[2, 0, 1, 76, 98, 33, 79] -> [0, 76, 98, 33, 79]
[3, 13, 13, 46, 2, 80, 45, 1] -> [13, 13, 2, 80, 45, 1]
[6, 53, 50, 71, 9, 13, 16, 8] -> [53, 50, 71, 9, 13, 8]
[4, 0, 9, 27, 2, 40, 56] -> [0, 9, 27, 40, 56]
Questions:
[5, 0, 18, 50, 3, 1] -> ?
Answer:
|
[5, 0, 18, 50, 3, 1] -> [0, 18, 50, 3]
|
[5, 0, 18, 50, 3, 1]
|
[0, 18, 50, 3]
|
c188
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with 1 if it is divisible by 3, else 0".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[53, 24, 70, 15, 7, 23, 4] -> [0, 1, 0, 1, 0, 0, 0]
[89, 88, 2, 5, 0, 25, 3, 74, 9, 4] -> [0, 0, 0, 0, 1, 0, 1, 0, 1, 0]
[54, 12, 73] -> [1, 1, 0]
[71, 48, 3, 6] -> [0, 1, 1, 1]
[27, 8, 7, 36, 2, 6, 62] -> [1, 0, 0, 1, 0, 1, 0]
[21, 0, 9, 25, 44, 95, 65] -> [1, 1, 1, 0, 0, 0, 0]
[15, 63] -> [1, 1]
[4, 72, 9, 0, 8, 95, 5, 2, 15, 49] -> [0, 1, 1, 1, 0, 0, 0, 0, 1, 0]
Questions:
[8, 25, 6, 48] -> ?
Answer:
|
[8, 25, 6, 48] -> [0, 0, 1, 1]
|
[8, 25, 6, 48]
|
[0, 0, 1, 1]
|
c037
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "append 3".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 0, 2, 1, 3, 6, 8, 9, 7, 5] -> [4, 0, 2, 1, 3, 6, 8, 9, 7, 5, 3]
[2, 8, 7, 5, 0, 4, 6, 1] -> [2, 8, 7, 5, 0, 4, 6, 1, 3]
[5, 3, 4, 1, 9] -> [5, 3, 4, 1, 9, 3]
[6, 5, 0] -> [6, 5, 0, 3]
[7, 1] -> [7, 1, 3]
[4, 9, 1, 6, 0, 8] -> [4, 9, 1, 6, 0, 8, 3]
[0, 8] -> [0, 8, 3]
[3, 5, 7, 6, 9, 1, 8, 2, 4] -> [3, 5, 7, 6, 9, 1, 8, 2, 4, 3]
Questions:
[5, 6, 1, 4] -> ?
Answer:
|
[5, 6, 1, 4] -> [5, 6, 1, 4, 3]
|
[5, 6, 1, 4]
|
[5, 6, 1, 4, 3]
|
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:
[4, 3, 2, 6, 7, 9, 0, 1] -> ?
Answer:
|
[4, 3, 2, 6, 7, 9, 0, 1] -> [4, 3, 2, 1, 7, 9, 0, 6]
|
[4, 3, 2, 6, 7, 9, 0, 1]
|
[4, 3, 2, 1, 7, 9, 0, 6]
|
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:
[6, 7, 1, 2, 3, 5, 4, 0, 8, 9] -> ?
Answer:
|
[6, 7, 1, 2, 3, 5, 4, 0, 8, 9] -> [6, 7, 1, 2, 3, 5, 4, 0]
|
[6, 7, 1, 2, 3, 5, 4, 0, 8, 9]
|
[6, 7, 1, 2, 3, 5, 4, 0]
|
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:
[2, 58, 7, 6, 20, 8, 38] -> ?
Answer:
|
[2, 58, 7, 6, 20, 8, 38] -> [7]
|
[2, 58, 7, 6, 20, 8, 38]
|
[7]
|
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:
[2, 3, 26, 90, 1, 8, 3, 90] -> ?
Answer:
|
[2, 3, 26, 90, 1, 8, 3, 90] -> [2, 26, 90, 1, 8, 90]
|
[2, 3, 26, 90, 1, 8, 3, 90]
|
[2, 26, 90, 1, 8, 90]
|
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:
[20, 2, 50, 6, 20, 50, 2, 6, 2] -> ?
Answer:
|
[20, 2, 50, 6, 20, 50, 2, 6, 2] -> [20]
|
[20, 2, 50, 6, 20, 50, 2, 6, 2]
|
[20]
|
c031
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove whichever are equal: the two elements or the last two".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 0, 3, 8, 7, 1, 4, 9, 1, 5] -> [3, 8, 7, 1, 4, 9, 1, 5]
[0, 0, 1, 5, 7, 2, 9, 4, 3] -> [1, 5, 7, 2, 9, 4, 3]
[2, 2, 7, 9, 1, 5, 9, 8, 0, 3] -> [7, 9, 1, 5, 9, 8, 0, 3]
[3, 8, 5, 1, 1] -> [3, 8, 5]
[2, 1, 4, 3, 9, 0, 0] -> [2, 1, 4, 3, 9]
[9, 7, 9, 9] -> [9, 7]
[7, 7, 5, 1, 9, 4, 3, 2] -> [5, 1, 9, 4, 3, 2]
[8, 7, 7] -> [8]
Questions:
[0, 0, 2, 8, 9] -> ?
Answer:
|
[0, 0, 2, 8, 9] -> [2, 8, 9]
|
[0, 0, 2, 8, 9]
|
[2, 8, 9]
|
c002
|
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:
[5, 0] -> []
[3, 2, 9, 7] -> [9]
[8, 9, 2, 6, 5, 0] -> [2]
[9, 1] -> []
[0, 8, 4, 3, 2, 5, 9, 7, 6] -> [4]
[6] -> []
[8, 4, 5, 6, 7, 3, 2, 9] -> [5]
[6, 4, 8, 1, 7, 0, 2] -> [8]
Questions:
[6, 1] -> ?
Answer:
|
[6, 1] -> []
|
[6, 1]
|
[]
|
c069
|
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, 3, 4, 0], input, and [7, 2, 9, 1]".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 2, 7, 0, 5, 3] -> [9, 3, 4, 0, 4, 2, 7, 0, 5, 3, 7, 2, 9, 1]
[4, 0, 6, 5, 8] -> [9, 3, 4, 0, 4, 0, 6, 5, 8, 7, 2, 9, 1]
[9, 8] -> [9, 3, 4, 0, 9, 8, 7, 2, 9, 1]
[6, 5, 2, 0, 1, 7, 9] -> [9, 3, 4, 0, 6, 5, 2, 0, 1, 7, 9, 7, 2, 9, 1]
[5, 0, 8, 3] -> [9, 3, 4, 0, 5, 0, 8, 3, 7, 2, 9, 1]
[1, 6, 5] -> [9, 3, 4, 0, 1, 6, 5, 7, 2, 9, 1]
[7, 4, 6, 9, 3, 0, 8] -> [9, 3, 4, 0, 7, 4, 6, 9, 3, 0, 8, 7, 2, 9, 1]
[2, 8, 6, 7] -> [9, 3, 4, 0, 2, 8, 6, 7, 7, 2, 9, 1]
Questions:
[2, 1, 6] -> ?
Answer:
|
[2, 1, 6] -> [9, 3, 4, 0, 2, 1, 6, 7, 2, 9, 1]
|
[2, 1, 6]
|
[9, 3, 4, 0, 2, 1, 6, 7, 2, 9, 1]
|
c194
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse the input; prepend and append the input’s length".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 55, 4, 39, 1, 51, 46] -> [7, 46, 51, 1, 39, 4, 55, 3, 7]
[74, 1, 24] -> [3, 24, 1, 74, 3]
[94, 12, 6, 7, 43, 47, 25, 82] -> [8, 82, 25, 47, 43, 7, 6, 12, 94, 8]
[6] -> [1, 6, 1]
[53, 87, 5, 9, 88, 40, 7] -> [7, 7, 40, 88, 9, 5, 87, 53, 7]
[4, 5, 0, 23, 84, 83, 3, 44, 49, 36] -> [10, 36, 49, 44, 3, 83, 84, 23, 0, 5, 4, 10]
[92, 6, 0, 20, 3, 49, 85] -> [7, 85, 49, 3, 20, 0, 6, 92, 7]
[21] -> [1, 21, 1]
Questions:
[7, 31, 62, 17, 66, 85] -> ?
Answer:
|
[7, 31, 62, 17, 66, 85] -> [6, 85, 66, 17, 62, 31, 7, 6]
|
[7, 31, 62, 17, 66, 85]
|
[6, 85, 66, 17, 62, 31, 7, 6]
|
c184
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only odd elements with an even index".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 1, 48, 8, 2, 98, 13] -> [1]
[67, 78, 17, 5, 55, 3, 6, 4, 41] -> [5, 3]
[3, 5, 6, 21, 15, 77, 8, 86, 1] -> [5, 21, 77]
[90, 31, 8, 2, 7, 24] -> [31]
[9, 8, 0, 58, 21, 3] -> [3]
[5, 10, 96, 79, 1, 7, 9, 99] -> [79, 7, 99]
[9, 6, 2, 64, 15, 84] -> []
[3, 41, 7, 1, 11, 77, 9, 61, 4, 17] -> [41, 1, 77, 61, 17]
Questions:
[4, 9, 6, 1, 8, 16, 97] -> ?
Answer:
|
[4, 9, 6, 1, 8, 16, 97] -> [9, 1]
|
[4, 9, 6, 1, 8, 16, 97]
|
[9, 1]
|
c123
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but element N, N = last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[86, 60, 7, 60, 4] -> [60]
[7, 18, 93, 10, 5, 3, 4, 3] -> [93]
[7, 6, 63, 7, 6, 65, 0, 50, 3] -> [63]
[5, 56, 7, 2] -> [56]
[14, 42, 76, 79, 3] -> [76]
[78, 6, 17, 9, 58, 9, 3, 72, 47, 1] -> [78]
[34, 41, 2] -> [41]
[7, 3, 5, 48, 62, 54, 87, 5] -> [62]
Questions:
[62, 2, 2] -> ?
Answer:
|
[62, 2, 2] -> [2]
|
[62, 2, 2]
|
[2]
|
c009
|
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 6 elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 2] -> [7, 2]
[6, 2, 4, 9, 0, 8, 1] -> [6, 2, 4, 9, 0, 8]
[8, 6, 1, 7, 2, 5] -> [8, 6, 1, 7, 2, 5]
[1, 4, 0, 3, 6, 8, 9, 2] -> [1, 4, 0, 3, 6, 8]
[9] -> [9]
[6, 9, 4, 1] -> [6, 9, 4, 1]
[1, 7, 5, 2, 3, 0, 8] -> [1, 7, 5, 2, 3, 0]
[7, 8, 9, 2, 3] -> [7, 8, 9, 2, 3]
Questions:
[1, 0, 2, 9, 5, 3, 4, 6, 7, 8] -> ?
Answer:
|
[1, 0, 2, 9, 5, 3, 4, 6, 7, 8] -> [1, 0, 2, 9, 5, 3]
|
[1, 0, 2, 9, 5, 3, 4, 6, 7, 8]
|
[1, 0, 2, 9, 5, 3]
|
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:
[90, 48, 63, 9, 2, 3] -> ?
Answer:
|
[90, 48, 63, 9, 2, 3] -> [2, 3, 90, 63, 9, 48]
|
[90, 48, 63, 9, 2, 3]
|
[2, 3, 90, 63, 9, 48]
|
c061
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove all but the last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[0, 1, 3, 2] -> [2]
[7, 1, 3, 8, 0, 9, 5, 4, 2] -> [2]
[4, 0, 6, 7, 1, 8] -> [8]
[6, 7, 2, 9, 8, 3, 1, 0, 4, 5] -> [5]
[5, 1] -> [1]
[0, 8, 4, 5] -> [5]
[5, 2, 0, 8, 1, 4, 9, 6, 3, 7] -> [7]
[5, 8, 9, 6, 7] -> [7]
Questions:
[5, 4, 2, 9, 3] -> ?
Answer:
|
[5, 4, 2, 9, 3] -> [3]
|
[5, 4, 2, 9, 3]
|
[3]
|
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:
[39, 0, 5, 4, 9, 9, 6, 0, 4, 28] -> ?
Answer:
|
[39, 0, 5, 4, 9, 9, 6, 0, 4, 28] -> [4, 28]
|
[39, 0, 5, 4, 9, 9, 6, 0, 4, 28]
|
[4, 28]
|
c183
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "list the index minus 1 of elements 2 and following equal to element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 1, 6, 6, 6, 1, 1, 1, 6, 1] -> [1, 5, 6, 7, 9]
[2, 6, 9, 9, 6, 9, 6, 2, 2] -> [7, 8]
[2, 2, 2, 2, 2] -> [1, 2, 3, 4]
[3, 3, 63, 71, 3, 38, 38, 80, 6] -> [1, 4]
[5, 5, 2, 5, 2, 6, 2, 5, 5] -> [1, 3, 7, 8]
[10, 8, 10, 10, 10, 10, 8] -> [2, 3, 4, 5]
[85, 71, 6, 24, 85, 41, 53, 69, 8, 2] -> [4]
[2, 2, 2, 9, 2, 2, 9, 9, 9] -> [1, 2, 4, 5]
Questions:
[3, 3, 3, 3, 3, 3, 3, 3, 3, 3] -> ?
Answer:
|
[3, 3, 3, 3, 3, 3, 3, 3, 3, 3] -> [1, 2, 3, 4, 5, 6, 7, 8, 9]
|
[3, 3, 3, 3, 3, 3, 3, 3, 3, 3]
|
[1, 2, 3, 4, 5, 6, 7, 8, 9]
|
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:
[6, 0, 8, 3, 5, 2, 1, 9, 7, 4] -> ?
Answer:
|
[6, 0, 8, 3, 5, 2, 1, 9, 7, 4] -> [6, 0, 8, 3, 5, 2, 1, 9, 7, 4]
|
[6, 0, 8, 3, 5, 2, 1, 9, 7, 4]
|
[6, 0, 8, 3, 5, 2, 1, 9, 7, 4]
|
c134
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove elements M through N, M = element 1, N = element 2".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 9, 37, 37, 3, 9, 9, 3, 37, 2] -> [3, 9, 2]
[5, 7, 1, 10, 3, 18, 93, 2, 4] -> [5, 7, 1, 10, 2, 4]
[3, 6, 7, 30, 1, 29, 4, 3, 2, 2] -> [3, 6, 4, 3, 2, 2]
[2, 2, 41, 41, 2, 89] -> [2, 41, 41, 2, 89]
[6, 7, 23, 2, 1, 8, 4, 4] -> [6, 7, 23, 2, 1, 4]
[3, 7, 86, 3, 3, 7, 3, 86, 86, 86] -> [3, 7, 86, 86, 86]
[2, 5, 3, 3, 37, 2, 3, 3, 1, 94] -> [2, 2, 3, 3, 1, 94]
[6, 7, 1, 40, 5, 8, 27, 89] -> [6, 7, 1, 40, 5, 89]
Questions:
[2, 4, 4, 4, 6] -> ?
Answer:
|
[2, 4, 4, 4, 6] -> [2, 6]
|
[2, 4, 4, 4, 6]
|
[2, 6]
|
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, 2, 6, 7, 68, 3, 2, 80, 14, 94] -> ?
Answer:
|
[0, 2, 6, 7, 68, 3, 2, 80, 14, 94] -> [94, 14, 80, 2, 68, 6, 2, 0]
|
[0, 2, 6, 7, 68, 3, 2, 80, 14, 94]
|
[94, 14, 80, 2, 68, 6, 2, 0]
|
c162
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element, M, with 3 * M + 7".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 8, 1, 7, 1, 3] -> [31, 31, 10, 28, 10, 16]
[15, 6, 6, 16, 2, 6, 1, 6, 1, 15] -> [52, 25, 25, 55, 13, 25, 10, 25, 10, 52]
[6, 10, 0, 1, 10, 10, 8, 2, 6] -> [25, 37, 7, 10, 37, 37, 31, 13, 25]
[5, 4, 11, 16, 0, 8, 2] -> [22, 19, 40, 55, 7, 31, 13]
[4, 8, 10, 14, 0, 3, 6] -> [19, 31, 37, 49, 7, 16, 25]
[16, 9, 5, 4, 0, 7] -> [55, 34, 22, 19, 7, 28]
[1, 4, 4, 15, 1, 13, 1, 4, 7, 10] -> [10, 19, 19, 52, 10, 46, 10, 19, 28, 37]
[0, 9, 3, 3, 9, 9] -> [7, 34, 16, 16, 34, 34]
Questions:
[4, 5, 9, 0, 2, 0] -> ?
Answer:
|
[4, 5, 9, 0, 2, 0] -> [19, 22, 34, 7, 13, 7]
|
[4, 5, 9, 0, 2, 0]
|
[19, 22, 34, 7, 13, 7]
|
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, 3, 5, 8, 0, 2, 4, 1] -> ?
Answer:
|
[9, 3, 5, 8, 0, 2, 4, 1] -> [9, 5, 3, 5, 8, 0, 2, 4, 1]
|
[9, 3, 5, 8, 0, 2, 4, 1]
|
[9, 5, 3, 5, 8, 0, 2, 4, 1]
|
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:
[3, 8, 32, 9, 90, 1, 96, 34] -> ?
Answer:
|
[3, 8, 32, 9, 90, 1, 96, 34] -> [5]
|
[3, 8, 32, 9, 90, 1, 96, 34]
|
[5]
|
c235
|
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 up and down between elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 1, 5] -> [5, 4, 3, 2, 1, 2, 3, 4, 5]
[0, 1] -> [0, 1]
[51, 51, 51, 47] -> [51, 50, 49, 48, 47]
[63, 67, 63] -> [63, 64, 65, 66, 67, 66, 65, 64, 63]
[3, 1, 0, 1] -> [3, 2, 1, 0, 1]
[6, 9, 8, 1] -> [6, 7, 8, 9, 8, 7, 6, 5, 4, 3, 2, 1]
[5, 4, 5] -> [5, 4, 5]
[3, 4, 8, 9] -> [3, 4, 5, 6, 7, 8, 9]
Questions:
[2, 5, 1, 7] -> ?
Answer:
|
[2, 5, 1, 7] -> [2, 3, 4, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6, 7]
|
[2, 5, 1, 7]
|
[2, 3, 4, 5, 4, 3, 2, 1, 2, 3, 4, 5, 6, 7]
|
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:
[63, 76, 17, 0, 9, 30, 32, 8] -> ?
Answer:
|
[63, 76, 17, 0, 9, 30, 32, 8] -> [8, 32, 30, 9, 0, 0, 9, 17, 76, 63]
|
[63, 76, 17, 0, 9, 30, 32, 8]
|
[8, 32, 30, 9, 0, 0, 9, 17, 76, 63]
|
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:
[21, 29, 10, 4, 2, 9, 3, 1, 0, 6] -> ?
Answer:
|
[21, 29, 10, 4, 2, 9, 3, 1, 0, 6] -> [21, 50, 60, 64, 66, 75, 78, 79, 79, 85]
|
[21, 29, 10, 4, 2, 9, 3, 1, 0, 6]
|
[21, 50, 60, 64, 66, 75, 78, 79, 79, 85]
|
c152
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace each element with the product of its digits".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[81, 3] -> [8, 0]
[54, 72, 98, 65, 61, 7] -> [20, 14, 72, 30, 6, 0]
[48] -> [32]
[29, 3, 45] -> [18, 0, 20]
[90, 5, 68, 2] -> [0, 0, 48, 0]
[28, 25, 5, 6, 73, 0, 13, 33, 7, 4] -> [16, 10, 0, 0, 21, 0, 3, 9, 0, 0]
[0, 4, 87, 34, 7, 55, 2, 38, 85] -> [0, 0, 56, 12, 0, 25, 0, 24, 40]
[33, 38, 35, 41] -> [9, 24, 15, 4]
Questions:
[88, 72, 48] -> ?
Answer:
|
[88, 72, 48] -> [64, 14, 32]
|
[88, 72, 48]
|
[64, 14, 32]
|
c033
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "swap elements 1 and 4".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 0, 4, 6, 7, 3] -> [6, 0, 4, 2, 7, 3]
[1, 9, 3, 5] -> [5, 9, 3, 1]
[6, 8, 7, 4] -> [4, 8, 7, 6]
[1, 4, 0, 8, 6, 7, 3, 2, 5] -> [8, 4, 0, 1, 6, 7, 3, 2, 5]
[7, 2, 6, 8, 0, 5, 9] -> [8, 2, 6, 7, 0, 5, 9]
[7, 6, 2, 9, 1, 3, 5, 8, 0, 4] -> [9, 6, 2, 7, 1, 3, 5, 8, 0, 4]
[2, 7, 5, 0, 3] -> [0, 7, 5, 2, 3]
[7, 9, 4, 0, 3, 8, 1] -> [0, 9, 4, 7, 3, 8, 1]
Questions:
[6, 3, 0, 8, 4, 7, 5, 1, 2] -> ?
Answer:
|
[6, 3, 0, 8, 4, 7, 5, 1, 2] -> [8, 3, 0, 6, 4, 7, 5, 1, 2]
|
[6, 3, 0, 8, 4, 7, 5, 1, 2]
|
[8, 3, 0, 6, 4, 7, 5, 1, 2]
|
c131
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements whose tens digit is even".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[80, 0, 97, 50, 3, 6] -> [80, 0, 3, 6]
[9, 7, 75, 26, 3, 8, 82, 0, 94] -> [9, 7, 26, 3, 8, 82, 0]
[36, 7] -> [7]
[7, 66, 0, 6, 42, 9, 52, 80, 23, 81] -> [7, 66, 0, 6, 42, 9, 80, 23, 81]
[0, 69, 9, 10, 1, 72, 6, 37] -> [0, 69, 9, 1, 6]
[55, 88, 39, 1, 95, 85, 6] -> [88, 1, 85, 6]
[53, 74, 15, 74, 53, 0, 15, 53, 53] -> [0]
[4, 69, 7, 50] -> [4, 69, 7]
Questions:
[2, 27, 43, 90, 87, 9, 1, 33] -> ?
Answer:
|
[2, 27, 43, 90, 87, 9, 1, 33] -> [2, 27, 43, 87, 9, 1]
|
[2, 27, 43, 90, 87, 9, 1, 33]
|
[2, 27, 43, 87, 9, 1]
|
c037
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "append 3".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[4, 0, 2, 1, 3, 6, 8, 9, 7, 5] -> [4, 0, 2, 1, 3, 6, 8, 9, 7, 5, 3]
[2, 8, 7, 5, 0, 4, 6, 1] -> [2, 8, 7, 5, 0, 4, 6, 1, 3]
[5, 3, 4, 1, 9] -> [5, 3, 4, 1, 9, 3]
[6, 5, 0] -> [6, 5, 0, 3]
[7, 1] -> [7, 1, 3]
[4, 9, 1, 6, 0, 8] -> [4, 9, 1, 6, 0, 8, 3]
[0, 8] -> [0, 8, 3]
[3, 5, 7, 6, 9, 1, 8, 2, 4] -> [3, 5, 7, 6, 9, 1, 8, 2, 4, 3]
Questions:
[6, 8, 9, 1, 7, 2] -> ?
Answer:
|
[6, 8, 9, 1, 7, 2] -> [6, 8, 9, 1, 7, 2, 3]
|
[6, 8, 9, 1, 7, 2]
|
[6, 8, 9, 1, 7, 2, 3]
|
c134
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove elements M through N, M = element 1, N = element 2".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[3, 9, 37, 37, 3, 9, 9, 3, 37, 2] -> [3, 9, 2]
[5, 7, 1, 10, 3, 18, 93, 2, 4] -> [5, 7, 1, 10, 2, 4]
[3, 6, 7, 30, 1, 29, 4, 3, 2, 2] -> [3, 6, 4, 3, 2, 2]
[2, 2, 41, 41, 2, 89] -> [2, 41, 41, 2, 89]
[6, 7, 23, 2, 1, 8, 4, 4] -> [6, 7, 23, 2, 1, 4]
[3, 7, 86, 3, 3, 7, 3, 86, 86, 86] -> [3, 7, 86, 86, 86]
[2, 5, 3, 3, 37, 2, 3, 3, 1, 94] -> [2, 2, 3, 3, 1, 94]
[6, 7, 1, 40, 5, 8, 27, 89] -> [6, 7, 1, 40, 5, 89]
Questions:
[3, 7, 96, 8, 31, 8, 3] -> ?
Answer:
|
[3, 7, 96, 8, 31, 8, 3] -> [3, 7]
|
[3, 7, 96, 8, 31, 8, 3]
|
[3, 7]
|
c181
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse the order of elements with even indices".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 21, 89, 0, 63, 27, 9, 70] -> [8, 70, 89, 27, 63, 0, 9, 21]
[5, 90, 38, 87, 53, 40, 3, 42, 2, 36] -> [5, 36, 38, 42, 53, 40, 3, 87, 2, 90]
[98, 9, 79, 8, 74, 80] -> [98, 80, 79, 8, 74, 9]
[8, 2, 16, 36, 60, 14] -> [8, 14, 16, 36, 60, 2]
[7, 12, 8, 0, 83, 72] -> [7, 72, 8, 0, 83, 12]
[27, 32, 3, 5, 94, 80] -> [27, 80, 3, 5, 94, 32]
[4, 76, 47, 75, 1, 0, 2, 6] -> [4, 6, 47, 0, 1, 75, 2, 76]
[97, 45, 46, 7, 51, 47, 38, 3, 0, 92] -> [97, 92, 46, 3, 51, 47, 38, 7, 0, 45]
Questions:
[97, 9, 4, 78, 1, 2, 7, 4, 36, 38] -> ?
Answer:
|
[97, 9, 4, 78, 1, 2, 7, 4, 36, 38] -> [97, 38, 4, 4, 1, 2, 7, 78, 36, 9]
|
[97, 9, 4, 78, 1, 2, 7, 4, 36, 38]
|
[97, 38, 4, 4, 1, 2, 7, 78, 36, 9]
|
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] -> ?
Answer:
|
[0, 8] -> [8]
|
[0, 8]
|
[8]
|
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:
[1, 3, 1, 17, 7, 3, 7] -> ?
Answer:
|
[1, 3, 1, 17, 7, 3, 7] -> [2]
|
[1, 3, 1, 17, 7, 3, 7]
|
[2]
|
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:
[1, 4, 4] -> ?
Answer:
|
[1, 4, 4] -> [1, 4, 4, 4, 4, 4, 4, 4, 4]
|
[1, 4, 4]
|
[1, 4, 4, 4, 4, 4, 4, 4, 4]
|
c190
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "count by 2 from the first element to the last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[1, 84, 9] -> [1, 3, 5, 7, 9]
[44, 7, 45, 40, 2, 8, 3, 6, 26] -> []
[68, 1, 84] -> [68, 70, 72, 74, 76, 78, 80, 82, 84]
[62, 45, 75, 38, 97, 7, 2, 0] -> []
[3, 6, 7, 82, 70, 5] -> [3, 5]
[0, 99, 9, 0, 4, 4] -> [0, 2, 4]
[8, 56, 8, 42, 14] -> [8, 10, 12, 14]
[9, 13] -> [9, 11, 13]
Questions:
[2, 6, 6, 71, 71, 6] -> ?
Answer:
|
[2, 6, 6, 71, 71, 6] -> [2, 4, 6]
|
[2, 6, 6, 71, 71, 6]
|
[2, 4, 6]
|
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:
[6, 56, 3, 53, 6, 53, 56, 3, 6] -> ?
Answer:
|
[6, 56, 3, 53, 6, 53, 56, 3, 6] -> [6, 3, 56, 2, 3, 2, 53, 2]
|
[6, 56, 3, 53, 6, 53, 56, 3, 6]
|
[6, 3, 56, 2, 3, 2, 53, 2]
|
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:
[0, 29] -> ?
Answer:
|
[0, 29] -> [29, 0, 29]
|
[0, 29]
|
[29, 0, 29]
|
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:
[1, 5, 2, 0, 9, 8, 6, 3, 4, 7] -> ?
Answer:
|
[1, 5, 2, 0, 9, 8, 6, 3, 4, 7] -> [1, 5, 2, 0, 9, 8, 6, 3]
|
[1, 5, 2, 0, 9, 8, 6, 3, 4, 7]
|
[1, 5, 2, 0, 9, 8, 6, 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:
[5, 19, 6] -> ?
Answer:
|
[5, 19, 6] -> [0, 28, 2]
|
[5, 19, 6]
|
[0, 28, 2]
|
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:
[65, 2, 17] -> ?
Answer:
|
[65, 2, 17] -> [2, 17, 65]
|
[65, 2, 17]
|
[2, 17, 65]
|
c199
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "elements in ascending order, each preceded by its rank".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[93, 3, 51] -> [1, 3, 2, 51, 3, 93]
[7, 29, 9, 32, 74, 96, 95] -> [1, 7, 2, 9, 3, 29, 4, 32, 5, 74, 6, 95, 7, 96]
[41, 29, 82, 46, 33, 5] -> [1, 5, 2, 29, 3, 33, 4, 41, 5, 46, 6, 82]
[18, 14, 47, 15] -> [1, 14, 2, 15, 3, 18, 4, 47]
[] -> []
[54, 41, 21, 48, 14, 59] -> [1, 14, 2, 21, 3, 41, 4, 48, 5, 54, 6, 59]
[73, 75, 0, 15] -> [1, 0, 2, 15, 3, 73, 4, 75]
[12, 37, 38, 63, 60, 45, 72] -> [1, 12, 2, 37, 3, 38, 4, 45, 5, 60, 6, 63, 7, 72]
Questions:
[90, 34, 15] -> ?
Answer:
|
[90, 34, 15] -> [1, 15, 2, 34, 3, 90]
|
[90, 34, 15]
|
[1, 15, 2, 34, 3, 90]
|
c135
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "remove the first 7".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[2, 19, 7, 6, 9, 1, 5, 64, 47, 93] -> [2, 19, 6, 9, 1, 5, 64, 47, 93]
[1, 69, 1, 7, 17, 17, 10, 7, 3, 37] -> [1, 69, 1, 17, 17, 10, 7, 3, 37]
[7, 7, 9, 21, 7, 4, 4, 91, 0] -> [7, 9, 21, 7, 4, 4, 91, 0]
[5, 7, 39, 7] -> [5, 39, 7]
[7, 7, 7] -> [7, 7]
[7, 7, 6, 6, 88, 7, 8] -> [7, 6, 6, 88, 7, 8]
[7, 6, 9, 7] -> [6, 9, 7]
[5, 7, 7, 7] -> [5, 7, 7]
Questions:
[68, 3, 1, 51, 6, 7] -> ?
Answer:
|
[68, 3, 1, 51, 6, 7] -> [68, 3, 1, 51, 6]
|
[68, 3, 1, 51, 6, 7]
|
[68, 3, 1, 51, 6]
|
c019
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element 6 with a 3 if there is an element 6".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 4, 5, 6, 2, 0, 7, 8] -> [9, 4, 5, 6, 2, 3, 7, 8]
[4] -> [4]
[1, 6, 5, 4, 9, 8, 0, 3] -> [1, 6, 5, 4, 9, 3, 0, 3]
[0, 9, 1, 7, 3, 5] -> [0, 9, 1, 7, 3, 3]
[5, 7, 8, 2, 1, 4, 6] -> [5, 7, 8, 2, 1, 3, 6]
[7] -> [7]
[9, 2, 6, 0, 1, 4, 7] -> [9, 2, 6, 0, 1, 3, 7]
[8, 2, 0, 9] -> [8, 2, 0, 9]
Questions:
[4, 1, 7] -> ?
Answer:
|
[4, 1, 7] -> [4, 1, 7]
|
[4, 1, 7]
|
[4, 1, 7]
|
c242
|
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 unique element, append the second largest unique element, prepend the third largest unique element, append the fourth largest unique element, and so on".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[14, 9, 50, 48, 67, 64, 1, 6] -> [6, 14, 50, 67, 64, 48, 9, 1]
[2, 2, 2, 77, 77, 2, 77, 77, 2, 21] -> [21, 77, 2]
[42, 49, 56, 36, 88, 4, 5, 93, 0] -> [4, 36, 49, 88, 93, 56, 42, 5, 0]
[3, 5, 8, 56, 60, 1, 9, 79, 23, 92] -> [3, 8, 23, 60, 92, 79, 56, 9, 5, 1]
[13, 16, 47, 42, 94, 94] -> [16, 47, 94, 42, 13]
[3, 54, 93, 91, 75, 2, 90] -> [3, 75, 91, 93, 90, 54, 2]
[4, 1, 3, 73, 0, 41, 31, 18, 9] -> [1, 4, 18, 41, 73, 31, 9, 3, 0]
[85, 71, 71, 1, 71, 1, 71] -> [71, 85, 1]
Questions:
[9, 70, 98, 60, 46, 34] -> ?
Answer:
|
[9, 70, 98, 60, 46, 34] -> [34, 60, 98, 70, 46, 9]
|
[9, 70, 98, 60, 46, 34]
|
[34, 60, 98, 70, 46, 9]
|
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:
[4, 69, 96, 1, 67, 8, 3] -> ?
Answer:
|
[4, 69, 96, 1, 67, 8, 3] -> [4, 69, 1, 67, 8, 3]
|
[4, 69, 96, 1, 67, 8, 3]
|
[4, 69, 1, 67, 8, 3]
|
c117
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "left-rotate by three elements".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 3, 5, 85, 89] -> [85, 89, 9, 3, 5]
[9, 7, 69, 88, 6] -> [88, 6, 9, 7, 69]
[7, 1, 4, 26, 58, 72, 2, 5, 67, 8] -> [26, 58, 72, 2, 5, 67, 8, 7, 1, 4]
[14, 6, 83, 86, 8, 61, 18] -> [86, 8, 61, 18, 14, 6, 83]
[70, 5, 77, 54] -> [54, 70, 5, 77]
[64, 0, 42, 49, 75, 48] -> [49, 75, 48, 64, 0, 42]
[2, 45, 32, 14] -> [14, 2, 45, 32]
[4, 9, 3, 2, 57] -> [2, 57, 4, 9, 3]
Questions:
[38, 25, 95] -> ?
Answer:
|
[38, 25, 95] -> [38, 25, 95]
|
[38, 25, 95]
|
[38, 25, 95]
|
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:
[74, 18, 86, 15, 99, 1, 3] -> ?
Answer:
|
[74, 18, 86, 15, 99, 1, 3] -> [1, 3, 15, 86]
|
[74, 18, 86, 15, 99, 1, 3]
|
[1, 3, 15, 86]
|
c022
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "insert a 5 as element 2".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[6, 0, 3] -> [6, 5, 0, 3]
[1, 4] -> [1, 5, 4]
[5, 6, 3, 9, 2, 0] -> [5, 5, 6, 3, 9, 2, 0]
[6, 8, 9, 0, 5, 3, 2, 4, 7, 1] -> [6, 5, 8, 9, 0, 5, 3, 2, 4, 7, 1]
[7, 2, 4, 8, 9, 3, 5, 1, 6, 0] -> [7, 5, 2, 4, 8, 9, 3, 5, 1, 6, 0]
[1, 7, 3, 0] -> [1, 5, 7, 3, 0]
[1, 7, 6, 8, 4] -> [1, 5, 7, 6, 8, 4]
[4, 8, 3] -> [4, 5, 8, 3]
Questions:
[6, 7, 2, 8, 1, 3, 9, 4, 0] -> ?
Answer:
|
[6, 7, 2, 8, 1, 3, 9, 4, 0] -> [6, 5, 7, 2, 8, 1, 3, 9, 4, 0]
|
[6, 7, 2, 8, 1, 3, 9, 4, 0]
|
[6, 5, 7, 2, 8, 1, 3, 9, 4, 0]
|
c157
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "each element followed by 0 if even or 1 if odd, in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[31, 46, 19, 20, 59, 8, 0] -> [31, 1, 46, 0, 19, 1, 20, 0, 59, 1, 8, 0, 0, 0]
[63, 41, 83, 75, 7, 40, 3] -> [63, 1, 41, 1, 83, 1, 75, 1, 7, 1, 40, 0, 3, 1]
[72, 24, 4, 3, 99, 74] -> [72, 0, 24, 0, 4, 0, 3, 1, 99, 1, 74, 0]
[8, 5, 39, 96, 30, 92, 2] -> [8, 0, 5, 1, 39, 1, 96, 0, 30, 0, 92, 0, 2, 0]
[3, 71, 9, 7, 26, 56] -> [3, 1, 71, 1, 9, 1, 7, 1, 26, 0, 56, 0]
[68, 5, 48, 72, 4, 90, 73] -> [68, 0, 5, 1, 48, 0, 72, 0, 4, 0, 90, 0, 73, 1]
[85, 21, 9, 3, 27, 78, 5] -> [85, 1, 21, 1, 9, 1, 3, 1, 27, 1, 78, 0, 5, 1]
[70, 1, 28, 0, 7, 17] -> [70, 0, 1, 1, 28, 0, 0, 0, 7, 1, 17, 1]
Questions:
[11, 24] -> ?
Answer:
|
[11, 24] -> [11, 1, 24, 0]
|
[11, 24]
|
[11, 1, 24, 0]
|
c169
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "second largest element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[38, 4, 32, 9, 28, 96, 21, 59, 14, 8] -> [59]
[1, 37, 2, 59, 60, 71, 96, 30] -> [71]
[34, 9, 6, 42, 0, 8, 36] -> [36]
[66, 7, 31, 0, 8, 4, 2, 65, 1, 86] -> [66]
[1, 6, 3, 62, 2, 87] -> [62]
[69, 67, 75, 9, 66, 34, 4] -> [69]
[18, 40, 0, 58, 33, 5, 6] -> [40]
[62, 76, 4, 0, 42, 91, 8, 98] -> [91]
Questions:
[34, 5, 80, 99, 39, 48, 6, 4] -> ?
Answer:
|
[34, 5, 80, 99, 39, 48, 6, 4] -> [80]
|
[34, 5, 80, 99, 39, 48, 6, 4]
|
[80]
|
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:
[8, 95, 8, 95, 95, 95] -> ?
Answer:
|
[8, 95, 8, 95, 95, 95] -> [11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
|
[8, 95, 8, 95, 95, 95]
|
[11, 19, 24, 33, 42, 5, 82, 0, 64, 9]
|
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:
[5, 7, 0, 1, 8, 2, 9, 3, 6, 4] -> ?
Answer:
|
[5, 7, 0, 1, 8, 2, 9, 3, 6, 4] -> [5, 7, 0, 3, 8, 2, 9, 1, 6, 4]
|
[5, 7, 0, 1, 8, 2, 9, 3, 6, 4]
|
[5, 7, 0, 3, 8, 2, 9, 1, 6, 4]
|
c191
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "repeat each element N times, where N is its tens digit, in order of appearance".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[79] -> [79, 79, 79, 79, 79, 79, 79]
[34, 1, 55, 4, 6, 9, 5, 59] -> [34, 34, 34, 55, 55, 55, 55, 55, 59, 59, 59, 59, 59]
[1, 16, 10, 65, 7, 4, 0, 9, 72, 3] -> [16, 10, 65, 65, 65, 65, 65, 65, 72, 72, 72, 72, 72, 72, 72]
[8, 24, 2, 47, 9, 5, 77, 0, 14] -> [24, 24, 47, 47, 47, 47, 77, 77, 77, 77, 77, 77, 77, 14]
[57] -> [57, 57, 57, 57, 57]
[93, 62] -> [93, 93, 93, 93, 93, 93, 93, 93, 93, 62, 62, 62, 62, 62, 62]
[33, 53, 3, 1, 45, 8] -> [33, 33, 33, 53, 53, 53, 53, 53, 45, 45, 45, 45]
[7, 85, 5, 6] -> [85, 85, 85, 85, 85, 85, 85, 85]
Questions:
[7, 22, 5, 87, 6, 9, 27, 4, 0, 33] -> ?
Answer:
|
[7, 22, 5, 87, 6, 9, 27, 4, 0, 33] -> [22, 22, 87, 87, 87, 87, 87, 87, 87, 87, 27, 27, 33, 33, 33]
|
[7, 22, 5, 87, 6, 9, 27, 4, 0, 33]
|
[22, 22, 87, 87, 87, 87, 87, 87, 87, 87, 27, 27, 33, 33, 33]
|
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:
[5, 8, 4, 9, 6, 7, 0] -> ?
Answer:
|
[5, 8, 4, 9, 6, 7, 0] -> [8, 4, 9, 6, 7]
|
[5, 8, 4, 9, 6, 7, 0]
|
[8, 4, 9, 6, 7]
|
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:
[62, 54] -> ?
Answer:
|
[62, 54] -> [54, 56, 58, 60, 62]
|
[62, 54]
|
[54, 56, 58, 60, 62]
|
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:
[7, 7, 31, 98, 7, 98, 31] -> ?
Answer:
|
[7, 7, 31, 98, 7, 98, 31] -> [3]
|
[7, 7, 31, 98, 7, 98, 31]
|
[3]
|
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:
[8, 4, 0, 5, 7, 6] -> ?
Answer:
|
[8, 4, 0, 5, 7, 6] -> [4, 0, 5, 7]
|
[8, 4, 0, 5, 7, 6]
|
[4, 0, 5, 7]
|
c125
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements whose tens digit equals the tens digit of element 1".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[59, 82, 59, 82, 9, 83] -> [59, 59]
[7, 9, 26, 5, 70, 6, 3] -> [7, 9, 5, 6, 3]
[23, 80, 23, 2, 1, 5, 77, 91] -> [23, 23]
[1, 9, 7, 78, 6, 5, 8, 0, 3, 4] -> [1, 9, 7, 6, 5, 8, 0, 3, 4]
[78, 78, 78, 66, 78] -> [78, 78, 78, 78]
[5, 8, 40, 6, 90, 2] -> [5, 8, 6, 2]
[3, 5, 95, 21, 0, 2, 3] -> [3, 5, 0, 2, 3]
[45, 62, 43, 73, 45, 52] -> [45, 43, 45]
Questions:
[52, 0, 3, 54, 46, 47] -> ?
Answer:
|
[52, 0, 3, 54, 46, 47] -> [52, 54]
|
[52, 0, 3, 54, 46, 47]
|
[52, 54]
|
c175
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements larger than any preceding element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[9, 21, 43, 0, 26, 2, 66, 5, 32, 83] -> [9, 21, 43, 66, 83]
[1, 9, 60, 0, 60, 38] -> [1, 9, 60]
[6, 2, 4, 1, 7, 0, 67] -> [6, 7, 67]
[0, 7, 8, 1, 9, 7, 2, 0, 4, 53] -> [0, 7, 8, 9, 53]
[9, 52, 4, 51, 96, 12] -> [9, 52, 96]
[4, 22, 2, 6, 1, 8, 57, 85, 26] -> [4, 22, 57, 85]
[7, 56, 2, 97, 4, 9, 1] -> [7, 56, 97]
[1, 1, 7, 5, 63, 42] -> [1, 7, 63]
Questions:
[2, 4, 7, 1, 16, 8, 22, 71, 54, 3] -> ?
Answer:
|
[2, 4, 7, 1, 16, 8, 22, 71, 54, 3] -> [2, 4, 7, 16, 22, 71]
|
[2, 4, 7, 1, 16, 8, 22, 71, 54, 3]
|
[2, 4, 7, 16, 22, 71]
|
c181
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "reverse the order of elements with even indices".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[8, 21, 89, 0, 63, 27, 9, 70] -> [8, 70, 89, 27, 63, 0, 9, 21]
[5, 90, 38, 87, 53, 40, 3, 42, 2, 36] -> [5, 36, 38, 42, 53, 40, 3, 87, 2, 90]
[98, 9, 79, 8, 74, 80] -> [98, 80, 79, 8, 74, 9]
[8, 2, 16, 36, 60, 14] -> [8, 14, 16, 36, 60, 2]
[7, 12, 8, 0, 83, 72] -> [7, 72, 8, 0, 83, 12]
[27, 32, 3, 5, 94, 80] -> [27, 80, 3, 5, 94, 32]
[4, 76, 47, 75, 1, 0, 2, 6] -> [4, 6, 47, 0, 1, 75, 2, 76]
[97, 45, 46, 7, 51, 47, 38, 3, 0, 92] -> [97, 92, 46, 3, 51, 47, 38, 7, 0, 45]
Questions:
[14, 9, 2, 4, 5, 3, 43, 79, 8, 15] -> ?
Answer:
|
[14, 9, 2, 4, 5, 3, 43, 79, 8, 15] -> [14, 15, 2, 79, 5, 3, 43, 4, 8, 9]
|
[14, 9, 2, 4, 5, 3, 43, 79, 8, 15]
|
[14, 15, 2, 79, 5, 3, 43, 4, 8, 9]
|
c220
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "if input length is even, double each element, else triple it".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[27, 5, 5] -> [81, 15, 15]
[8, 7, 31] -> [24, 21, 93]
[4, 0, 5, 2, 1, 3, 6, 9, 33] -> [12, 0, 15, 6, 3, 9, 18, 27, 99]
[2, 6] -> [4, 12]
[42, 42] -> [84, 84]
[7, 0, 2, 5, 9, 1, 4] -> [21, 0, 6, 15, 27, 3, 12]
[14, 6] -> [28, 12]
[9, 5, 1, 49, 9, 15] -> [18, 10, 2, 98, 18, 30]
Questions:
[0, 2, 4] -> ?
Answer:
|
[0, 2, 4] -> [0, 6, 12]
|
[0, 2, 4]
|
[0, 6, 12]
|
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:
[79, 48, 79, 48, 99, 48] -> ?
Answer:
|
[79, 48, 79, 48, 99, 48] -> [79, 48, 99]
|
[79, 48, 79, 48, 99, 48]
|
[79, 48, 99]
|
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:
[95, 81, 82, 8, 5, 15, 67, 65, 7] -> ?
Answer:
|
[95, 81, 82, 8, 5, 15, 67, 65, 7] -> [8, 81, 82, 95, 5, 15, 67, 65, 7]
|
[95, 81, 82, 8, 5, 15, 67, 65, 7]
|
[8, 81, 82, 95, 5, 15, 67, 65, 7]
|
c203
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "the first M positive multiples of the smallest element, where M is the input’s length".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[31, 60, 47] -> [31, 62, 93]
[58, 33] -> [33, 66]
[2, 23, 94, 91, 14, 1, 36, 32, 97, 77] -> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
[8, 86, 35, 22, 9] -> [8, 16, 24, 32, 40]
[91] -> [91]
[22, 25] -> [22, 44]
[67, 46, 27] -> [27, 54, 81]
[56, 97, 24, 79] -> [24, 48, 72, 96]
Questions:
[47] -> ?
Answer:
|
[47] -> [47]
|
[47]
|
[47]
|
c118
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "left-rotate by N elements, N = last element".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[5, 0, 6, 2, 3] -> [2, 3, 5, 0, 6]
[23, 17, 1, 9, 7, 5, 2] -> [1, 9, 7, 5, 2, 23, 17]
[14, 61, 9, 17, 3] -> [17, 3, 14, 61, 9]
[64, 4, 1] -> [4, 1, 64]
[24, 37, 9, 5, 17, 1] -> [37, 9, 5, 17, 1, 24]
[75, 0, 45, 5, 3, 2] -> [45, 5, 3, 2, 75, 0]
[8, 9, 1] -> [9, 1, 8]
[42, 1, 42, 42, 18, 42, 1] -> [1, 42, 42, 18, 42, 1, 42]
Questions:
[17, 98, 5, 6, 3, 9, 2] -> ?
Answer:
|
[17, 98, 5, 6, 3, 9, 2] -> [5, 6, 3, 9, 2, 17, 98]
|
[17, 98, 5, 6, 3, 9, 2]
|
[5, 6, 3, 9, 2, 17, 98]
|
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:
[1, 7, 8, 4, 0, 6, 3, 9, 5, 2] -> ?
Answer:
|
[1, 7, 8, 4, 0, 6, 3, 9, 5, 2] -> [9, 6, 3, 8, 5, 1, 7, 8, 4, 0, 6, 3, 9, 5, 2]
|
[1, 7, 8, 4, 0, 6, 3, 9, 5, 2]
|
[9, 6, 3, 8, 5, 1, 7, 8, 4, 0, 6, 3, 9, 5, 2]
|
c242
|
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 unique element, append the second largest unique element, prepend the third largest unique element, append the fourth largest unique element, and so on".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[14, 9, 50, 48, 67, 64, 1, 6] -> [6, 14, 50, 67, 64, 48, 9, 1]
[2, 2, 2, 77, 77, 2, 77, 77, 2, 21] -> [21, 77, 2]
[42, 49, 56, 36, 88, 4, 5, 93, 0] -> [4, 36, 49, 88, 93, 56, 42, 5, 0]
[3, 5, 8, 56, 60, 1, 9, 79, 23, 92] -> [3, 8, 23, 60, 92, 79, 56, 9, 5, 1]
[13, 16, 47, 42, 94, 94] -> [16, 47, 94, 42, 13]
[3, 54, 93, 91, 75, 2, 90] -> [3, 75, 91, 93, 90, 54, 2]
[4, 1, 3, 73, 0, 41, 31, 18, 9] -> [1, 4, 18, 41, 73, 31, 9, 3, 0]
[85, 71, 71, 1, 71, 1, 71] -> [71, 85, 1]
Questions:
[75, 7, 8, 37, 32, 2] -> ?
Answer:
|
[75, 7, 8, 37, 32, 2] -> [7, 32, 75, 37, 8, 2]
|
[75, 7, 8, 37, 32, 2]
|
[7, 32, 75, 37, 8, 2]
|
c141
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "replace element M + 2 with N, M = element 1, N = element 2; remove elements 1 and 2".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[7, 5, 4, 40, 1, 79, 45, 62, 36] -> [4, 40, 1, 79, 45, 62, 5]
[51, 3, 1, 4, 23, 9, 34, 7] -> [1, 4, 23, 9, 34, 7]
[5, 1, 64, 2, 75, 20, 5, 2, 5] -> [64, 2, 75, 20, 1, 2, 5]
[3, 4, 7, 38, 6, 75, 5, 0, 91, 3] -> [7, 38, 4, 75, 5, 0, 91, 3]
[8, 0, 9, 38, 5, 4, 53, 2, 31, 57] -> [9, 38, 5, 4, 53, 2, 31, 0]
[5, 5, 91, 31, 31, 7, 31, 72] -> [91, 31, 31, 7, 5, 72]
[3, 3, 3, 3, 3, 3, 3] -> [3, 3, 3, 3, 3]
[6, 2, 57, 57, 57, 22, 57, 97, 2] -> [57, 57, 57, 22, 57, 2, 2]
Questions:
[7, 0, 5, 75, 67, 8, 2, 72, 96, 6] -> ?
Answer:
|
[7, 0, 5, 75, 67, 8, 2, 72, 96, 6] -> [5, 75, 67, 8, 2, 72, 0, 6]
|
[7, 0, 5, 75, 67, 8, 2, 72, 96, 6]
|
[5, 75, 67, 8, 2, 72, 0, 6]
|
c131
|
Infer and compute a function over lists of natural numbers for a given input given a predetermined set of examples The target function is "keep only elements whose tens digit is even".
|
Infer the principles behind the examples and then answer the questions. Answer should take the format [input] -> [output]
Examples:
[80, 0, 97, 50, 3, 6] -> [80, 0, 3, 6]
[9, 7, 75, 26, 3, 8, 82, 0, 94] -> [9, 7, 26, 3, 8, 82, 0]
[36, 7] -> [7]
[7, 66, 0, 6, 42, 9, 52, 80, 23, 81] -> [7, 66, 0, 6, 42, 9, 80, 23, 81]
[0, 69, 9, 10, 1, 72, 6, 37] -> [0, 69, 9, 1, 6]
[55, 88, 39, 1, 95, 85, 6] -> [88, 1, 85, 6]
[53, 74, 15, 74, 53, 0, 15, 53, 53] -> [0]
[4, 69, 7, 50] -> [4, 69, 7]
Questions:
[12, 13, 39, 55, 7, 48, 20, 10, 79, 17] -> ?
Answer:
|
[12, 13, 39, 55, 7, 48, 20, 10, 79, 17] -> [7, 48, 20]
|
[12, 13, 39, 55, 7, 48, 20, 10, 79, 17]
|
[7, 48, 20]
|
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:
[3, 89, 37, 73, 76, 58, 0, 87, 5] -> ?
Answer:
|
[3, 89, 37, 73, 76, 58, 0, 87, 5] -> [3, 87]
|
[3, 89, 37, 73, 76, 58, 0, 87, 5]
|
[3, 87]
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.