'Can bucket sort work with positive and negative floating point number?

I want to know Can bucket sort work with positive and negative floating-point number? and yes/no why?

I can't solve the problem. Here is my code



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source