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