Advertisement
Guest User

Untitled

a guest
Nov 19th, 2019
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.17 KB | None | 0 0
  1. void Kwg(T element)
  2.     {
  3.         tmp = ilosc - 1;
  4.         while (tmp != 0)
  5.         {
  6.             if (tab[tmp] > tab[rodzic(tmp)])
  7.                 tab[tmp] = tab[parent(i)];
  8.             tmp = (tmp - 1) / 2;
  9.         }
  10.     }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement