



"""simple docstring"""





from __future__ import annotations
def        a__     (				lowerCAmelCase__				):
      if len(lowerCAmelCase__				) == 0:
            return []
      UpperCAmelCase_			,   UpperCAmelCase_      			=							min(lowerCAmelCase__				), max(lowerCAmelCase__				)
      UpperCAmelCase_      			=							int(max_value - min_value				) + 1
      UpperCAmelCase_      			=							[[] 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]









"""simple docstring"""





def        a__     (				lowerCAmelCase__     ,      lowerCAmelCase__				):
      return [sentence[i : i + ngram_size] for i in range(len(lowerCAmelCase__				) - ngram_size + 1				)]


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

  testmod()




