static void Main(string[] args) { Solution s = new Solution(); var res = s.PopulateInorderSuccessor(TestSolution.DesignBT4()); Print(res); }
static void Main(string[] args) { Solution s = new Solution(); var root = TestSolution.DesignBT4(); s.SetInorderPredecessor(root); Print(root); }