arr = [10, 11, 45, 89, 33, 30]
arr_size = 6
k = int(input("Element to get: "))
arr.sort()
print("Required element is: ",arr[k-1])
Kth Smallest Element
Find the kth smallest element in an array
0 Comments
Add Comment
Log in to add a comment
arr = [10, 11, 45, 89, 33, 30]
arr_size = 6
k = int(input("Element to get: "))
arr.sort()
print("Required element is: ",arr[k-1])
Kth Smallest Element
Find the kth smallest element in an array
Log in to add a comment