LeetCode 608: Tree Node
Problem Restatement We are given a table called Tree . Each row represents one node in a binary tree. Column Type Meaning id int Node id p_id int Parent node id We need to classify every node into one of three types: Type Meaning Root The node has no parent Leaf The node has no children Inner The node has both a parent and at least one child The result...