Use generics in sorting algorithms
Author: meetvalaniCreated Oct 25, 2021Updated Sep 1, 2026
Labelsenhancementhelp wanteddont-closeGood First Issue
Description
IMO algorithm should be working on data type float64 instead of int.
For enhancement:
- All the algorithms should be converted to use
float64as an arguments. Followings are the possible enhancements.- User must handle the type conversion of
inttofloat64. - Should provide both type where
intinternally usesfloat64related function.
- User must handle the type conversion of
Source: TheAlgorithms/Go