Комментарии

Currently 1500, lets check how this guide work.

+3

True, thx

Yep, but first you need to sort

Actually complexity is $$$O(log(n)n)$$$ or $$$O(\sqrt n n)$$$. Because you need too count numbers.