Things I learned today was brushing up my skills on leetcode and shared my learned could help someone who is on the same journey as me
Heap – Heap is the complete binary.
Max heap – Root is the max element in the entire tree
Min heap – Root is the min element in the entire tree
I am sure many people might be familiar with it, but here are some additional tips which I found intriguing while revising the concepts wanted to share it as it might help during interview
Python inbuild function in heap and cost incur-