Knowledge 1
^ - Bitwise exclusive or
returns false when both are false and both are true.
returns true only if one of the operand is true.
https://leetcode.com/problems/single-number/description/
types of heap
- min heap
- max heap
In min heap root element is the minimum in the heap. same for max i.e. it is the maximum in heap.
Comments
Post a Comment