Write a program to find the kth smallest element in an unsorted array.
HardProblem Statement
Write a program to find the kth smallest element in an unsorted array.
Sample Input
Array: [7, 10, 4, 3, 20, 15] k = 3
Sample Output
Kth Smallest Element: 7
Limits
Time: 2s · Memory: 256 MB