Блог пользователя Adam_Jardali

Автор Adam_Jardali, 17 часов назад, По-английски

Heap Sort

$$$Important$$$ $$$Note$$$: in this problem k is small as it is the min(n,1000). We should take advantage of this fact to solve the problem in an efficient way.

Solution Using Sorting
Solution Using Heap Sort
Solution Using Priority Queue

You Know Who

Hermione is busy now, So we need an efficient solution!

Solution
Code
  • Проголосовать: нравится
  • 0
  • Проголосовать: не нравится

»
11 часов назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by Adam_Jardali (previous revision, new revision, compare).

»
10 часов назад, # |
  Проголосовать: нравится 0 Проголосовать: не нравится

Auto comment: topic has been updated by Adam_Jardali (previous revision, new revision, compare).