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
What is pointer and structure in c?
main() { inta=10,b=20; a>=5?b=100:b=200; printf("%d ",b); }
exit () is used to a) exit () terminates the execution of the program itself b) exit () terminates the execution of the loop c) exit () terminates the execution of the block d) none of the above
please explain every phase in the "SDLC" in the dotnet.
What are the disadvantages of external storage class?
What is the difference between array and structure in c?
On most computers additional memory that is accessed through an adapter of feature card along with a device driver program. a) user memory b) conventional memory c) expandedmemory d) area
if the area was hit by a virus and so the decrease in the population because of death was x/3 and the migration from other places increased a population by 2x then annually it had so many ppl. find our the population in the starting.
Can the “if” function be used in comparing strings?
What is the collection of communication lines and routers called?
What is %d called in c?
What does == mean in texting?
Why void is used in c?
Difference between exit() and _exit() function?
praagnovation