We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
-- Why condition for 'Leaf' must have WHERE p IS NOT NULL b/c NOT IN is entangle with NULL. If you're not write WHERE clause, the result are returned with NULL value
-- On the other hand why condition for 'Inner' no need to have WHERE clause like 'Leaf' b/c IN is not entangle with NULL. It disregard NULL
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Binary Tree Nodes
You are viewing a single comment's thread. Return to all comments →
-- Why condition for 'Leaf' must have WHERE p IS NOT NULL b/c NOT IN is entangle with NULL. If you're not write WHERE clause, the result are returned with NULL value
-- On the other hand why condition for 'Inner' no need to have WHERE clause like 'Leaf' b/c IN is not entangle with NULL. It disregard NULL