RRB Junior Engineer / DMS / CMA 2019 · Question 3573 of 3719
Merge sort is an efficient sorting algorithm that uses a divide-and- conquer approach to order elements in an array. Mergesort has two steps: Merging Sorting. The algorithm uses a divide-and-conquer approach to merge and sort a list. The recursive mergesort algorithm is 1. If the list has only one element, Return the list and terminate. (Base case) 2. Split the list into two halves that are as equal in length as possible. (Divide) 3. Using recursion, sort both lists using mergesort. (Conquer) 4. Merge the two sorted lists and return the result. (Combine)
Source: RRB JE 2019 (CBT 2) (IT) Previous Year Paper (30 Aug 2019) — prepp.in solved-paper PDF (answer key with explanations) · reliable-secondary
Practice the full RRB Junior Engineer / DMS / CMA 2019 paper
Timed test with all 3719 questions, just like the real exam.
Start test