DEV Community

Cover image for Merge Sort

Merge Sort

Ankit Kumar Meena on July 04, 2023

It is a sorting algorithm that follows the divide-and-conquer approach. It efficiently sorts an array or a list by dividing it into smaller sub-arr...
Collapse
 
pauljlucas profile image
Paul J. Lucas
  1. Headers in the bits subdirectory are for the implementation, not user code. Just include the correct headers.
  2. You should at least use std::vector, not raw C++ arrays.
  3. Your use of auto is inconsistent.
Collapse
 
ankittmeena profile image
Ankit Kumar Meena

Thank You for the feedback. I'll keep these things in mind for my next post. I am actually learning C++, so that's why these small mistakes happen. I'll try to reduce these mistakes in the future.