how to find the kth smallest element in the given list of
array elemnts.
Answer Posted / jyothi
first the given list must be sorted using any of the
sorting tecniques and then taking the kth element in that
resultent array will give the answer
or
another tecnique is using quick sort it will be easier
and time complexity is also very less.sorry i dont have
enough time to write the program here dontmind
| Is This Answer Correct ? | 25 Yes | 13 No |
Post New Answer View All Answers
When should a type cast be used?
What is the use of c language in real life?
What is use of bit field?
What is the difference between strcpy() and memcpy() function in c programming?
#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
What is void main ()?
What are the different types of control structures in programming?
What are void pointers in c?
Why is c not oop?
What is the difference between a string copy (strcpy) and a memory copy (memcpy)? When should each be used?
hi to every one .. how to view table pool after creating the pooled table? plz help me.. if any knows abt this ..
State two uses of pointers in C?
write a program for the normal snake games find in most of the mobiles.
What does nil mean in c?