Hactoberfest-2021 icon indicating copy to clipboard operation
Hactoberfest-2021 copied to clipboard

more robust and easier to understand.

Open Anshuman7080 opened this issue 4 months ago • 0 comments

Boundary Check: Added a boundary check for k in the main function to ensure it is within valid range. Return Value for Out of Bounds: Added a return value of INT_MAX if k is out of bounds in the find_kth_smallest function. Vector Usage: Used vector for dynamic array allocation, which is safer and more modern C++ practice. Simplified Partition Logic: Improved the readability of the partition logic.

Anshuman7080 avatar Oct 13 '24 07:10 Anshuman7080