Datasets:

Modalities:
Text
Formats:
parquet
Languages:
English
Size:
< 1K
ArXiv:
Libraries:
Datasets
pandas
License:
Dataset Viewer
Auto-converted to Parquet
input
stringlengths
621
1.34k
output
sequencelengths
1
1
id
stringlengths
41
41
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [170, 168, 166, 164, 162, 160, 158, 156, 154, 152, 150, 148, 146, 144, 142, 140, 138, 136, 134, 132, 130, 128, 126, 124, 122, 120, 118, 116, 114, 112, 110, 108, 106, 104, 102, 100, 98, 96, 94, 92, 90, 88, 86, 84, 82, 80, 78, 76, 74, 72, 70, 68, 66, 64, 62, 60, 58, 56, 54, 52, 50, 48, 46, 44, 42, 40, 38, 36, 34, 32, 30, 28, 26, 24, 22, 20, 18, 16, 14, 12, 10, 8, 6, 4] Output:
[ "1" ]
task1089-ad0afab50389456897f37ab4734ba898
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [6, 62, 90, 10, 27, 71, 40, 67, 64, 47] Output:
[ "2" ]
task1089-101c2bd35cb14defbc5b833b809057fc
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [69, 49, 60, 58, 48, 82, 21, 83, 26, 67] Output:
[ "2" ]
task1089-1cf1b9705b9146e9b938dcc8b0b159a4
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [13, 20, 27, 34, 41, 48, 55, 62, 69, 76, 83, 90, 97, 104, 111, 118, 125, 132, 139, 146, 153, 160, 167] Output:
[ "1" ]
task1089-fed59e021d144464b59ea0b412338cba
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [41, 10, 1, 63, 24, 69, 71, 43, 37, 50] Output:
[ "2" ]
task1089-523f043d6e5747858d8685dceeb12315
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [199, 189, 179, 169, 159, 149, 139, 129, 119, 109, 99, 89, 79, 69, 59, 49, 39, 29, 19] Output:
[ "1" ]
task1089-1bf6428d019c4b079938324e358d2302
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [71, 45, 54, 41, 73, 74, 32, 38, 53, 18] Output:
[ "2" ]
task1089-bd78b8b0d8bd4b568f9decbc948308ff
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [20, 86, 93, 13, 46, 97, 9, 61, 18, 78] Output:
[ "2" ]
task1089-a3100cb6fbe349038e3f43816ea98ddf
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [115, 108, 101, 94, 87, 80, 73, 66, 59, 52, 45, 38, 31, 24] Output:
[ "1" ]
task1089-210774f1d3f84f79b45bf9b4beda99d8
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [45, 90, 64, 95, 66, 26, 76, 7, 74, 38] Output:
[ "2" ]
task1089-f9b288605bcf48989c12a1a74e403bd4
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [72, 36, 69, 43, 88, 14, 49, 82, 83, 26] Output:
[ "2" ]
task1089-406917942421467bb9150cd1a2268c07
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [32, 40, 48, 56, 64, 72, 80, 88, 96, 104, 112, 120, 128, 136, 144, 152, 160, 168] Output:
[ "1" ]
task1089-200ba4d970f84a2bb1895bf390c1a9f3
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [53, 89, 39, 0, 3, 90, 61, 56, 13, 34] Output:
[ "2" ]
task1089-40f01c5ec4364c9a829aced7d6de9b9c
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [123, 121, 119, 117, 115, 113, 111, 109, 107, 105, 103, 101, 99, 97, 95, 93, 91, 89, 87, 85, 83, 81, 79, 77, 75, 73, 71, 69, 67, 65, 63, 61, 59, 57, 55, 53, 51, 49, 47, 45, 43, 41, 39, 37, 35, 33, 31, 29, 27, 25, 23, 21] Output:
[ "1" ]
task1089-ba3d4a70cf0b4f1eab0f624e3f4af0ae
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [12, 16, 20, 24, 28, 32, 36, 40, 44, 48, 52, 56, 60, 64, 68, 72, 76, 80, 84, 88, 92, 96, 100, 104, 108, 112, 116, 120, 124, 128, 132, 136, 140, 144, 148, 152] Output:
[ "1" ]
task1089-42086f6f127c488186fce242f6bdfa2e
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [42, 86, 7, 78, 77, 64, 72, 81, 67, 69] Output:
[ "2" ]
task1089-a0c2f29e0a1b4f1da451d43e72df9891
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [102, 99, 96, 93, 90, 87, 84, 81, 78, 75, 72, 69, 66, 63, 60, 57, 54, 51, 48, 45, 42, 39, 36, 33] Output:
[ "1" ]
task1089-18c8c1da0bbd46829a797e0a2b99f7e8
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187] Output:
[ "1" ]
task1089-bee0df442eac4645b3aac07f69c59c09
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [9, 16, 23, 30, 37, 44, 51, 58, 65, 72, 79, 86, 93, 100, 107, 114, 121, 128, 135, 142, 149, 156, 163] Output:
[ "1" ]
task1089-4a08a0657c5b4b38a5b1f70cf57e01e5
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [101, 93, 85, 77, 69, 61, 53] Output:
[ "1" ]
task1089-ce3965547cf148ebae6d4e185207eb7e
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [197, 195, 193, 191, 189, 187, 185, 183, 181, 179, 177, 175, 173, 171, 169, 167, 165, 163, 161, 159, 157, 155, 153, 151, 149, 147, 145, 143, 141, 139, 137, 135, 133, 131, 129, 127, 125, 123, 121, 119, 117, 115, 113, 111, 109, 107, 105, 103, 101, 99, 97, 95, 93, 91, 89, 87, 85, 83, 81, 79, 77, 75, 73, 71, 69, 67, 65, 63, 61, 59, 57, 55, 53, 51, 49, 47, 45, 43, 41, 39, 37, 35, 33, 31, 29, 27, 25, 23, 21, 19, 17, 15, 13] Output:
[ "1" ]
task1089-e497470df7ca4b1d81b1201ec9240656
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [6, 13, 20, 27, 34, 41, 48, 55, 62, 69, 76, 83, 90, 97, 104, 111, 118, 125, 132, 139, 146, 153, 160, 167] Output:
[ "1" ]
task1089-d3cc839062ce415fa68ef822434a6cf0
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [11, 22, 91, 7, 82, 0, 89, 19, 13, 17] Output:
[ "2" ]
task1089-fc816fb0d8934d41bae1a3f139e916ec
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [181, 171, 161, 151, 141, 131, 121, 111, 101, 91, 81, 71, 61, 51, 41, 31] Output:
[ "1" ]
task1089-b981dd5b72284b1d9451605c49144827
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [12, 40, 45, 65, 87, 43, 80, 67, 76, 56] Output:
[ "2" ]
task1089-97f3530c892a495f84d3b2ed7b0d9e0a
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [2, 64, 72, 78, 35, 70, 79, 49, 67, 75] Output:
[ "2" ]
task1089-6c21258ab1824dbe93a84f527cff49c4
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [19, 28, 37, 46, 55, 64, 73, 82, 91, 100, 109, 118, 127, 136, 145, 154, 163, 172, 181, 190] Output:
[ "1" ]
task1089-38e2110f335640b7b0f0b5e6708898a1
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [170, 163, 156, 149, 142, 135, 128, 121, 114, 107, 100, 93, 86, 79, 72, 65, 58, 51, 44, 37, 30, 23, 16, 9] Output:
[ "1" ]
task1089-f805dd30f9a4421db270eccc953fc925
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [92, 44, 43, 88, 42, 91, 54, 51, 79, 45] Output:
[ "2" ]
task1089-e58f6a46d6394808a962ab8c6064cf45
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [6, 12, 18, 24, 30, 36, 42, 48, 54, 60, 66, 72, 78, 84, 90, 96, 102, 108] Output:
[ "1" ]
task1089-19fbe80fc08448c6850794a51031e9a8
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [195, 194, 193, 192, 191, 190, 189, 188, 187, 186, 185, 184, 183, 182, 181, 180, 179, 178, 177, 176, 175, 174, 173, 172, 171, 170, 169, 168, 167, 166, 165, 164, 163, 162, 161, 160, 159, 158, 157, 156, 155, 154, 153, 152, 151, 150, 149, 148, 147, 146, 145, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, 99, 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49] Output:
[ "1" ]
task1089-2c69a644fbc643d5a79e005bcd4a46f2
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [32, 35, 38, 41, 44, 47, 50, 53, 56, 59, 62, 65, 68, 71, 74, 77, 80, 83, 86, 89, 92, 95, 98, 101] Output:
[ "1" ]
task1089-6e1af76a64f7477bb676ea2768b55c9c
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [47, 56, 65, 74, 83, 92, 101, 110, 119, 128, 137, 146, 155, 164, 173, 182, 191] Output:
[ "1" ]
task1089-221db04e7d014339bb15064332dc01aa
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [97, 74, 13, 1, 60, 79, 28, 53, 6, 44] Output:
[ "2" ]
task1089-4a79ff867bef40f8b6822040ce0ee098
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [15, 67, 9, 42, 92, 82, 37, 87, 64, 12] Output:
[ "2" ]
task1089-5ba894f2f3404cb780cdae77f09a2934
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [81, 47, 2, 60, 16, 80, 1, 89, 37, 3] Output:
[ "2" ]
task1089-5e04bfd4ede743708f94f63e2a81ae40
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [29, 35, 41, 47, 53, 59, 65, 71, 77, 83, 89, 95, 101, 107, 113, 119, 125, 131, 137] Output:
[ "1" ]
task1089-d327756d75df4cf989705687d8ef2c94
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [97, 70, 43, 40, 12, 50, 55, 18, 61, 10] Output:
[ "2" ]
task1089-9fcf8a87bd8b418ab9d52fb1b72e6251
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [179, 173, 167, 161, 155, 149, 143, 137, 131, 125, 119, 113, 107, 101, 95, 89, 83, 77, 71, 65, 59, 53, 47, 41, 35] Output:
[ "1" ]
task1089-469b6435e84f4f55a7ee76cbe88b4e96
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148] Output:
[ "1" ]
task1089-b1da636d867a41089d6e79d0e007e42e
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [33, 43, 53, 63, 73, 83, 93, 103, 113, 123, 133, 143, 153, 163] Output:
[ "1" ]
task1089-3efd9aef427540e7bd78a00e357f9fcb
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [143, 135, 127, 119, 111, 103, 95, 87, 79, 71, 63, 55, 47, 39] Output:
[ "1" ]
task1089-3ea9f4c2df6343c2b8bc8f2f3a190194
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [43, 91, 52, 80, 67, 34, 10, 29, 11, 74] Output:
[ "2" ]
task1089-899433906e7b41e6b938e550cf701cb1
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [143, 138, 133, 128, 123, 118, 113, 108, 103, 98, 93, 88, 83, 78, 73, 68, 63, 58, 53, 48, 43, 38, 33, 28, 23] Output:
[ "1" ]
task1089-6900eff6cce345d1ae5890aaf625342f
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [7, 68, 4, 23, 34, 61, 98, 5, 15, 26] Output:
[ "2" ]
task1089-25f7f583557b48718d1c0670ad7034f2
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [99, 2, 21, 75, 68, 11, 60, 96, 30, 38] Output:
[ "2" ]
task1089-6bee8f7466374a9ab6172e738aefe074
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [7, 83, 48, 59, 42, 13, 29, 87, 3, 15] Output:
[ "2" ]
task1089-e7bbd06df92e4cf5b07929504b238a9a
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [34, 40, 46, 52, 58, 64, 70, 76, 82, 88, 94, 100, 106, 112, 118, 124, 130, 136, 142, 148, 154, 160, 166, 172, 178] Output:
[ "1" ]
task1089-2baa7b0f00e94561bb529c33bd39d19d
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [149, 148, 147, 146, 145, 144, 143, 142, 141, 140, 139, 138, 137, 136, 135, 134, 133, 132, 131, 130, 129, 128, 127, 126, 125, 124, 123, 122, 121, 120, 119, 118, 117, 116, 115, 114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, 99, 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49, 48, 47, 46, 45, 44, 43, 42, 41, 40, 39, 38, 37, 36, 35, 34, 33, 32, 31, 30, 29, 28, 27, 26, 25, 24, 23, 22, 21, 20, 19, 18, 17, 16, 15] Output:
[ "1" ]
task1089-7fa1db2e2fd24d588f5090e7bda79f1f
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [28, 36, 44, 52, 60, 68, 76, 84, 92, 100, 108, 116, 124, 132, 140, 148, 156, 164, 172] Output:
[ "1" ]
task1089-bdd21ceb392f44be985ace7cb90cce06
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [28, 37, 46, 55, 64, 73, 82, 91, 100, 109, 118, 127] Output:
[ "1" ]
task1089-2f5a979a13304f8293b0450da9604922
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [17, 27, 37, 47, 57, 67, 77, 87, 97, 107, 117, 127, 137, 147, 157, 167, 177, 187, 197] Output:
[ "1" ]
task1089-0f130457dd1b4bc595146a295cad4e60
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [27, 36, 45, 54, 63, 72, 81, 90, 99, 108, 117, 126, 135, 144, 153] Output:
[ "1" ]
task1089-4a4ec0cd9314442dacf2eb160bf645c0
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [46, 56, 16, 32, 99, 30, 57, 93, 64, 28] Output:
[ "2" ]
task1089-9a154e63d7a741999517ed93d0e26255
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [183, 178, 173, 168, 163, 158, 153, 148, 143, 138, 133, 128, 123, 118, 113, 108, 103, 98, 93, 88, 83, 78, 73, 68, 63, 58, 53, 48, 43] Output:
[ "1" ]
task1089-0140c60ff36b4aa3a7ebee7b622f2bbb
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136, 137, 138, 139, 140, 141, 142, 143, 144, 145, 146, 147, 148, 149, 150, 151, 152, 153, 154, 155, 156, 157, 158, 159, 160, 161, 162, 163, 164, 165, 166, 167, 168, 169, 170, 171, 172, 173, 174, 175, 176, 177, 178, 179, 180, 181, 182, 183, 184, 185, 186, 187, 188, 189, 190, 191, 192, 193, 194] Output:
[ "1" ]
task1089-58acbff49a6b4cfebbcd8b1259360e80
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [48, 71, 3, 82, 87, 96, 86, 57, 69, 59] Output:
[ "2" ]
task1089-d8f2c88a1a8a42319a76d6a34c282d57
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [68, 17, 43, 6, 65, 41, 32, 98, 53, 29] Output:
[ "2" ]
task1089-fd8a37550d044fa09282b6319ca9662c
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [159, 150, 141, 132, 123, 114, 105, 96, 87, 78, 69, 60, 51, 42, 33] Output:
[ "1" ]
task1089-b3309bb95599467f8f051a0198540ade
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [5, 66, 84, 32, 18, 94, 82, 74, 97, 60] Output:
[ "2" ]
task1089-413ca5a466af4875a06ba488b47dfdb6
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [35, 42, 49, 56, 63, 70, 77, 84, 91, 98, 105] Output:
[ "1" ]
task1089-7945f37bcae04c0095cf39dc825c01f7
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [22, 0, 4, 45, 87, 13, 38, 35, 12, 72] Output:
[ "2" ]
task1089-b1684a8b1f5149cb8235c2850c166c00
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [70, 74, 90, 85, 92, 3, 63, 57, 53, 91] Output:
[ "2" ]
task1089-a4f1c26263cd4493b24fa502affca038
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [43, 48, 53, 58, 63, 68, 73, 78, 83, 88, 93, 98, 103, 108, 113, 118, 123, 128, 133, 138, 143, 148, 153, 158, 163, 168, 173] Output:
[ "1" ]
task1089-c1187c54bda74fe2b18d92454b878624
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168] Output:
[ "1" ]
task1089-517bd327643e4e3ca2eeb36b071a1d7c
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [26, 12, 54, 82, 85, 23, 51, 88, 60, 11] Output:
[ "2" ]
task1089-7ba2584bca32478b9ad4059de4ec3281
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136] Output:
[ "1" ]
task1089-e2fd574bcd454e32a6a170ab02d6e001
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [26, 65, 35, 76, 80, 18, 74, 19, 32, 78] Output:
[ "2" ]
task1089-24448525af084831bb74edc903e5661f
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [195, 186, 177, 168, 159, 150, 141, 132, 123, 114, 105, 96, 87, 78, 69, 60, 51] Output:
[ "1" ]
task1089-36d13d7f141a4f15b829bf33a5705bf2
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [94, 77, 79, 78, 20, 52, 24, 70, 5, 28] Output:
[ "2" ]
task1089-646cab2914f34547a4a1d8ad6851f2d6
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [16, 15, 94, 30, 83, 56, 81, 47, 78, 5] Output:
[ "2" ]
task1089-5ec0dc1dac614fbca51fa65867a496d2
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [138, 136, 134, 132, 130, 128, 126, 124, 122, 120, 118, 116, 114, 112, 110, 108, 106, 104, 102, 100, 98, 96, 94, 92, 90, 88, 86, 84, 82, 80, 78, 76, 74, 72, 70, 68, 66, 64, 62, 60, 58, 56, 54, 52, 50, 48, 46, 44, 42, 40, 38, 36, 34, 32, 30, 28, 26, 24, 22, 20, 18, 16, 14, 12] Output:
[ "1" ]
task1089-49ff4ea745404a00a39347f7d20118c5
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [114, 113, 112, 111, 110, 109, 108, 107, 106, 105, 104, 103, 102, 101, 100, 99, 98, 97, 96, 95, 94, 93, 92, 91, 90, 89, 88, 87, 86, 85, 84, 83, 82, 81, 80, 79, 78, 77, 76, 75, 74, 73, 72, 71, 70, 69, 68, 67, 66, 65, 64, 63, 62, 61, 60, 59, 58, 57, 56, 55, 54, 53, 52, 51, 50, 49] Output:
[ "1" ]
task1089-bd4035533d574f19bb0ac8d8cc383a6c
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [25, 67, 73, 85, 50, 7, 97, 17, 43, 38] Output:
[ "2" ]
task1089-cf0324d231144685b492d0081e791499
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [86, 50, 98, 96, 66, 38, 57, 56, 58, 65] Output:
[ "2" ]
task1089-89582c27a31645dd9c19daec7b374ba8
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [18, 23, 28, 33, 38, 43, 48, 53, 58, 63, 68, 73, 78, 83, 88, 93, 98, 103, 108, 113, 118, 123, 128, 133, 138] Output:
[ "1" ]
task1089-ea5a4b0b31724c48bcab72d5501588cd
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [7, 15, 23, 31, 39, 47, 55, 63, 71, 79, 87, 95, 103, 111, 119, 127, 135, 143, 151, 159, 167, 175, 183] Output:
[ "1" ]
task1089-91ca4b0fa6724fe3978412c71aa09595
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [141, 139, 137, 135, 133, 131, 129, 127, 125, 123, 121, 119, 117, 115, 113, 111, 109, 107, 105, 103, 101, 99, 97, 95, 93, 91, 89, 87, 85, 83, 81, 79, 77, 75, 73, 71, 69, 67, 65, 63, 61, 59, 57, 55, 53, 51, 49, 47, 45, 43, 41, 39, 37, 35, 33, 31, 29, 27, 25, 23, 21, 19, 17, 15, 13, 11, 9, 7, 5] Output:
[ "1" ]
task1089-995ffadfcb2046a2ba8914d4f26f85bf
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [67, 60, 74, 40, 18, 15, 84, 36, 52, 31] Output:
[ "2" ]
task1089-1283eb59a08e4c04900457ed5d05538c
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122] Output:
[ "1" ]
task1089-e1b7b29462034a8cbd762f8c1056ffb3
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 118, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128] Output:
[ "1" ]
task1089-e5027da2a1b042e48f158498fd3daaae
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [166, 162, 158, 154, 150, 146, 142, 138, 134, 130, 126, 122, 118, 114, 110, 106, 102, 98, 94, 90, 86, 82, 78, 74, 70, 66, 62, 58, 54, 50, 46, 42, 38, 34, 30, 26, 22, 18, 14] Output:
[ "1" ]
task1089-231bf676ba634946bf576fb4a3bd656d
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [154, 145, 136, 127, 118, 109, 100, 91, 82, 73, 64, 55, 46, 37, 28] Output:
[ "1" ]
task1089-0bbb8a3ecd43489292c71813bc82fe0b
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [169, 161, 153, 145, 137, 129, 121, 113, 105, 97, 89, 81, 73, 65, 57, 49] Output:
[ "1" ]
task1089-22e08f3657c44f7ba8e7cc0c0323886d
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [24, 31, 38, 45, 52, 59, 66, 73, 80, 87, 94, 101, 108, 115, 122, 129, 136, 143, 150, 157, 164] Output:
[ "1" ]
task1089-38b4d7e8c6ff4ee2afdae0b991e18edf
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [61, 60, 12, 84, 10, 39, 90, 92, 6, 38] Output:
[ "2" ]
task1089-12375905088d4b509fa3a8b1a171ba39
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [81, 69, 13, 34, 10, 80, 33, 7, 86, 65] Output:
[ "2" ]
task1089-e9569e1045ca4a5ab33a3b1bf2938619
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [6, 35, 69, 29, 37, 53, 84, 7, 56, 1] Output:
[ "2" ]
task1089-26d5776e50c7443aa2b40628c6241cd8
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [184, 182, 180, 178, 176, 174, 172, 170, 168, 166, 164, 162, 160, 158, 156, 154, 152, 150, 148, 146, 144, 142, 140, 138, 136, 134, 132, 130, 128, 126, 124, 122, 120, 118, 116, 114, 112, 110, 108, 106, 104, 102, 100, 98, 96, 94, 92, 90, 88, 86, 84, 82, 80, 78, 76, 74, 72, 70, 68, 66, 64, 62, 60, 58, 56, 54, 52, 50, 48, 46, 44, 42, 40, 38] Output:
[ "1" ]
task1089-de6330dfc879439083e67526e15addf9
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [78, 26, 59, 51, 65, 86, 57, 47, 64, 91] Output:
[ "2" ]
task1089-e2c84c3beed549d8ae9acb5feb4114b2
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [80, 4, 43, 3, 2, 11, 83, 93, 38, 59] Output:
[ "2" ]
task1089-c8296c7e8d56414291af2203c7ef8e08
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [40, 45, 50, 55, 60, 65, 70, 75, 80, 85, 90, 95, 100, 105, 110, 115, 120, 125, 130, 135, 140, 145, 150, 155, 160, 165, 170, 175, 180] Output:
[ "1" ]
task1089-def6255a912a4461beb927a0c4d834e0
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [55, 27, 83, 68, 4, 81, 88, 70, 52, 11] Output:
[ "2" ]
task1089-84b1a2ccca8b485c82267cf633968d0a
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [23, 33, 43, 53, 63, 73, 83, 93, 103, 113, 123, 133, 143, 153] Output:
[ "1" ]
task1089-e2ef1f0c32b344f98f857455d87dbbc1
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [88, 94, 68, 70, 49, 66, 91, 35, 17, 15] Output:
[ "2" ]
task1089-e6183ade092248979b0be581ec2cdb12
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [20, 89, 21, 29, 34, 39, 61, 78, 27, 69] Output:
[ "2" ]
task1089-845bf018ea1a425d806558910d3921a5
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98, 100, 102, 104, 106, 108, 110, 112, 114, 116, 118, 120, 122, 124, 126, 128, 130, 132, 134, 136, 138, 140, 142, 144, 146, 148, 150, 152, 154, 156, 158, 160, 162, 164, 166, 168, 170, 172, 174, 176, 178, 180, 182, 184, 186, 188, 190, 192, 194, 196] Output:
[ "1" ]
task1089-eeb10beed6a54426b9e1f5e32771c974
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [140, 134, 128, 122, 116, 110, 104, 98, 92, 86, 80, 74, 68, 62, 56, 50] Output:
[ "1" ]
task1089-a2fa75b11d95451a90c20b8e61fbeeae
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [68, 33, 21, 85, 24, 59, 93, 55, 78, 13] Output:
[ "2" ]
task1089-6203f0e8d1cb4fc48609f254c2d3ad74
Definition: You are given an array of integers, check if it is monotonic or not. If the array is monotonic, then return 1, else return 2. An array is monotonic if it is either monotonically increasing or monotonocally decreasing. An array is monotonically increasing/decreasing if its elements increase/decrease as we move from left to right Positive Example 1 - Input: [1,2,2,3] Output: 1 Positive Example 2 - Input: [6,5,4,4] Output: 1 Negative Example 1 - Input: [1,3,2] Output: 1 Negative Example 2 - Input: [1,2,4,5] Output: 2 Now complete the following example - Input: [185, 177, 169, 161, 153, 145, 137, 129, 121, 113, 105, 97, 89, 81, 73, 65, 57, 49, 41, 33, 25, 17, 9] Output:
[ "1" ]
task1089-c59bd7929cb440778a21e84d8b90d474
End of preview. Expand in Data Studio

Dataset Card for Natural Instructions (https://github.com/allenai/natural-instructions) Task: task1089_check_monotonic_array

Additional Information

Citation Information

The following paper introduces the corpus in detail. If you use the corpus in published work, please cite it:

@misc{wang2022supernaturalinstructionsgeneralizationdeclarativeinstructions,
    title={Super-NaturalInstructions: Generalization via Declarative Instructions on 1600+ NLP Tasks}, 
    author={Yizhong Wang and Swaroop Mishra and Pegah Alipoormolabashi and Yeganeh Kordi and Amirreza Mirzaei and Anjana Arunkumar and Arjun Ashok and Arut Selvan Dhanasekaran and Atharva Naik and David Stap and Eshaan Pathak and Giannis Karamanolakis and Haizhi Gary Lai and Ishan Purohit and Ishani Mondal and Jacob Anderson and Kirby Kuznia and Krima Doshi and Maitreya Patel and Kuntal Kumar Pal and Mehrad Moradshahi and Mihir Parmar and Mirali Purohit and Neeraj Varshney and Phani Rohitha Kaza and Pulkit Verma and Ravsehaj Singh Puri and Rushang Karia and Shailaja Keyur Sampat and Savan Doshi and Siddhartha Mishra and Sujan Reddy and Sumanta Patro and Tanay Dixit and Xudong Shen and Chitta Baral and Yejin Choi and Noah A. Smith and Hannaneh Hajishirzi and Daniel Khashabi},
    year={2022},
    eprint={2204.07705},
    archivePrefix={arXiv},
    primaryClass={cs.CL},
    url={https://arxiv.org/abs/2204.07705}, 
}

More details can also be found in the following paper:

@misc{brüelgabrielsson2024compressserveservingthousands,
    title={Compress then Serve: Serving Thousands of LoRA Adapters with Little Overhead}, 
    author={Rickard Brüel-Gabrielsson and Jiacheng Zhu and Onkar Bhardwaj and Leshem Choshen and Kristjan Greenewald and Mikhail Yurochkin and Justin Solomon},
    year={2024},
    eprint={2407.00066},
    archivePrefix={arXiv},
    primaryClass={cs.DC},
    url={https://arxiv.org/abs/2407.00066}, 
}

Contact Information

For any comments or questions, please email Rickard Brüel Gabrielsson

Downloads last month
31