Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void Kwg(T element)
- {
- tmp = ilosc - 1;
- while (tmp != 0)
- {
- if (tab[tmp] > tab[rodzic(tmp)])
- tab[tmp] = tab[parent(i)];
- tmp = (tmp - 1) / 2;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement