Question: write a python program to find the kth smallest element in the ascending order sorted list . also check if the given number is present
write a python program to find the" kth smallest element" in the ascending order sorted list . also check if the given number is present in the list using any searching technique is suppose element to be searched is not available then display "not present" otherwise display" present"
Input format: Number of elements N item1 item2 .... item N K Key
Output format: ascending order sorted list item Present/Not Present
Input 1: 5 93 34 12 56 67 3 56
output 1: [12,36,56,67,93] 56 Present





Kth Smallest Element Followed by Searching a key Write a python program to find the "kth smallest element in the ascending order sorted list. Also check if the given number is present in the list using any searching technique. If suppose element to be searched, is not available then display "Not Present otherwise display "Present". Note: Do not use any built in function for Sorting or Searching. Use functions to do the same. Input Format Number of elements N Item 1 Item2 ItemN K ItemN K Key Output Format Ascending ordered Sorted List Item Present/Not Present Input1 98 Achat 34 Input1 5 93 34 12 56 67 3 56 Output1 [12, 34, 56, 67, 93] 56 Present Input2 8 13 94 82 6 67 34 B 5 40 Output2 BA79947 B 5 40 Output2 [2, 3, 6, 13, 34, 67, 82, 94) 34 Not Present
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
