What are the average number of comparisons required to sort
3 elements?
Answers were Sorted based on User's Feedback
Answer / jaiprakash
n(n-1)/2(bubble sort)
n=3
(3*2)/2=3(n)
ans:n
| Is This Answer Correct ? | 13 Yes | 1 No |
How are portions of a program disabled in demo versions?
What is masking?
There is a 100-story building and you are given two eggs. The eggs (and the building) have an interesting property that if you throw the egg from a floor number less than X, it will not break. And it will always brake if the floor number is equal or greater than X. Assuming that you can reuse the eggs which didn't broke; you got to find X in a minimal number of throws. Give an algorithm to find X in minimal number of throws.
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
Why doesnt the call scanf work?
input may any number except 1,output will always 1.. conditions only one variable should be declare,don't use operators,expressions,array,structure
Why #include is used in c language?
Implement a function that returns the 5th element from the end in a singly linked list of integers in one pass.
what is stack , heap ,code segment,and data segment
send me the code of flow chart generator using C-programming language amd this code should calculate the time and space complexity of the given progran and able to generate flowchart according to the given program?
write a program to count the no of repaeted words in a line?
What is c variable?