1.

Which of the following method is used for sorting in merge sort?(a) merging(b) partitioning(c) selection(d) exchangingThis question was posed to me during an interview for a job.I want to ask this question from Sorting in portion Sorting of Data Structures & Algorithms II

Answer»

Right option is (a) merging

For explanation: Merge SORT algorithm divides the array into two halves and applies merge sort algorithm to each half individually after which the two SORTED halves are MERGED TOGETHER. Thus its METHOD of sorting is called merging.



Discussion

No Comment Found

Related InterviewSolutions