leetcode icon indicating copy to clipboard operation
leetcode copied to clipboard

Difference between p == nullptr and !p

Open billlipeng opened this issue 10 years ago • 0 comments

Suppose p is a pointer. The running time for if(p==nullptr) and if(!p) are different in Leetcode. Is this a bug in Leetcode.

billlipeng avatar Feb 11 '15 16:02 billlipeng