Company question banks are included with the Insider plan.
You are given the root of a binary tree (not a BST, just a generic binary tree) and a target value x. Count how many nodes in the tree have node.val == x.
This is a two-part question. Part 1...