how to find the kth smallest element in the given list of
array elemnts.
Answer Posted / sunil
This is a problem of "Order statistics". A good link describing all possible solutions along with code and output is at below link.
http://www.rawkam.com/?p=870
| Is This Answer Correct ? | 1 Yes | 4 No |
Post New Answer View All Answers
I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.
Write a program to replace n bits from the position p of the bit representation of an inputted character x with the one's complement. Method invertBit takes 3 parameters x as input character, p as position and n as the number of positions from p. Replace n bits from pth position in 8 bit character x. Then return the characters by inverting the bits.
What is 1d array in c?
When a c file is executed there are many files that are automatically opened what are they files?
An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?
Can you pass an entire structure to functions?
Explain the difference between malloc() and calloc() function?
How can I read and write comma-delimited text?
What is c mainly used for?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
What is c definition?
How are strings stored in c?
What is type qualifiers?
write a c program to do the following: a) To find the area of a triangle. b) To convert the temperature from Fahrenheit to Celsius. c) To convert the time in hours : minutes : seconds to seconds.
What is file in c preprocessor?