According to Wikipedia's article: "The Game of Life, also known simply as Life, is a cellular automaton devised by the British…
Given a binary tree, find the lowest common ancestor (LCA) of two given nodes in the tree.
According to the definition of LCA on Wikipedia: “The lowest common ancestor is defined between two nodes p and q as the lowest node in…
p
q
There is a singly-linked list head and we want to delete a node node in it.
head
node