-
-
Notifications
You must be signed in to change notification settings - Fork 7.6k
feat: add hybrid quick-insertion-selection sorting algorithm with tests #2956
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Try not to use the raw array and instead opt for either std::vector incase you want an array of dynamic length or std::array if the size is known at compile time
/** | ||
* @brief print the array | ||
*/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/** | |
* @brief print the array | |
*/ | |
/** | |
* @brief print the array | |
* @tparam T | |
* @param arr | |
* @param size | |
*/ |
I will make the changes soon. Thank you for the corrections. |
@realstealthninja I have just made the requested changes. |
Description of Change
Added a hybrid sorting algorithm combining QuickSort, Insertion Sort, and Selection Sort.
Included tests and example usage.
This implementation is for educational purposes and follows the project's style guidelines.
Checklist
Notes: "Hybrid of QuickSort, Insertion Sort, and Selection Sort for educational purposes, not optimized for speed."