Given a binary tree, return the level order traversal of its nodes’ values. (ie, from left to right, level by level).
Given a binary tree, return the zigzag level order traversal of its nodes’ values. (ie, from left to right, then right to left for the next level and alternate ...
Given preorder and inorder traversal of a tree, construct the binary tree.
Given inorder and postorder traversal of a tree, construct the binary tree.
Given a binary tree, return the bottom-up level order traversal of its nodes’ values. (ie, from left to right, level by level from leaf to root).
Given a binary tree, return the inorder traversal of its nodes’ values.
Given an integer n, generate all structurally unique BST’s (binary search trees) that store values 1…n.
Unique Binary Search TreesDesicriptionGiven n, how many structurally unique BST’s (binary search t
Given a 2D binary matrix filled with 0’s and 1’s, find the largest rectangle containing only 1’s and return its area.
纹理(Texture)是物体表面固有的特征之一。目前对于纹理尚无正式的定义,但一般认为它是由许多相互连接且常周期性重复的单元构成。与灰度特征不同,纹理不是基于单个像素点的特征,它通常与图像的尺度关系密切,且具有区域性和...