inputs stringlengths 224 712 | targets stringlengths 88 109 | _template_idx int64 0 9 | _task_source stringclasses 1
value | _task_name stringclasses 1
value | _template_type stringclasses 2
values |
|---|---|---|---|---|---|
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Let me give you an example: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
The answer to this example can be: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Here is why: The output list is reverse in order of the input.
OK. solve this:
[268, 160, 250, 148, 49, 293, 260, 198, 219, 64, 155, 57, 255, 121, 174, 54, 215, 184, 188, 66]
Answer: | [66, 188, 184, 215, 54, 174, 121, 255, 57, 155, 64, 219, 198, 260, 293, 49, 148, 250, 160, 268] | 8 | NIv2 | task1331_reverse_array | fs_opt |
Teacher: In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Reason: The output list is reverse in order of the input.
Now, solve this instance: [199, 70, 157, 90, 52, 151, 61, 200, 50, 202, 236, 133, 130, 216, 30, 136, 32, 253, 265, 161]
Student: | [161, 265, 253, 32, 136, 30, 216, 130, 133, 236, 202, 50, 200, 61, 151, 52, 90, 157, 70, 199] | 2 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
--------
Question: [197, 177, 47, 263, 26, 22, 42, 261, 138, 153, 46, 270, 143, 162, 194, 97, 297, 28, 169, 103]
Answer: [103, 169, 28, 297, 97, 194, 162, 143, 270, 46, 153, 138, 261, 42, 22, 26, 263, 47, 177, 197]
Question: [166, 235, 195, 146, 294, 71, 289, 94, 125, 210, 160, 60, 152, 183, 156, 163, 245, 118, 32, 172]
Answer: [172, 32, 118, 245, 163, 156, 183, 152, 60, 160, 210, 125, 94, 289, 71, 294, 146, 195, 235, 166]
Question: [180, 289, 268, 130, 38, 282, 113, 205, 192, 243, 57, 193, 44, 246, 145, 67, 240, 23, 157, 261]
Answer: | [261, 157, 23, 240, 67, 145, 246, 44, 193, 57, 243, 192, 205, 113, 282, 38, 130, 268, 289, 180]
| 7 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Input: Consider Input: [77, 150, 215, 129, 29, 81, 105, 285, 86, 187, 254, 279, 241, 210, 155, 232, 59, 87, 127, 276]
Output: [276, 127, 87, 59, 232, 155, 210, 241, 279, 254, 187, 86, 285, 105, 81, 29, 129, 215, 150, 77]
Input: Consider Input: [218, 275, 35, 78, 86, 13, 277, 198, 207, 29, 58, 179, 254, 155, 192, 187, 147, 282, 26, 136]
Output: [136, 26, 282, 147, 187, 192, 155, 254, 179, 58, 29, 207, 198, 277, 13, 86, 78, 35, 275, 218]
Input: Consider Input: [129, 20, 235, 116, 213, 152, 189, 233, 281, 45, 115, 170, 138, 253, 113, 106, 126, 202, 261, 297]
| Output: [297, 261, 202, 126, 106, 113, 253, 138, 170, 115, 45, 281, 233, 189, 152, 213, 116, 235, 20, 129]
| 2 | NIv2 | task1331_reverse_array | fs_opt |
Teacher: In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Reason: The output list is reverse in order of the input.
Now, solve this instance: [59, 115, 176, 47, 172, 108, 63, 219, 169, 121, 62, 75, 123, 119, 40, 283, 256, 15, 84, 237]
Student: | [237, 84, 15, 256, 283, 40, 119, 123, 75, 62, 121, 169, 219, 63, 108, 172, 47, 176, 115, 59] | 2 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Ex Input:
[91, 44, 219, 45, 48, 155, 18, 281, 43, 178, 264, 197, 90, 104, 76, 23, 276, 36, 164, 223]
Ex Output:
[223, 164, 36, 276, 23, 76, 104, 90, 197, 264, 178, 43, 281, 18, 155, 48, 45, 219, 44, 91]
Ex Input:
[293, 228, 260, 141, 270, 72, 102, 181, 263, 60, 200, 126, 26, 158, 40, 38, 257, 172, 195, 225]
Ex Output:
[225, 195, 172, 257, 38, 40, 158, 26, 126, 200, 60, 263, 181, 102, 72, 270, 141, 260, 228, 293]
Ex Input:
[51, 185, 60, 36, 261, 41, 71, 161, 290, 30, 151, 243, 137, 158, 91, 268, 124, 19, 119, 128]
Ex Output:
| [128, 119, 19, 124, 268, 91, 158, 137, 243, 151, 30, 290, 161, 71, 41, 261, 36, 60, 185, 51]
| 1 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[Q]: [119, 242, 215, 16, 247, 71, 58, 56, 185, 270, 41, 191, 66, 244, 121, 93, 208, 130, 261, 219]
[A]: [219, 261, 130, 208, 93, 121, 244, 66, 191, 41, 270, 185, 56, 58, 71, 247, 16, 215, 242, 119]
[Q]: [92, 254, 33, 226, 22, 16, 52, 135, 227, 108, 23, 65, 194, 46, 263, 276, 172, 44, 268, 90]
[A]: [90, 268, 44, 172, 276, 263, 46, 194, 65, 23, 108, 227, 135, 52, 16, 22, 226, 33, 254, 92]
[Q]: [114, 289, 99, 41, 19, 56, 51, 283, 124, 275, 15, 68, 22, 71, 263, 219, 66, 180, 173, 285]
[A]: | [285, 173, 180, 66, 219, 263, 71, 22, 68, 15, 275, 124, 283, 51, 56, 19, 41, 99, 289, 114]
| 5 | NIv2 | task1331_reverse_array | fs_opt |
Teacher: In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Reason: The output list is reverse in order of the input.
Now, solve this instance: [87, 12, 228, 242, 59, 127, 222, 57, 237, 210, 90, 196, 287, 160, 129, 183, 138, 72, 149, 227]
Student: | [227, 149, 72, 138, 183, 129, 160, 287, 196, 90, 210, 237, 57, 222, 127, 59, 242, 228, 12, 87] | 2 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
One example: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Solution is here: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Explanation: The output list is reverse in order of the input.
Now, solve this: [211, 55, 184, 186, 148, 52, 134, 153, 248, 159, 220, 136, 194, 255, 245, 58, 10, 287, 290, 206]
Solution: | [206, 290, 287, 10, 58, 245, 255, 194, 136, 220, 159, 248, 153, 134, 52, 148, 186, 184, 55, 211] | 6 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Example Input: [184, 23, 205, 125, 103, 230, 203, 30, 130, 89, 44, 87, 198, 129, 210, 167, 84, 234, 186, 195]
Example Output: [195, 186, 234, 84, 167, 210, 129, 198, 87, 44, 89, 130, 30, 203, 230, 103, 125, 205, 23, 184]
Example Input: [268, 125, 171, 158, 46, 49, 141, 277, 36, 233, 214, 175, 96, 286, 44, 285, 115, 69, 81, 64]
Example Output: [64, 81, 69, 115, 285, 44, 286, 96, 175, 214, 233, 36, 277, 141, 49, 46, 158, 171, 125, 268]
Example Input: [258, 248, 280, 273, 120, 124, 264, 35, 24, 267, 45, 57, 181, 77, 96, 178, 265, 145, 242, 21]
Example Output: | [21, 242, 145, 265, 178, 96, 77, 181, 57, 45, 267, 24, 35, 264, 124, 120, 273, 280, 248, 258]
| 3 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Input: Consider Input: [63, 76, 57, 230, 240, 65, 19, 286, 118, 29, 43, 295, 33, 142, 266, 44, 46, 170, 72, 83]
Output: [83, 72, 170, 46, 44, 266, 142, 33, 295, 43, 29, 118, 286, 19, 65, 240, 230, 57, 76, 63]
Input: Consider Input: [253, 133, 235, 282, 116, 161, 12, 269, 99, 128, 11, 262, 52, 59, 246, 86, 110, 94, 296, 53]
Output: [53, 296, 94, 110, 86, 246, 59, 52, 262, 11, 128, 99, 269, 12, 161, 116, 282, 235, 133, 253]
Input: Consider Input: [211, 55, 184, 186, 148, 52, 134, 153, 248, 159, 220, 136, 194, 255, 245, 58, 10, 287, 290, 206]
| Output: [206, 290, 287, 10, 58, 245, 255, 194, 136, 220, 159, 248, 153, 134, 52, 148, 186, 184, 55, 211]
| 2 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Q: [137, 142, 19, 28, 13, 173, 210, 179, 288, 294, 170, 279, 252, 261, 48, 214, 53, 147, 85, 25]
A: [25, 85, 147, 53, 214, 48, 261, 252, 279, 170, 294, 288, 179, 210, 173, 13, 28, 19, 142, 137]
****
Q: [58, 180, 263, 89, 99, 82, 39, 285, 126, 190, 274, 116, 220, 282, 95, 255, 125, 223, 271, 132]
A: [132, 271, 223, 125, 255, 95, 282, 220, 116, 274, 190, 126, 285, 39, 82, 99, 89, 263, 180, 58]
****
Q: [172, 118, 255, 178, 272, 298, 92, 296, 120, 250, 207, 190, 237, 135, 19, 63, 17, 39, 150, 238]
A: | [238, 150, 39, 17, 63, 19, 135, 237, 190, 207, 250, 120, 296, 92, 298, 272, 178, 255, 118, 172]
****
| 4 | NIv2 | task1331_reverse_array | fs_opt |
TASK DEFINITION: In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
PROBLEM: [166, 235, 195, 146, 294, 71, 289, 94, 125, 210, 160, 60, 152, 183, 156, 163, 245, 118, 32, 172]
SOLUTION: [172, 32, 118, 245, 163, 156, 183, 152, 60, 160, 210, 125, 94, 289, 71, 294, 146, 195, 235, 166]
PROBLEM: [95, 267, 150, 162, 129, 89, 213, 45, 135, 52, 108, 85, 264, 233, 189, 53, 219, 71, 211, 266]
SOLUTION: [266, 211, 71, 219, 53, 189, 233, 264, 85, 108, 52, 135, 45, 213, 89, 129, 162, 150, 267, 95]
PROBLEM: [205, 154, 256, 22, 202, 95, 138, 72, 139, 39, 276, 184, 286, 237, 111, 89, 227, 66, 49, 167]
SOLUTION: | [167, 49, 66, 227, 89, 111, 237, 286, 184, 276, 39, 139, 72, 138, 95, 202, 22, 256, 154, 205]
| 8 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Example Input: [119, 242, 215, 16, 247, 71, 58, 56, 185, 270, 41, 191, 66, 244, 121, 93, 208, 130, 261, 219]
Example Output: [219, 261, 130, 208, 93, 121, 244, 66, 191, 41, 270, 185, 56, 58, 71, 247, 16, 215, 242, 119]
Example Input: [172, 85, 169, 15, 229, 74, 237, 62, 247, 198, 38, 141, 59, 115, 227, 189, 195, 110, 173, 26]
Example Output: [26, 173, 110, 195, 189, 227, 115, 59, 141, 38, 198, 247, 62, 237, 74, 229, 15, 169, 85, 172]
Example Input: [293, 228, 260, 141, 270, 72, 102, 181, 263, 60, 200, 126, 26, 158, 40, 38, 257, 172, 195, 225]
Example Output: | [225, 195, 172, 257, 38, 40, 158, 26, 126, 200, 60, 263, 181, 102, 72, 270, 141, 260, 228, 293]
| 3 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[EX Q]: [184, 33, 241, 168, 257, 88, 210, 31, 222, 152, 118, 125, 122, 205, 60, 186, 238, 117, 23, 267]
[EX A]: [267, 23, 117, 238, 186, 60, 205, 122, 125, 118, 152, 222, 31, 210, 88, 257, 168, 241, 33, 184]
[EX Q]: [246, 98, 41, 43, 157, 103, 60, 188, 76, 96, 130, 263, 235, 201, 90, 34, 207, 298, 141, 151]
[EX A]: [151, 141, 298, 207, 34, 90, 201, 235, 263, 130, 96, 76, 188, 60, 103, 157, 43, 41, 98, 246]
[EX Q]: [134, 30, 140, 233, 151, 47, 129, 265, 10, 103, 180, 203, 213, 243, 270, 34, 23, 144, 88, 22]
[EX A]: | [22, 88, 144, 23, 34, 270, 243, 213, 203, 180, 103, 10, 265, 129, 47, 151, 233, 140, 30, 134]
| 6 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
--------
Question: [134, 254, 57, 157, 264, 107, 245, 30, 68, 46, 25, 243, 41, 66, 281, 189, 23, 224, 18, 99]
Answer: [99, 18, 224, 23, 189, 281, 66, 41, 243, 25, 46, 68, 30, 245, 107, 264, 157, 57, 254, 134]
Question: [128, 201, 123, 211, 42, 117, 150, 262, 103, 101, 124, 69, 24, 59, 215, 20, 283, 196, 28, 246]
Answer: [246, 28, 196, 283, 20, 215, 59, 24, 69, 124, 101, 103, 262, 150, 117, 42, 211, 123, 201, 128]
Question: [55, 72, 121, 249, 90, 255, 288, 213, 181, 290, 299, 57, 211, 244, 94, 231, 278, 287, 204, 103]
Answer: | [103, 204, 287, 278, 231, 94, 244, 211, 57, 299, 290, 181, 213, 288, 255, 90, 249, 121, 72, 55]
| 7 | NIv2 | task1331_reverse_array | fs_opt |
Teacher: In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Reason: The output list is reverse in order of the input.
Now, solve this instance: [73, 40, 12, 173, 190, 151, 130, 133, 37, 50, 160, 71, 189, 218, 59, 35, 282, 250, 293, 192]
Student: | [192, 293, 250, 282, 35, 59, 218, 189, 71, 160, 50, 37, 133, 130, 151, 190, 173, 12, 40, 73] | 2 | NIv2 | task1331_reverse_array | fs_opt |
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Why? The output list is reverse in order of the input.
New input: [260, 34, 239, 237, 179, 76, 11, 207, 101, 274, 202, 51, 292, 149, 259, 262, 230, 94, 217, 135]
Solution: | [135, 217, 94, 230, 262, 259, 149, 292, 51, 202, 274, 101, 207, 11, 76, 179, 237, 239, 34, 260] | 0 | NIv2 | task1331_reverse_array | fs_opt |
Part 1. Definition
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Part 2. Example
[139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Answer: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Explanation: The output list is reverse in order of the input.
Part 3. Exercise
[69, 109, 49, 74, 242, 231, 80, 182, 134, 290, 194, 159, 54, 68, 155, 246, 124, 15, 294, 126]
Answer: | [126, 294, 15, 124, 246, 155, 68, 54, 159, 194, 290, 134, 182, 80, 231, 242, 74, 49, 109, 69] | 7 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Example: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Example solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Example explanation: The output list is reverse in order of the input.
Problem: [48, 214, 78, 71, 210, 13, 128, 202, 105, 142, 207, 244, 103, 163, 182, 262, 112, 83, 69, 233]
| Solution: [233, 69, 83, 112, 262, 182, 163, 103, 244, 207, 142, 105, 202, 128, 13, 210, 71, 78, 214, 48] | 5 | NIv2 | task1331_reverse_array | fs_opt |
Part 1. Definition
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Part 2. Example
[139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Answer: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Explanation: The output list is reverse in order of the input.
Part 3. Exercise
[149, 122, 212, 196, 82, 285, 53, 283, 114, 175, 182, 160, 173, 276, 163, 25, 259, 295, 218, 142]
Answer: | [142, 218, 295, 259, 25, 163, 276, 173, 160, 182, 175, 114, 283, 53, 285, 82, 196, 212, 122, 149] | 7 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[85, 66, 102, 161, 163, 83, 19, 36, 215, 181, 176, 287, 283, 294, 170, 108, 77, 52, 159, 12]
[12, 159, 52, 77, 108, 170, 294, 283, 287, 176, 181, 215, 36, 19, 83, 163, 161, 102, 66, 85]
[133, 42, 223, 22, 246, 11, 114, 256, 23, 201, 198, 112, 249, 277, 111, 62, 86, 140, 196, 245]
[245, 196, 140, 86, 62, 111, 277, 249, 112, 198, 201, 23, 256, 114, 11, 246, 22, 223, 42, 133]
[149, 122, 212, 196, 82, 285, 53, 283, 114, 175, 182, 160, 173, 276, 163, 25, 259, 295, 218, 142]
| [142, 218, 295, 259, 25, 163, 276, 173, 160, 182, 175, 114, 283, 53, 285, 82, 196, 212, 122, 149]
| 0 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Ex Input:
[134, 30, 140, 233, 151, 47, 129, 265, 10, 103, 180, 203, 213, 243, 270, 34, 23, 144, 88, 22]
Ex Output:
[22, 88, 144, 23, 34, 270, 243, 213, 203, 180, 103, 10, 265, 129, 47, 151, 233, 140, 30, 134]
Ex Input:
[96, 16, 100, 249, 179, 137, 56, 109, 183, 231, 17, 134, 82, 174, 272, 213, 268, 182, 92, 206]
Ex Output:
[206, 92, 182, 268, 213, 272, 174, 82, 134, 17, 231, 183, 109, 56, 137, 179, 249, 100, 16, 96]
Ex Input:
[268, 294, 133, 38, 58, 108, 66, 205, 83, 97, 92, 233, 102, 113, 245, 201, 267, 69, 212, 164]
Ex Output:
| [164, 212, 69, 267, 201, 245, 113, 102, 233, 92, 97, 83, 205, 66, 108, 58, 38, 133, 294, 268]
| 1 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Let me give you an example: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
The answer to this example can be: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Here is why: The output list is reverse in order of the input.
OK. solve this:
[229, 134, 31, 248, 81, 50, 197, 29, 127, 12, 260, 261, 164, 199, 275, 42, 142, 231, 215, 195]
Answer: | [195, 215, 231, 142, 42, 275, 199, 164, 261, 260, 12, 127, 29, 197, 50, 81, 248, 31, 134, 229] | 8 | NIv2 | task1331_reverse_array | fs_opt |
Part 1. Definition
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Part 2. Example
[139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Answer: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Explanation: The output list is reverse in order of the input.
Part 3. Exercise
[214, 13, 84, 197, 12, 158, 189, 109, 88, 221, 275, 183, 289, 94, 113, 299, 105, 222, 204, 35]
Answer: | [35, 204, 222, 105, 299, 113, 94, 289, 183, 275, 221, 88, 109, 189, 158, 12, 197, 84, 13, 214] | 7 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Example Input: [258, 12, 120, 233, 64, 287, 179, 29, 130, 36, 47, 73, 195, 57, 234, 60, 140, 65, 201, 106]
Example Output: [106, 201, 65, 140, 60, 234, 57, 195, 73, 47, 36, 130, 29, 179, 287, 64, 233, 120, 12, 258]
Example Input: [257, 26, 47, 226, 91, 238, 266, 180, 171, 217, 207, 104, 231, 94, 208, 89, 219, 190, 53, 69]
Example Output: [69, 53, 190, 219, 89, 208, 94, 231, 104, 207, 217, 171, 180, 266, 238, 91, 226, 47, 26, 257]
Example Input: [233, 151, 47, 130, 90, 142, 195, 30, 124, 230, 96, 24, 199, 215, 147, 134, 77, 49, 102, 178]
Example Output: | [178, 102, 49, 77, 134, 147, 215, 199, 24, 96, 230, 124, 30, 195, 142, 90, 130, 47, 151, 233]
| 3 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
One example is below.
Q: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
A: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Rationale: The output list is reverse in order of the input.
Q: [68, 53, 120, 136, 268, 237, 269, 92, 298, 238, 296, 153, 40, 130, 34, 207, 105, 132, 114, 156]
A: | [156, 114, 132, 105, 207, 34, 130, 40, 153, 296, 238, 298, 92, 269, 237, 268, 136, 120, 53, 68] | 9 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[Q]: [268, 293, 226, 137, 124, 275, 44, 222, 62, 116, 11, 173, 154, 146, 231, 141, 289, 82, 94, 22]
[A]: [22, 94, 82, 289, 141, 231, 146, 154, 173, 11, 116, 62, 222, 44, 275, 124, 137, 226, 293, 268]
[Q]: [18, 195, 31, 175, 44, 49, 180, 88, 76, 21, 58, 110, 193, 117, 274, 299, 279, 13, 223, 93]
[A]: [93, 223, 13, 279, 299, 274, 117, 193, 110, 58, 21, 76, 88, 180, 49, 44, 175, 31, 195, 18]
[Q]: [133, 16, 295, 72, 202, 90, 46, 281, 131, 103, 12, 67, 262, 268, 218, 118, 287, 197, 253, 99]
[A]: | [99, 253, 197, 287, 118, 218, 268, 262, 67, 12, 103, 131, 281, 46, 90, 202, 72, 295, 16, 133]
| 5 | NIv2 | task1331_reverse_array | fs_opt |
instruction:
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
question:
[131, 278, 275, 139, 60, 277, 241, 13, 201, 209, 217, 244, 251, 198, 64, 127, 291, 274, 255, 101]
answer:
[101, 255, 274, 291, 127, 64, 198, 251, 244, 217, 209, 201, 13, 241, 277, 60, 139, 275, 278, 131]
question:
[285, 99, 114, 258, 13, 109, 93, 55, 273, 240, 86, 194, 75, 57, 172, 47, 175, 280, 65, 60]
answer:
[60, 65, 280, 175, 47, 172, 57, 75, 194, 86, 240, 273, 55, 93, 109, 13, 258, 114, 99, 285]
question:
[68, 53, 120, 136, 268, 237, 269, 92, 298, 238, 296, 153, 40, 130, 34, 207, 105, 132, 114, 156]
answer:
| [156, 114, 132, 105, 207, 34, 130, 40, 153, 296, 238, 298, 92, 269, 237, 268, 136, 120, 53, 68]
| 9 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
--------
Question: [166, 235, 195, 146, 294, 71, 289, 94, 125, 210, 160, 60, 152, 183, 156, 163, 245, 118, 32, 172]
Answer: [172, 32, 118, 245, 163, 156, 183, 152, 60, 160, 210, 125, 94, 289, 71, 294, 146, 195, 235, 166]
Question: [179, 108, 245, 52, 285, 127, 233, 204, 251, 294, 151, 69, 236, 24, 23, 77, 250, 123, 58, 177]
Answer: [177, 58, 123, 250, 77, 23, 24, 236, 69, 151, 294, 251, 204, 233, 127, 285, 52, 245, 108, 179]
Question: [71, 86, 211, 284, 168, 16, 255, 164, 13, 202, 182, 254, 204, 289, 67, 135, 103, 143, 212, 82]
Answer: | [82, 212, 143, 103, 135, 67, 289, 204, 254, 182, 202, 13, 164, 255, 16, 168, 284, 211, 86, 71]
| 7 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Q: [92, 254, 33, 226, 22, 16, 52, 135, 227, 108, 23, 65, 194, 46, 263, 276, 172, 44, 268, 90]
A: [90, 268, 44, 172, 276, 263, 46, 194, 65, 23, 108, 227, 135, 52, 16, 22, 226, 33, 254, 92]
****
Q: [294, 22, 55, 168, 50, 203, 193, 186, 173, 125, 246, 31, 283, 130, 133, 25, 26, 249, 91, 211]
A: [211, 91, 249, 26, 25, 133, 130, 283, 31, 246, 125, 173, 186, 193, 203, 50, 168, 55, 22, 294]
****
Q: [268, 125, 171, 158, 46, 49, 141, 277, 36, 233, 214, 175, 96, 286, 44, 285, 115, 69, 81, 64]
A: | [64, 81, 69, 115, 285, 44, 286, 96, 175, 214, 233, 36, 277, 141, 49, 46, 158, 171, 125, 268]
****
| 4 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Input: Consider Input: [86, 277, 129, 134, 282, 165, 50, 154, 17, 132, 61, 261, 292, 42, 258, 34, 73, 193, 205, 240]
Output: [240, 205, 193, 73, 34, 258, 42, 292, 261, 61, 132, 17, 154, 50, 165, 282, 134, 129, 277, 86]
Input: Consider Input: [291, 71, 197, 105, 82, 41, 285, 188, 159, 240, 182, 70, 252, 146, 239, 111, 278, 149, 32, 193]
Output: [193, 32, 149, 278, 111, 239, 146, 252, 70, 182, 240, 159, 188, 285, 41, 82, 105, 197, 71, 291]
Input: Consider Input: [258, 25, 236, 285, 26, 159, 69, 293, 290, 169, 288, 88, 237, 260, 209, 253, 156, 74, 220, 70]
| Output: [70, 220, 74, 156, 253, 209, 260, 237, 88, 288, 169, 290, 293, 69, 159, 26, 285, 236, 25, 258]
| 2 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Q: [223, 299, 205, 211, 87, 149, 168, 93, 122, 158, 265, 120, 138, 197, 146, 210, 114, 171, 176, 266]
A: [266, 176, 171, 114, 210, 146, 197, 138, 120, 265, 158, 122, 93, 168, 149, 87, 211, 205, 299, 223]
****
Q: [285, 99, 114, 258, 13, 109, 93, 55, 273, 240, 86, 194, 75, 57, 172, 47, 175, 280, 65, 60]
A: [60, 65, 280, 175, 47, 172, 57, 75, 194, 86, 240, 273, 55, 93, 109, 13, 258, 114, 99, 285]
****
Q: [211, 115, 98, 88, 291, 240, 131, 91, 109, 167, 185, 188, 142, 65, 186, 209, 125, 265, 270, 117]
A: | [117, 270, 265, 125, 209, 186, 65, 142, 188, 185, 167, 109, 91, 131, 240, 291, 88, 98, 115, 211]
****
| 4 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
One example is below.
Q: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
A: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Rationale: The output list is reverse in order of the input.
Q: [77, 96, 193, 248, 104, 64, 247, 42, 223, 59, 69, 43, 188, 93, 120, 51, 52, 155, 138, 114]
A: | [114, 138, 155, 52, 51, 120, 93, 188, 43, 69, 59, 223, 42, 247, 64, 104, 248, 193, 96, 77] | 9 | NIv2 | task1331_reverse_array | fs_opt |
You will be given a definition of a task first, then an example. Follow the example to solve a new instance of the task.
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Why? The output list is reverse in order of the input.
New input: [273, 194, 84, 53, 75, 49, 54, 275, 183, 285, 268, 33, 266, 192, 146, 41, 280, 238, 86, 187]
Solution: | [187, 86, 238, 280, 41, 146, 192, 266, 33, 268, 285, 183, 275, 54, 49, 75, 53, 84, 194, 273] | 0 | NIv2 | task1331_reverse_array | fs_opt |
instruction:
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
question:
[237, 198, 66, 288, 187, 284, 23, 244, 45, 282, 218, 264, 20, 68, 17, 188, 39, 221, 11, 229]
answer:
[229, 11, 221, 39, 188, 17, 68, 20, 264, 218, 282, 45, 244, 23, 284, 187, 288, 66, 198, 237]
question:
[180, 289, 268, 130, 38, 282, 113, 205, 192, 243, 57, 193, 44, 246, 145, 67, 240, 23, 157, 261]
answer:
[261, 157, 23, 240, 67, 145, 246, 44, 193, 57, 243, 192, 205, 113, 282, 38, 130, 268, 289, 180]
question:
[273, 194, 84, 53, 75, 49, 54, 275, 183, 285, 268, 33, 266, 192, 146, 41, 280, 238, 86, 187]
answer:
| [187, 86, 238, 280, 41, 146, 192, 266, 33, 268, 285, 183, 275, 54, 49, 75, 53, 84, 194, 273]
| 9 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Example Input: [146, 36, 275, 89, 291, 197, 75, 184, 231, 143, 23, 270, 70, 271, 206, 119, 134, 111, 224, 93]
Example Output: [93, 224, 111, 134, 119, 206, 271, 70, 270, 23, 143, 231, 184, 75, 197, 291, 89, 275, 36, 146]
Example Input: [133, 107, 298, 126, 297, 119, 100, 96, 48, 56, 82, 95, 284, 285, 23, 93, 261, 188, 195, 85]
Example Output: [85, 195, 188, 261, 93, 23, 285, 284, 95, 82, 56, 48, 96, 100, 119, 297, 126, 298, 107, 133]
Example Input: [237, 198, 66, 288, 187, 284, 23, 244, 45, 282, 218, 264, 20, 68, 17, 188, 39, 221, 11, 229]
Example Output: | [229, 11, 221, 39, 188, 17, 68, 20, 264, 218, 282, 45, 244, 23, 284, 187, 288, 66, 198, 237]
| 3 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
--------
Question: [181, 183, 38, 277, 30, 10, 165, 23, 145, 52, 172, 224, 151, 166, 260, 85, 121, 234, 288, 72]
Answer: [72, 288, 234, 121, 85, 260, 166, 151, 224, 172, 52, 145, 23, 165, 10, 30, 277, 38, 183, 181]
Question: [71, 216, 52, 25, 162, 73, 26, 142, 213, 97, 250, 90, 185, 299, 160, 248, 108, 92, 297, 87]
Answer: [87, 297, 92, 108, 248, 160, 299, 185, 90, 250, 97, 213, 142, 26, 73, 162, 25, 52, 216, 71]
Question: [19, 213, 173, 69, 272, 222, 121, 243, 45, 125, 23, 65, 280, 80, 64, 210, 176, 116, 44, 279]
Answer: | [279, 44, 116, 176, 210, 64, 80, 280, 65, 23, 125, 45, 243, 121, 222, 272, 69, 173, 213, 19]
| 7 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Example: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Example solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Example explanation: The output list is reverse in order of the input.
Problem: [181, 183, 38, 277, 30, 10, 165, 23, 145, 52, 172, 224, 151, 166, 260, 85, 121, 234, 288, 72]
| Solution: [72, 288, 234, 121, 85, 260, 166, 151, 224, 172, 52, 145, 23, 165, 10, 30, 277, 38, 183, 181] | 5 | NIv2 | task1331_reverse_array | fs_opt |
instruction:
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
question:
[219, 249, 140, 62, 41, 144, 94, 135, 160, 196, 84, 118, 57, 163, 226, 12, 251, 167, 127, 257]
answer:
[257, 127, 167, 251, 12, 226, 163, 57, 118, 84, 196, 160, 135, 94, 144, 41, 62, 140, 249, 219]
question:
[233, 151, 47, 130, 90, 142, 195, 30, 124, 230, 96, 24, 199, 215, 147, 134, 77, 49, 102, 178]
answer:
[178, 102, 49, 77, 134, 147, 215, 199, 24, 96, 230, 124, 30, 195, 142, 90, 130, 47, 151, 233]
question:
[181, 183, 38, 277, 30, 10, 165, 23, 145, 52, 172, 224, 151, 166, 260, 85, 121, 234, 288, 72]
answer:
| [72, 288, 234, 121, 85, 260, 166, 151, 224, 172, 52, 145, 23, 165, 10, 30, 277, 38, 183, 181]
| 9 | NIv2 | task1331_reverse_array | fs_opt |
instruction:
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
question:
[293, 165, 94, 76, 214, 73, 11, 256, 185, 66, 27, 90, 81, 173, 95, 150, 260, 154, 142, 163]
answer:
[163, 142, 154, 260, 150, 95, 173, 81, 90, 27, 66, 185, 256, 11, 73, 214, 76, 94, 165, 293]
question:
[59, 115, 176, 47, 172, 108, 63, 219, 169, 121, 62, 75, 123, 119, 40, 283, 256, 15, 84, 237]
answer:
[237, 84, 15, 256, 283, 40, 119, 123, 75, 62, 121, 169, 219, 63, 108, 172, 47, 176, 115, 59]
question:
[63, 76, 57, 230, 240, 65, 19, 286, 118, 29, 43, 295, 33, 142, 266, 44, 46, 170, 72, 83]
answer:
| [83, 72, 170, 46, 44, 266, 142, 33, 295, 43, 29, 118, 286, 19, 65, 240, 230, 57, 76, 63]
| 9 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
One example is below.
Q: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
A: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Rationale: The output list is reverse in order of the input.
Q: [219, 249, 140, 62, 41, 144, 94, 135, 160, 196, 84, 118, 57, 163, 226, 12, 251, 167, 127, 257]
A: | [257, 127, 167, 251, 12, 226, 163, 57, 118, 84, 196, 160, 135, 94, 144, 41, 62, 140, 249, 219] | 9 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Q: [119, 242, 215, 16, 247, 71, 58, 56, 185, 270, 41, 191, 66, 244, 121, 93, 208, 130, 261, 219]
A: [219, 261, 130, 208, 93, 121, 244, 66, 191, 41, 270, 185, 56, 58, 71, 247, 16, 215, 242, 119]
****
Q: [291, 71, 197, 105, 82, 41, 285, 188, 159, 240, 182, 70, 252, 146, 239, 111, 278, 149, 32, 193]
A: [193, 32, 149, 278, 111, 239, 146, 252, 70, 182, 240, 159, 188, 285, 41, 82, 105, 197, 71, 291]
****
Q: [219, 249, 140, 62, 41, 144, 94, 135, 160, 196, 84, 118, 57, 163, 226, 12, 251, 167, 127, 257]
A: | [257, 127, 167, 251, 12, 226, 163, 57, 118, 84, 196, 160, 135, 94, 144, 41, 62, 140, 249, 219]
****
| 4 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[257, 26, 47, 226, 91, 238, 266, 180, 171, 217, 207, 104, 231, 94, 208, 89, 219, 190, 53, 69]
[69, 53, 190, 219, 89, 208, 94, 231, 104, 207, 217, 171, 180, 266, 238, 91, 226, 47, 26, 257]
[119, 242, 215, 16, 247, 71, 58, 56, 185, 270, 41, 191, 66, 244, 121, 93, 208, 130, 261, 219]
[219, 261, 130, 208, 93, 121, 244, 66, 191, 41, 270, 185, 56, 58, 71, 247, 16, 215, 242, 119]
[167, 261, 105, 262, 254, 15, 174, 275, 84, 134, 173, 255, 23, 278, 180, 159, 233, 117, 272, 153]
| [153, 272, 117, 233, 159, 180, 278, 23, 255, 173, 134, 84, 275, 174, 15, 254, 262, 105, 261, 167]
| 0 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Example input: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Example output: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Example explanation: The output list is reverse in order of the input.
Q: [31, 78, 191, 181, 194, 267, 178, 93, 117, 52, 125, 60, 15, 75, 133, 72, 288, 130, 188, 249]
A: | [249, 188, 130, 288, 72, 133, 75, 15, 60, 125, 52, 117, 93, 178, 267, 194, 181, 191, 78, 31] | 3 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[EX Q]: [257, 226, 80, 56, 35, 77, 10, 75, 262, 250, 273, 172, 92, 198, 88, 158, 110, 177, 244, 12]
[EX A]: [12, 244, 177, 110, 158, 88, 198, 92, 172, 273, 250, 262, 75, 10, 77, 35, 56, 80, 226, 257]
[EX Q]: [162, 188, 118, 216, 116, 157, 214, 256, 69, 22, 286, 25, 114, 195, 45, 102, 196, 90, 232, 55]
[EX A]: [55, 232, 90, 196, 102, 45, 195, 114, 25, 286, 22, 69, 256, 214, 157, 116, 216, 118, 188, 162]
[EX Q]: [26, 113, 69, 89, 92, 262, 144, 294, 134, 99, 224, 160, 270, 36, 156, 290, 172, 147, 202, 76]
[EX A]: | [76, 202, 147, 172, 290, 156, 36, 270, 160, 224, 99, 134, 294, 144, 262, 92, 89, 69, 113, 26]
| 6 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
One example is below.
Q: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
A: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Rationale: The output list is reverse in order of the input.
Q: [19, 31, 273, 174, 15, 18, 153, 231, 269, 50, 261, 93, 85, 175, 283, 255, 124, 156, 270, 91]
A: | [91, 270, 156, 124, 255, 283, 175, 85, 93, 261, 50, 269, 231, 153, 18, 15, 174, 273, 31, 19] | 9 | NIv2 | task1331_reverse_array | fs_opt |
TASK DEFINITION: In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
PROBLEM: [201, 282, 262, 177, 237, 283, 55, 106, 154, 119, 90, 83, 67, 269, 66, 133, 242, 290, 121, 233]
SOLUTION: [233, 121, 290, 242, 133, 66, 269, 67, 83, 90, 119, 154, 106, 55, 283, 237, 177, 262, 282, 201]
PROBLEM: [28, 144, 138, 95, 268, 12, 37, 157, 26, 148, 49, 249, 70, 79, 83, 262, 178, 198, 123, 155]
SOLUTION: [155, 123, 198, 178, 262, 83, 79, 70, 249, 49, 148, 26, 157, 37, 12, 268, 95, 138, 144, 28]
PROBLEM: [233, 69, 123, 240, 276, 11, 158, 224, 54, 256, 161, 273, 226, 272, 137, 221, 17, 288, 143, 19]
SOLUTION: | [19, 143, 288, 17, 221, 137, 272, 226, 273, 161, 256, 54, 224, 158, 11, 276, 240, 123, 69, 233]
| 8 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[63, 76, 57, 230, 240, 65, 19, 286, 118, 29, 43, 295, 33, 142, 266, 44, 46, 170, 72, 83]
[83, 72, 170, 46, 44, 266, 142, 33, 295, 43, 29, 118, 286, 19, 65, 240, 230, 57, 76, 63]
[246, 98, 41, 43, 157, 103, 60, 188, 76, 96, 130, 263, 235, 201, 90, 34, 207, 298, 141, 151]
[151, 141, 298, 207, 34, 90, 201, 235, 263, 130, 96, 76, 188, 60, 103, 157, 43, 41, 98, 246]
[237, 94, 85, 242, 93, 67, 250, 277, 270, 157, 205, 20, 285, 185, 196, 181, 57, 234, 229, 92]
| [92, 229, 234, 57, 181, 196, 185, 285, 20, 205, 157, 270, 277, 250, 67, 93, 242, 85, 94, 237]
| 0 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[EX Q]: [202, 259, 123, 252, 250, 103, 40, 55, 26, 91, 275, 200, 150, 62, 25, 187, 285, 126, 166, 172]
[EX A]: [172, 166, 126, 285, 187, 25, 62, 150, 200, 275, 91, 26, 55, 40, 103, 250, 252, 123, 259, 202]
[EX Q]: [47, 167, 74, 53, 192, 228, 68, 10, 72, 84, 291, 175, 227, 54, 275, 106, 181, 213, 117, 249]
[EX A]: [249, 117, 213, 181, 106, 275, 54, 227, 175, 291, 84, 72, 10, 68, 228, 192, 53, 74, 167, 47]
[EX Q]: [96, 103, 14, 224, 287, 218, 299, 188, 115, 286, 48, 148, 154, 58, 234, 81, 91, 19, 238, 22]
[EX A]: | [22, 238, 19, 91, 81, 234, 58, 154, 148, 48, 286, 115, 188, 299, 218, 287, 224, 14, 103, 96]
| 6 | NIv2 | task1331_reverse_array | fs_opt |
Detailed Instructions: In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
See one example below:
Problem: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Explanation: The output list is reverse in order of the input.
Problem: [218, 275, 35, 78, 86, 13, 277, 198, 207, 29, 58, 179, 254, 155, 192, 187, 147, 282, 26, 136]
Solution: | [136, 26, 282, 147, 187, 192, 155, 254, 179, 58, 29, 207, 198, 277, 13, 86, 78, 35, 275, 218] | 4 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Q: [289, 259, 58, 38, 193, 54, 39, 154, 133, 47, 247, 67, 120, 250, 113, 176, 266, 144, 21, 108]
A: [108, 21, 144, 266, 176, 113, 250, 120, 67, 247, 47, 133, 154, 39, 54, 193, 38, 58, 259, 289]
****
Q: [244, 83, 151, 170, 116, 111, 235, 76, 181, 272, 163, 294, 100, 223, 165, 140, 138, 77, 172, 68]
A: [68, 172, 77, 138, 140, 165, 223, 100, 294, 163, 272, 181, 76, 235, 111, 116, 170, 151, 83, 244]
****
Q: [203, 15, 281, 272, 124, 119, 167, 55, 150, 34, 149, 273, 242, 48, 147, 19, 77, 230, 158, 246]
A: | [246, 158, 230, 77, 19, 147, 48, 242, 273, 149, 34, 150, 55, 167, 119, 124, 272, 281, 15, 203]
****
| 4 | NIv2 | task1331_reverse_array | fs_opt |
Part 1. Definition
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Part 2. Example
[139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Answer: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Explanation: The output list is reverse in order of the input.
Part 3. Exercise
[244, 40, 60, 18, 22, 110, 204, 189, 158, 223, 49, 277, 182, 98, 250, 14, 72, 120, 173, 62]
Answer: | [62, 173, 120, 72, 14, 250, 98, 182, 277, 49, 223, 158, 189, 204, 110, 22, 18, 60, 40, 244] | 7 | NIv2 | task1331_reverse_array | fs_opt |
TASK DEFINITION: In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
PROBLEM: [63, 76, 57, 230, 240, 65, 19, 286, 118, 29, 43, 295, 33, 142, 266, 44, 46, 170, 72, 83]
SOLUTION: [83, 72, 170, 46, 44, 266, 142, 33, 295, 43, 29, 118, 286, 19, 65, 240, 230, 57, 76, 63]
PROBLEM: [289, 259, 58, 38, 193, 54, 39, 154, 133, 47, 247, 67, 120, 250, 113, 176, 266, 144, 21, 108]
SOLUTION: [108, 21, 144, 266, 176, 113, 250, 120, 67, 247, 47, 133, 154, 39, 54, 193, 38, 58, 259, 289]
PROBLEM: [244, 40, 60, 18, 22, 110, 204, 189, 158, 223, 49, 277, 182, 98, 250, 14, 72, 120, 173, 62]
SOLUTION: | [62, 173, 120, 72, 14, 250, 98, 182, 277, 49, 223, 158, 189, 204, 110, 22, 18, 60, 40, 244]
| 8 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Q: [211, 55, 184, 186, 148, 52, 134, 153, 248, 159, 220, 136, 194, 255, 245, 58, 10, 287, 290, 206]
A: [206, 290, 287, 10, 58, 245, 255, 194, 136, 220, 159, 248, 153, 134, 52, 148, 186, 184, 55, 211]
****
Q: [105, 115, 176, 26, 117, 80, 250, 142, 113, 210, 44, 119, 55, 59, 254, 29, 137, 178, 288, 48]
A: [48, 288, 178, 137, 29, 254, 59, 55, 119, 44, 210, 113, 142, 250, 80, 117, 26, 176, 115, 105]
****
Q: [175, 114, 88, 15, 199, 68, 21, 198, 215, 197, 101, 286, 245, 258, 176, 48, 257, 117, 16, 172]
A: | [172, 16, 117, 257, 48, 176, 258, 245, 286, 101, 197, 215, 198, 21, 68, 199, 15, 88, 114, 175]
****
| 4 | NIv2 | task1331_reverse_array | fs_opt |
Detailed Instructions: In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
See one example below:
Problem: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Explanation: The output list is reverse in order of the input.
Problem: [298, 118, 236, 48, 53, 97, 196, 51, 164, 11, 296, 16, 32, 193, 257, 66, 82, 227, 188, 201]
Solution: | [201, 188, 227, 82, 66, 257, 193, 32, 16, 296, 11, 164, 51, 196, 97, 53, 48, 236, 118, 298] | 4 | NIv2 | task1331_reverse_array | fs_opt |
Teacher: In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Reason: The output list is reverse in order of the input.
Now, solve this instance: [253, 133, 235, 282, 116, 161, 12, 269, 99, 128, 11, 262, 52, 59, 246, 86, 110, 94, 296, 53]
Student: | [53, 296, 94, 110, 86, 246, 59, 52, 262, 11, 128, 99, 269, 12, 161, 116, 282, 235, 133, 253] | 2 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Example Input: [218, 275, 35, 78, 86, 13, 277, 198, 207, 29, 58, 179, 254, 155, 192, 187, 147, 282, 26, 136]
Example Output: [136, 26, 282, 147, 187, 192, 155, 254, 179, 58, 29, 207, 198, 277, 13, 86, 78, 35, 275, 218]
Example Input: [28, 144, 138, 95, 268, 12, 37, 157, 26, 148, 49, 249, 70, 79, 83, 262, 178, 198, 123, 155]
Example Output: [155, 123, 198, 178, 262, 83, 79, 70, 249, 49, 148, 26, 157, 37, 12, 268, 95, 138, 144, 28]
Example Input: [146, 36, 275, 89, 291, 197, 75, 184, 231, 143, 23, 270, 70, 271, 206, 119, 134, 111, 224, 93]
Example Output: | [93, 224, 111, 134, 119, 206, 271, 70, 270, 23, 143, 231, 184, 75, 197, 291, 89, 275, 36, 146]
| 3 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[EX Q]: [205, 154, 256, 22, 202, 95, 138, 72, 139, 39, 276, 184, 286, 237, 111, 89, 227, 66, 49, 167]
[EX A]: [167, 49, 66, 227, 89, 111, 237, 286, 184, 276, 39, 139, 72, 138, 95, 202, 22, 256, 154, 205]
[EX Q]: [96, 280, 81, 84, 250, 31, 44, 28, 145, 40, 231, 239, 121, 172, 99, 128, 268, 114, 47, 33]
[EX A]: [33, 47, 114, 268, 128, 99, 172, 121, 239, 231, 40, 145, 28, 44, 31, 250, 84, 81, 280, 96]
[EX Q]: [205, 278, 104, 258, 127, 160, 71, 159, 125, 270, 246, 62, 36, 136, 85, 261, 21, 38, 13, 277]
[EX A]: | [277, 13, 38, 21, 261, 85, 136, 36, 62, 246, 270, 125, 159, 71, 160, 127, 258, 104, 278, 205]
| 6 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
One example: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Solution is here: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Explanation: The output list is reverse in order of the input.
Now, solve this: [64, 222, 135, 186, 136, 251, 25, 260, 173, 105, 81, 60, 242, 20, 259, 297, 198, 172, 175, 296]
Solution: | [296, 175, 172, 198, 297, 259, 20, 242, 60, 81, 105, 173, 260, 25, 251, 136, 186, 135, 222, 64] | 6 | NIv2 | task1331_reverse_array | fs_opt |
Given the task definition, example input & output, solve the new input case.
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Example: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Output: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
The output list is reverse in order of the input.
New input case for you: [63, 161, 153, 194, 281, 209, 223, 193, 293, 285, 254, 270, 260, 36, 22, 54, 226, 12, 247, 249]
Output: | [249, 247, 12, 226, 54, 22, 36, 260, 270, 254, 285, 293, 193, 223, 209, 281, 194, 153, 161, 63] | 1 | NIv2 | task1331_reverse_array | fs_opt |
Part 1. Definition
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Part 2. Example
[139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Answer: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Explanation: The output list is reverse in order of the input.
Part 3. Exercise
[77, 150, 215, 129, 29, 81, 105, 285, 86, 187, 254, 279, 241, 210, 155, 232, 59, 87, 127, 276]
Answer: | [276, 127, 87, 59, 232, 155, 210, 241, 279, 254, 187, 86, 285, 105, 81, 29, 129, 215, 150, 77] | 7 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Example: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Example solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Example explanation: The output list is reverse in order of the input.
Problem: [76, 64, 143, 96, 267, 148, 211, 21, 42, 52, 122, 275, 136, 230, 70, 14, 222, 160, 214, 285]
| Solution: [285, 214, 160, 222, 14, 70, 230, 136, 275, 122, 52, 42, 21, 211, 148, 267, 96, 143, 64, 76] | 5 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Input: Consider Input: [241, 171, 125, 245, 141, 74, 156, 23, 168, 275, 223, 57, 78, 284, 66, 55, 173, 240, 232, 239]
Output: [239, 232, 240, 173, 55, 66, 284, 78, 57, 223, 275, 168, 23, 156, 74, 141, 245, 125, 171, 241]
Input: Consider Input: [162, 52, 10, 227, 254, 99, 240, 170, 47, 194, 149, 274, 196, 284, 116, 290, 291, 158, 266, 262]
Output: [262, 266, 158, 291, 290, 116, 284, 196, 274, 149, 194, 47, 170, 240, 99, 254, 227, 10, 52, 162]
Input: Consider Input: [91, 44, 219, 45, 48, 155, 18, 281, 43, 178, 264, 197, 90, 104, 76, 23, 276, 36, 164, 223]
| Output: [223, 164, 36, 276, 23, 76, 104, 90, 197, 264, 178, 43, 281, 18, 155, 48, 45, 219, 44, 91]
| 2 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Q: [80, 51, 228, 205, 182, 117, 209, 86, 60, 273, 174, 227, 132, 199, 142, 223, 226, 191, 229, 140]
A: [140, 229, 191, 226, 223, 142, 199, 132, 227, 174, 273, 60, 86, 209, 117, 182, 205, 228, 51, 80]
****
Q: [177, 54, 15, 291, 29, 201, 111, 22, 82, 237, 62, 214, 297, 80, 92, 71, 187, 178, 137, 83]
A: [83, 137, 178, 187, 71, 92, 80, 297, 214, 62, 237, 82, 22, 111, 201, 29, 291, 15, 54, 177]
****
Q: [12, 135, 192, 68, 219, 268, 52, 246, 86, 104, 235, 102, 213, 84, 271, 183, 31, 237, 96, 222]
A: | [222, 96, 237, 31, 183, 271, 84, 213, 102, 235, 104, 86, 246, 52, 268, 219, 68, 192, 135, 12]
****
| 4 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[EX Q]: [68, 53, 120, 136, 268, 237, 269, 92, 298, 238, 296, 153, 40, 130, 34, 207, 105, 132, 114, 156]
[EX A]: [156, 114, 132, 105, 207, 34, 130, 40, 153, 296, 238, 298, 92, 269, 237, 268, 136, 120, 53, 68]
[EX Q]: [205, 148, 261, 215, 94, 239, 234, 24, 140, 174, 16, 204, 77, 86, 111, 250, 114, 66, 291, 162]
[EX A]: [162, 291, 66, 114, 250, 111, 86, 77, 204, 16, 174, 140, 24, 234, 239, 94, 215, 261, 148, 205]
[EX Q]: [71, 216, 52, 25, 162, 73, 26, 142, 213, 97, 250, 90, 185, 299, 160, 248, 108, 92, 297, 87]
[EX A]: | [87, 297, 92, 108, 248, 160, 299, 185, 90, 250, 97, 213, 142, 26, 73, 162, 25, 52, 216, 71]
| 6 | NIv2 | task1331_reverse_array | fs_opt |
Teacher: In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Reason: The output list is reverse in order of the input.
Now, solve this instance: [184, 23, 205, 125, 103, 230, 203, 30, 130, 89, 44, 87, 198, 129, 210, 167, 84, 234, 186, 195]
Student: | [195, 186, 234, 84, 167, 210, 129, 198, 87, 44, 89, 130, 30, 203, 230, 103, 125, 205, 23, 184] | 2 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
--------
Question: [223, 299, 205, 211, 87, 149, 168, 93, 122, 158, 265, 120, 138, 197, 146, 210, 114, 171, 176, 266]
Answer: [266, 176, 171, 114, 210, 146, 197, 138, 120, 265, 158, 122, 93, 168, 149, 87, 211, 205, 299, 223]
Question: [129, 20, 235, 116, 213, 152, 189, 233, 281, 45, 115, 170, 138, 253, 113, 106, 126, 202, 261, 297]
Answer: [297, 261, 202, 126, 106, 113, 253, 138, 170, 115, 45, 281, 233, 189, 152, 213, 116, 235, 20, 129]
Question: [78, 184, 166, 44, 103, 100, 80, 66, 34, 237, 146, 134, 71, 137, 211, 279, 224, 123, 87, 208]
Answer: | [208, 87, 123, 224, 279, 211, 137, 71, 134, 146, 237, 34, 66, 80, 100, 103, 44, 166, 184, 78]
| 7 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Example Input: [293, 165, 94, 76, 214, 73, 11, 256, 185, 66, 27, 90, 81, 173, 95, 150, 260, 154, 142, 163]
Example Output: [163, 142, 154, 260, 150, 95, 173, 81, 90, 27, 66, 185, 256, 11, 73, 214, 76, 94, 165, 293]
Example Input: [121, 145, 53, 67, 65, 62, 154, 174, 180, 144, 57, 214, 186, 132, 152, 160, 216, 122, 34, 143]
Example Output: [143, 34, 122, 216, 160, 152, 132, 186, 214, 57, 144, 180, 174, 154, 62, 65, 67, 53, 145, 121]
Example Input: [110, 50, 140, 45, 273, 289, 156, 148, 211, 14, 229, 120, 115, 298, 49, 157, 46, 234, 53, 103]
Example Output: | [103, 53, 234, 46, 157, 49, 298, 115, 120, 229, 14, 211, 148, 156, 289, 273, 45, 140, 50, 110]
| 3 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Input: Consider Input: [59, 115, 176, 47, 172, 108, 63, 219, 169, 121, 62, 75, 123, 119, 40, 283, 256, 15, 84, 237]
Output: [237, 84, 15, 256, 283, 40, 119, 123, 75, 62, 121, 169, 219, 63, 108, 172, 47, 176, 115, 59]
Input: Consider Input: [233, 69, 123, 240, 276, 11, 158, 224, 54, 256, 161, 273, 226, 272, 137, 221, 17, 288, 143, 19]
Output: [19, 143, 288, 17, 221, 137, 272, 226, 273, 161, 256, 54, 224, 158, 11, 276, 240, 123, 69, 233]
Input: Consider Input: [62, 259, 243, 63, 52, 103, 298, 278, 290, 109, 102, 288, 287, 245, 196, 260, 229, 239, 69, 232]
| Output: [232, 69, 239, 229, 260, 196, 245, 287, 288, 102, 109, 290, 278, 298, 103, 52, 63, 243, 259, 62]
| 2 | NIv2 | task1331_reverse_array | fs_opt |
instruction:
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
question:
[199, 70, 157, 90, 52, 151, 61, 200, 50, 202, 236, 133, 130, 216, 30, 136, 32, 253, 265, 161]
answer:
[161, 265, 253, 32, 136, 30, 216, 130, 133, 236, 202, 50, 200, 61, 151, 52, 90, 157, 70, 199]
question:
[77, 96, 193, 248, 104, 64, 247, 42, 223, 59, 69, 43, 188, 93, 120, 51, 52, 155, 138, 114]
answer:
[114, 138, 155, 52, 51, 120, 93, 188, 43, 69, 59, 223, 42, 247, 64, 104, 248, 193, 96, 77]
question:
[133, 42, 223, 22, 246, 11, 114, 256, 23, 201, 198, 112, 249, 277, 111, 62, 86, 140, 196, 245]
answer:
| [245, 196, 140, 86, 62, 111, 277, 249, 112, 198, 201, 23, 256, 114, 11, 246, 22, 223, 42, 133]
| 9 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Example: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Example solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Example explanation: The output list is reverse in order of the input.
Problem: [99, 88, 286, 245, 94, 186, 228, 67, 22, 47, 89, 82, 60, 38, 259, 170, 166, 277, 37, 93]
| Solution: [93, 37, 277, 166, 170, 259, 38, 60, 82, 89, 47, 22, 67, 228, 186, 94, 245, 286, 88, 99] | 5 | NIv2 | task1331_reverse_array | fs_opt |
TASK DEFINITION: In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
PROBLEM: [211, 115, 98, 88, 291, 240, 131, 91, 109, 167, 185, 188, 142, 65, 186, 209, 125, 265, 270, 117]
SOLUTION: [117, 270, 265, 125, 209, 186, 65, 142, 188, 185, 167, 109, 91, 131, 240, 291, 88, 98, 115, 211]
PROBLEM: [96, 16, 100, 249, 179, 137, 56, 109, 183, 231, 17, 134, 82, 174, 272, 213, 268, 182, 92, 206]
SOLUTION: [206, 92, 182, 268, 213, 272, 174, 82, 134, 17, 231, 183, 109, 56, 137, 179, 249, 100, 16, 96]
PROBLEM: [218, 140, 47, 114, 169, 259, 40, 271, 147, 279, 137, 189, 160, 110, 18, 64, 226, 108, 213, 76]
SOLUTION: | [76, 213, 108, 226, 64, 18, 110, 160, 189, 137, 279, 147, 271, 40, 259, 169, 114, 47, 140, 218]
| 8 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[Q]: [51, 88, 251, 118, 154, 162, 110, 289, 32, 89, 167, 47, 292, 43, 49, 160, 70, 227, 221, 76]
[A]: [76, 221, 227, 70, 160, 49, 43, 292, 47, 167, 89, 32, 289, 110, 162, 154, 118, 251, 88, 51]
[Q]: [96, 280, 81, 84, 250, 31, 44, 28, 145, 40, 231, 239, 121, 172, 99, 128, 268, 114, 47, 33]
[A]: [33, 47, 114, 268, 128, 99, 172, 121, 239, 231, 40, 145, 28, 44, 31, 250, 84, 81, 280, 96]
[Q]: [23, 86, 276, 222, 73, 167, 51, 124, 107, 188, 230, 141, 284, 236, 253, 156, 10, 50, 142, 158]
[A]: | [158, 142, 50, 10, 156, 253, 236, 284, 141, 230, 188, 107, 124, 51, 167, 73, 222, 276, 86, 23]
| 5 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[Q]: [43, 68, 15, 178, 128, 58, 139, 106, 207, 131, 250, 192, 118, 206, 132, 32, 299, 95, 81, 119]
[A]: [119, 81, 95, 299, 32, 132, 206, 118, 192, 250, 131, 207, 106, 139, 58, 128, 178, 15, 68, 43]
[Q]: [32, 243, 69, 71, 261, 59, 73, 150, 112, 220, 85, 290, 176, 101, 192, 264, 90, 38, 120, 222]
[A]: [222, 120, 38, 90, 264, 192, 101, 176, 290, 85, 220, 112, 150, 73, 59, 261, 71, 69, 243, 32]
[Q]: [161, 259, 12, 65, 244, 267, 110, 292, 35, 97, 105, 14, 189, 151, 272, 168, 167, 206, 112, 210]
[A]: | [210, 112, 206, 167, 168, 272, 151, 189, 14, 105, 97, 35, 292, 110, 267, 244, 65, 12, 259, 161]
| 5 | NIv2 | task1331_reverse_array | fs_opt |
Detailed Instructions: In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
See one example below:
Problem: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Explanation: The output list is reverse in order of the input.
Problem: [258, 39, 50, 263, 31, 146, 95, 231, 17, 199, 205, 182, 216, 21, 196, 295, 34, 33, 188, 212]
Solution: | [212, 188, 33, 34, 295, 196, 21, 216, 182, 205, 199, 17, 231, 95, 146, 31, 263, 50, 39, 258] | 4 | NIv2 | task1331_reverse_array | fs_opt |
Teacher: In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Reason: The output list is reverse in order of the input.
Now, solve this instance: [119, 242, 215, 16, 247, 71, 58, 56, 185, 270, 41, 191, 66, 244, 121, 93, 208, 130, 261, 219]
Student: | [219, 261, 130, 208, 93, 121, 244, 66, 191, 41, 270, 185, 56, 58, 71, 247, 16, 215, 242, 119] | 2 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[207, 261, 225, 15, 24, 198, 228, 119, 31, 215, 17, 254, 39, 265, 106, 28, 217, 296, 222, 66]
[66, 222, 296, 217, 28, 106, 265, 39, 254, 17, 215, 31, 119, 228, 198, 24, 15, 225, 261, 207]
[231, 203, 278, 204, 280, 84, 160, 18, 298, 24, 229, 208, 69, 13, 135, 59, 156, 107, 161, 270]
[270, 161, 107, 156, 59, 135, 13, 69, 208, 229, 24, 298, 18, 160, 84, 280, 204, 278, 203, 231]
[119, 242, 215, 16, 247, 71, 58, 56, 185, 270, 41, 191, 66, 244, 121, 93, 208, 130, 261, 219]
| [219, 261, 130, 208, 93, 121, 244, 66, 191, 41, 270, 185, 56, 58, 71, 247, 16, 215, 242, 119]
| 0 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Example: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Example solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Example explanation: The output list is reverse in order of the input.
Problem: [63, 76, 57, 230, 240, 65, 19, 286, 118, 29, 43, 295, 33, 142, 266, 44, 46, 170, 72, 83]
| Solution: [83, 72, 170, 46, 44, 266, 142, 33, 295, 43, 29, 118, 286, 19, 65, 240, 230, 57, 76, 63] | 5 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Input: Consider Input: [167, 261, 105, 262, 254, 15, 174, 275, 84, 134, 173, 255, 23, 278, 180, 159, 233, 117, 272, 153]
Output: [153, 272, 117, 233, 159, 180, 278, 23, 255, 173, 134, 84, 275, 174, 15, 254, 262, 105, 261, 167]
Input: Consider Input: [180, 289, 268, 130, 38, 282, 113, 205, 192, 243, 57, 193, 44, 246, 145, 67, 240, 23, 157, 261]
Output: [261, 157, 23, 240, 67, 145, 246, 44, 193, 57, 243, 192, 205, 113, 282, 38, 130, 268, 289, 180]
Input: Consider Input: [102, 158, 197, 223, 61, 56, 297, 187, 50, 145, 147, 150, 283, 290, 22, 24, 10, 157, 74, 123]
| Output: [123, 74, 157, 10, 24, 22, 290, 283, 150, 147, 145, 50, 187, 297, 56, 61, 223, 197, 158, 102]
| 2 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
One example: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Solution is here: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Explanation: The output list is reverse in order of the input.
Now, solve this: [197, 177, 47, 263, 26, 22, 42, 261, 138, 153, 46, 270, 143, 162, 194, 97, 297, 28, 169, 103]
Solution: | [103, 169, 28, 297, 97, 194, 162, 143, 270, 46, 153, 138, 261, 42, 22, 26, 263, 47, 177, 197] | 6 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[EX Q]: [54, 16, 251, 83, 288, 94, 193, 207, 258, 188, 165, 182, 263, 26, 235, 107, 130, 138, 232, 196]
[EX A]: [196, 232, 138, 130, 107, 235, 26, 263, 182, 165, 188, 258, 207, 193, 94, 288, 83, 251, 16, 54]
[EX Q]: [244, 83, 151, 170, 116, 111, 235, 76, 181, 272, 163, 294, 100, 223, 165, 140, 138, 77, 172, 68]
[EX A]: [68, 172, 77, 138, 140, 165, 223, 100, 294, 163, 272, 181, 76, 235, 111, 116, 170, 151, 83, 244]
[EX Q]: [31, 78, 191, 181, 194, 267, 178, 93, 117, 52, 125, 60, 15, 75, 133, 72, 288, 130, 188, 249]
[EX A]: | [249, 188, 130, 288, 72, 133, 75, 15, 60, 125, 52, 117, 93, 178, 267, 194, 181, 191, 78, 31]
| 6 | NIv2 | task1331_reverse_array | fs_opt |
Part 1. Definition
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Part 2. Example
[139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Answer: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Explanation: The output list is reverse in order of the input.
Part 3. Exercise
[132, 17, 290, 94, 170, 109, 30, 258, 133, 78, 135, 125, 71, 83, 90, 158, 107, 137, 106, 76]
Answer: | [76, 106, 137, 107, 158, 90, 83, 71, 125, 135, 78, 133, 258, 30, 109, 170, 94, 290, 17, 132] | 7 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
One example is below.
Q: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
A: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Rationale: The output list is reverse in order of the input.
Q: [26, 113, 69, 89, 92, 262, 144, 294, 134, 99, 224, 160, 270, 36, 156, 290, 172, 147, 202, 76]
A: | [76, 202, 147, 172, 290, 156, 36, 270, 160, 224, 99, 134, 294, 144, 262, 92, 89, 69, 113, 26] | 9 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[EX Q]: [128, 201, 123, 211, 42, 117, 150, 262, 103, 101, 124, 69, 24, 59, 215, 20, 283, 196, 28, 246]
[EX A]: [246, 28, 196, 283, 20, 215, 59, 24, 69, 124, 101, 103, 262, 150, 117, 42, 211, 123, 201, 128]
[EX Q]: [119, 242, 215, 16, 247, 71, 58, 56, 185, 270, 41, 191, 66, 244, 121, 93, 208, 130, 261, 219]
[EX A]: [219, 261, 130, 208, 93, 121, 244, 66, 191, 41, 270, 185, 56, 58, 71, 247, 16, 215, 242, 119]
[EX Q]: [134, 254, 57, 157, 264, 107, 245, 30, 68, 46, 25, 243, 41, 66, 281, 189, 23, 224, 18, 99]
[EX A]: | [99, 18, 224, 23, 189, 281, 66, 41, 243, 25, 46, 68, 30, 245, 107, 264, 157, 57, 254, 134]
| 6 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[Q]: [137, 142, 19, 28, 13, 173, 210, 179, 288, 294, 170, 279, 252, 261, 48, 214, 53, 147, 85, 25]
[A]: [25, 85, 147, 53, 214, 48, 261, 252, 279, 170, 294, 288, 179, 210, 173, 13, 28, 19, 142, 137]
[Q]: [129, 20, 235, 116, 213, 152, 189, 233, 281, 45, 115, 170, 138, 253, 113, 106, 126, 202, 261, 297]
[A]: [297, 261, 202, 126, 106, 113, 253, 138, 170, 115, 45, 281, 233, 189, 152, 213, 116, 235, 20, 129]
[Q]: [287, 162, 26, 296, 290, 239, 125, 187, 227, 132, 109, 54, 124, 48, 251, 99, 266, 84, 194, 68]
[A]: | [68, 194, 84, 266, 99, 251, 48, 124, 54, 109, 132, 227, 187, 125, 239, 290, 296, 26, 162, 287]
| 5 | NIv2 | task1331_reverse_array | fs_opt |
instruction:
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
question:
[51, 185, 60, 36, 261, 41, 71, 161, 290, 30, 151, 243, 137, 158, 91, 268, 124, 19, 119, 128]
answer:
[128, 119, 19, 124, 268, 91, 158, 137, 243, 151, 30, 290, 161, 71, 41, 261, 36, 60, 185, 51]
question:
[133, 16, 295, 72, 202, 90, 46, 281, 131, 103, 12, 67, 262, 268, 218, 118, 287, 197, 253, 99]
answer:
[99, 253, 197, 287, 118, 218, 268, 262, 67, 12, 103, 131, 281, 46, 90, 202, 72, 295, 16, 133]
question:
[92, 254, 33, 226, 22, 16, 52, 135, 227, 108, 23, 65, 194, 46, 263, 276, 172, 44, 268, 90]
answer:
| [90, 268, 44, 172, 276, 263, 46, 194, 65, 23, 108, 227, 135, 52, 16, 22, 226, 33, 254, 92]
| 9 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[51, 185, 60, 36, 261, 41, 71, 161, 290, 30, 151, 243, 137, 158, 91, 268, 124, 19, 119, 128]
[128, 119, 19, 124, 268, 91, 158, 137, 243, 151, 30, 290, 161, 71, 41, 261, 36, 60, 185, 51]
[59, 115, 176, 47, 172, 108, 63, 219, 169, 121, 62, 75, 123, 119, 40, 283, 256, 15, 84, 237]
[237, 84, 15, 256, 283, 40, 119, 123, 75, 62, 121, 169, 219, 63, 108, 172, 47, 176, 115, 59]
[187, 76, 294, 257, 176, 139, 132, 184, 160, 214, 268, 27, 163, 80, 209, 56, 151, 78, 25, 122]
| [122, 25, 78, 151, 56, 209, 80, 163, 27, 268, 214, 160, 184, 132, 139, 176, 257, 294, 76, 187]
| 0 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[EX Q]: [58, 276, 10, 22, 11, 207, 117, 229, 280, 222, 39, 262, 234, 97, 182, 152, 42, 23, 144, 143]
[EX A]: [143, 144, 23, 42, 152, 182, 97, 234, 262, 39, 222, 280, 229, 117, 207, 11, 22, 10, 276, 58]
[EX Q]: [54, 16, 251, 83, 288, 94, 193, 207, 258, 188, 165, 182, 263, 26, 235, 107, 130, 138, 232, 196]
[EX A]: [196, 232, 138, 130, 107, 235, 26, 263, 182, 165, 188, 258, 207, 193, 94, 288, 83, 251, 16, 54]
[EX Q]: [72, 109, 78, 222, 131, 126, 122, 175, 58, 138, 148, 41, 153, 100, 195, 244, 198, 179, 197, 211]
[EX A]: | [211, 197, 179, 198, 244, 195, 100, 153, 41, 148, 138, 58, 175, 122, 126, 131, 222, 78, 109, 72]
| 6 | NIv2 | task1331_reverse_array | fs_opt |
Given the task definition, example input & output, solve the new input case.
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Example: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Output: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
The output list is reverse in order of the input.
New input case for you: [177, 108, 42, 133, 57, 233, 221, 117, 135, 214, 128, 85, 101, 258, 281, 142, 103, 264, 59, 223]
Output: | [223, 59, 264, 103, 142, 281, 258, 101, 85, 128, 214, 135, 117, 221, 233, 57, 133, 42, 108, 177] | 1 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Example Input: [298, 132, 41, 43, 195, 224, 63, 19, 218, 161, 148, 194, 88, 256, 33, 252, 164, 184, 282, 134]
Example Output: [134, 282, 184, 164, 252, 33, 256, 88, 194, 148, 161, 218, 19, 63, 224, 195, 43, 41, 132, 298]
Example Input: [260, 34, 239, 237, 179, 76, 11, 207, 101, 274, 202, 51, 292, 149, 259, 262, 230, 94, 217, 135]
Example Output: [135, 217, 94, 230, 262, 259, 149, 292, 51, 202, 274, 101, 207, 11, 76, 179, 237, 239, 34, 260]
Example Input: [128, 201, 123, 211, 42, 117, 150, 262, 103, 101, 124, 69, 24, 59, 215, 20, 283, 196, 28, 246]
Example Output: | [246, 28, 196, 283, 20, 215, 59, 24, 69, 124, 101, 103, 262, 150, 117, 42, 211, 123, 201, 128]
| 3 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Input: Consider Input: [211, 115, 98, 88, 291, 240, 131, 91, 109, 167, 185, 188, 142, 65, 186, 209, 125, 265, 270, 117]
Output: [117, 270, 265, 125, 209, 186, 65, 142, 188, 185, 167, 109, 91, 131, 240, 291, 88, 98, 115, 211]
Input: Consider Input: [58, 180, 263, 89, 99, 82, 39, 285, 126, 190, 274, 116, 220, 282, 95, 255, 125, 223, 271, 132]
Output: [132, 271, 223, 125, 255, 95, 282, 220, 116, 274, 190, 126, 285, 39, 82, 99, 89, 263, 180, 58]
Input: Consider Input: [121, 145, 53, 67, 65, 62, 154, 174, 180, 144, 57, 214, 186, 132, 152, 160, 216, 122, 34, 143]
| Output: [143, 34, 122, 216, 160, 152, 132, 186, 214, 57, 144, 180, 174, 154, 62, 65, 67, 53, 145, 121]
| 2 | NIv2 | task1331_reverse_array | fs_opt |
Teacher: In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Teacher: Now, understand the problem? If you are still confused, see the following example:
[139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Solution: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Reason: The output list is reverse in order of the input.
Now, solve this instance: [166, 235, 195, 146, 294, 71, 289, 94, 125, 210, 160, 60, 152, 183, 156, 163, 245, 118, 32, 172]
Student: | [172, 32, 118, 245, 163, 156, 183, 152, 60, 160, 210, 125, 94, 289, 71, 294, 146, 195, 235, 166] | 2 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
One example is below.
Q: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
A: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Rationale: The output list is reverse in order of the input.
Q: [48, 239, 15, 148, 11, 16, 186, 278, 151, 185, 95, 10, 163, 131, 73, 184, 150, 261, 94, 128]
A: | [128, 94, 261, 150, 184, 73, 131, 163, 10, 95, 185, 151, 278, 186, 16, 11, 148, 15, 239, 48] | 9 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Input: Consider Input: [30, 295, 71, 211, 239, 292, 112, 171, 266, 63, 268, 117, 79, 115, 58, 166, 78, 52, 196, 155]
Output: [155, 196, 52, 78, 166, 58, 115, 79, 117, 268, 63, 266, 171, 112, 292, 239, 211, 71, 295, 30]
Input: Consider Input: [76, 64, 143, 96, 267, 148, 211, 21, 42, 52, 122, 275, 136, 230, 70, 14, 222, 160, 214, 285]
Output: [285, 214, 160, 222, 14, 70, 230, 136, 275, 122, 52, 42, 21, 211, 148, 267, 96, 143, 64, 76]
Input: Consider Input: [263, 36, 198, 94, 180, 35, 293, 99, 89, 108, 268, 121, 225, 119, 81, 15, 244, 106, 131, 229]
| Output: [229, 131, 106, 244, 15, 81, 119, 225, 121, 268, 108, 89, 99, 293, 35, 180, 94, 198, 36, 263]
| 2 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
[26, 113, 69, 89, 92, 262, 144, 294, 134, 99, 224, 160, 270, 36, 156, 290, 172, 147, 202, 76]
[76, 202, 147, 172, 290, 156, 36, 270, 160, 224, 99, 134, 294, 144, 262, 92, 89, 69, 113, 26]
[92, 254, 33, 226, 22, 16, 52, 135, 227, 108, 23, 65, 194, 46, 263, 276, 172, 44, 268, 90]
[90, 268, 44, 172, 276, 263, 46, 194, 65, 23, 108, 227, 135, 52, 16, 22, 226, 33, 254, 92]
[282, 162, 169, 212, 270, 277, 299, 21, 280, 296, 10, 32, 239, 134, 83, 88, 178, 245, 96, 207]
| [207, 96, 245, 178, 88, 83, 134, 239, 32, 10, 296, 280, 21, 299, 277, 270, 212, 169, 162, 282]
| 0 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Ex Input:
[162, 188, 118, 216, 116, 157, 214, 256, 69, 22, 286, 25, 114, 195, 45, 102, 196, 90, 232, 55]
Ex Output:
[55, 232, 90, 196, 102, 45, 195, 114, 25, 286, 22, 69, 256, 214, 157, 116, 216, 118, 188, 162]
Ex Input:
[77, 150, 215, 129, 29, 81, 105, 285, 86, 187, 254, 279, 241, 210, 155, 232, 59, 87, 127, 276]
Ex Output:
[276, 127, 87, 59, 232, 155, 210, 241, 279, 254, 187, 86, 285, 105, 81, 29, 129, 215, 150, 77]
Ex Input:
[86, 277, 129, 134, 282, 165, 50, 154, 17, 132, 61, 261, 292, 42, 258, 34, 73, 193, 205, 240]
Ex Output:
| [240, 205, 193, 73, 34, 258, 42, 292, 261, 61, 132, 17, 154, 50, 165, 282, 134, 129, 277, 86]
| 1 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
Input: Consider Input: [32, 243, 69, 71, 261, 59, 73, 150, 112, 220, 85, 290, 176, 101, 192, 264, 90, 38, 120, 222]
Output: [222, 120, 38, 90, 264, 192, 101, 176, 290, 85, 220, 112, 150, 73, 59, 261, 71, 69, 243, 32]
Input: Consider Input: [77, 150, 215, 129, 29, 81, 105, 285, 86, 187, 254, 279, 241, 210, 155, 232, 59, 87, 127, 276]
Output: [276, 127, 87, 59, 232, 155, 210, 241, 279, 254, 187, 86, 285, 105, 81, 29, 129, 215, 150, 77]
Input: Consider Input: [55, 63, 107, 190, 205, 92, 241, 233, 82, 103, 261, 180, 91, 182, 119, 155, 251, 93, 206, 169]
| Output: [169, 206, 93, 251, 155, 119, 182, 91, 180, 261, 103, 82, 233, 241, 92, 205, 190, 107, 63, 55]
| 2 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
One example: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
Solution is here: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Explanation: The output list is reverse in order of the input.
Now, solve this: [199, 62, 43, 225, 283, 136, 279, 65, 139, 81, 40, 131, 126, 130, 86, 116, 238, 159, 229, 25]
Solution: | [25, 229, 159, 238, 116, 86, 130, 126, 131, 40, 81, 139, 65, 279, 136, 283, 225, 43, 62, 199] | 6 | NIv2 | task1331_reverse_array | fs_opt |
In this task, you are given a list of integers in a random order. You need to return the same list of integers in the reverse order.
One example is below.
Q: [139, 192, 48, 118, 158, 52, 41, 137, 172, 285, 57, 187, 269, 277, 13, 114, 250, 99, 210, 155]
A: [155, 210, 99, 250, 114, 13, 277, 269, 187, 57, 285, 172, 137, 41, 52, 158, 118, 48, 192, 139]
Rationale: The output list is reverse in order of the input.
Q: [172, 85, 169, 15, 229, 74, 237, 62, 247, 198, 38, 141, 59, 115, 227, 189, 195, 110, 173, 26]
A: | [26, 173, 110, 195, 189, 227, 115, 59, 141, 38, 198, 247, 62, 237, 74, 229, 15, 169, 85, 172] | 9 | NIv2 | task1331_reverse_array | fs_opt |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.