from collections.abc import Iterable
def frequency_sorting(numbers: list[int]) -> Iterable[int]:
result = sorted(numbers,key=lambda x:numbers.count(x))
return result
Created at: 2023/11/02 14:58; Updated at: 2023/11/02 17:32
The question is resolved.