Given an array where elements are sorted in ascending order, convert it to a height balanc……
Given a binary tree, return the bottom-up level order traversal of its nodes'……
Given preorder and inorder traversal of a tree, construct the binary tree.Note: You m……
Given a binary tree, return the zigzag level order traversal of its nodes' v……
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its cent……
Given two binary trees, write a function to check if they are equal or not.Two binary tree……
Two elements of a binary search tree (BST) are swapped by mistake.Recover the tree without……
题意:判断一棵树是否是二叉搜索树;思路:中序遍历看是否是有序的[cpp] view plain copyclass Solution &nb……
Given s1, s2, s3, find whether s3 is formed by the interleaving o……