Part 1. Definition
In this task, you are given a list of integers and an integer k. You need to find the kth smallest element in the input list and return that.
Part 2. Example
[163, 290, 90, 51, 96, 86, 282, 265, 10, 85, 91, 201, 68, 126, 26, 228, 229, 236, 31, 71], k=14
Answer: 201
Explanation: 201 is the 14th smallest element in the input list.
Part 3. Exercise
[169, 122, 46, 138, 119, 49, 212, 26, 154, 200, 38, 100, 31, 125, 50, 65, 94, 175, 59, 20], k=7
Answer:
50