



from __future__ import annotations






def        A       (      _lowerCamelCase						):





							'''simple docstring'''




							if len(_lowerCamelCase						) == 0:
														return []
							_lowerCAmelCase     ,					_lowerCAmelCase  :							List[Any]				     =					min(_lowerCamelCase						), max(_lowerCamelCase						)
							_lowerCAmelCase  :							List[str]				     =					int(max_value - min_value						) + 1
							_lowerCAmelCase  :							list[list]				     =					[[] for _ in range(_lowerCamelCase						)]

							for i in my_list:
														buckets[int(i - min_value						)].append(_lowerCamelCase						)

							return [v for bucket in buckets for v in sorted(_lowerCamelCase						)]


if __name__ == "__main__":
						from doctest import testmod

						testmod()
						assert bucket_sort([4, 5, 3, 2, 1]) == [1, 2, 3, 4, 5]
						assert bucket_sort([0, 1, -10, 15, 2, -2]) == [-10, -2, 0, 1, 2, 15]





def        A       (      _lowerCamelCase						):





							'''simple docstring'''




							if length <= 0 or not isinstance(_lowerCamelCase       ,				_lowerCamelCase						):
														raise ValueError("Length must be a positive integer."						)
							return [n * (2 * n - 1) for n in range(_lowerCamelCase						)]


if __name__ == "__main__":
						print(hexagonal_numbers(length=5))
						print(hexagonal_numbers(length=10))
