Search results for sorting

48 votes
5 answers
21
0 votes
0 answers
31
Given the array \( [4, 3, 2, 1, 5] \), which of the following sorting algorithms can successfully sort the array in exactly two passes?Bubble SortInsertion Sort Selectio...
0 votes
1 answer
32
Worst case time complexity of heap sort for n elementsO(nlogn)O(logn)O^2O(n)
1 votes
1 answer
33
Which of the following is true for a sorted list with ' $n$ ' elements?Insertion in a sorted array takes constant time.Insertion in a sorted linear linked list takes cons...
0 votes
2 answers
35
1 votes
2 answers
36
0 votes
1 answer
38
Consider the set of 4 -digit positive integers. How many of them have their digits in :-a) strictly decreasing order ?b) non decreasing order ?c) non increasing order ?...
5 votes
5 answers
39
If an array $A$ contains the items $10,4,7,23,67,12$ and $5$ in that order, what will be the resultant array $A$ after third pass of insertion sort?$67,12,10,5,4,7,23$$4,...