The complexity of which of the following sorting algorithms remains to be the same in its best, average and worst case?
The complexity of which of the following sorting algorithms remains to be the same in its best, average and worst case? Correct Answer pigeonhole sort
The time complexity of pigeonhole remains unvaried in all three cases. It is given by O(n+k). But it is efficient only when the number of elements is comparable to the input range.
মোঃ আরিফুল ইসলাম
Feb 20, 2025