In the worst-case scenario, Mergesort divides the input array of size n into two subarrays of size $\left\lfloor\frac{n}{2}\right\rfloor$ and $\left\lceil\frac{n}{2}\right\rceil$. This is because Mergesort always tries to divide the array into two equal parts, and
Show more…