feat: add Pigeonhole algorithm (#1028)
* feat: add Pigeonhole algorithm * Executed clang-format * Used pointers and vector * Corrected clang-tidy issues * Modified code structure * Apply suggestions from code review Suggested changes applied Co-authored-by: NDavid Leal <halfpacho@gmail.com> * Added missing parameter and documentation * Added delete function * Update pigeonhole_sort.cpp * Corrected delete function Co-authored-by: NDavid Leal <halfpacho@gmail.com> * Apply suggestions from code review Co-authored-by: NDavid Leal <halfpacho@gmail.com> * Apply suggestions from code review Co-authored-by: NDavid Leal <halfpacho@gmail.com> * Changed documentation regarding array size * clang-tidy * Apply suggestions from code review Co-authored-by: NDavid Leal <halfpacho@gmail.com> * assert moved to test function * Update pigeonhole_sort.cpp * Update sorting/pigeonhole_sort.cpp Co-authored-by: NDavid Leal <halfpacho@gmail.com> * Added test function and inbuilt min function * min and max to const variables * const int* to auto * const int* to auto * Apply suggestions from code review Co-authored-by: NKrishna Vedala <7001608+kvedala@users.noreply.github.com> * Modified pigeonSort documentation * Corrected test functions Co-authored-by: Nlsurface <lownish@hotmail.com> Co-authored-by: NDavid Leal <halfpacho@gmail.com> Co-authored-by: NKrishna Vedala <7001608+kvedala@users.noreply.github.com>
Showing
sorting/pigeonhole_sort.cpp
0 → 100644
想要评论请 注册 或 登录