why we made heapify function as private
Remove max/min code
@Pritamkumarcoder you can make it public also, it’d make no difference. However, it is a good coding practice to make data memebers and functions which are not needed outside the class, as private.
1 Like