摘要:
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 between). 阅读全文
posted @ 2014-07-02 23:00
jdflyfly
阅读(147)
评论(0)
推荐(0)
摘要:
Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). 阅读全文
posted @ 2014-07-02 22:54
jdflyfly
阅读(144)
评论(0)
推荐(0)
摘要:
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). 阅读全文
posted @ 2014-07-02 22:46
jdflyfly
阅读(181)
评论(0)
推荐(0)
摘要:
Given two binary trees, write a function to check if they are equal or not. 阅读全文
posted @ 2014-07-02 22:43
jdflyfly
阅读(138)
评论(0)
推荐(0)
摘要:
Two elements of a binary search tree (BST) are swapped by mistake. 阅读全文
posted @ 2014-07-02 22:36
jdflyfly
阅读(130)
评论(0)
推荐(0)
摘要:
Given a binary tree, determine if it is a valid binary search tree (BST). 阅读全文
posted @ 2014-07-02 22:26
jdflyfly
阅读(147)
评论(0)
推荐(0)
摘要:
Given s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2. 阅读全文
posted @ 2014-07-02 22:21
jdflyfly
阅读(178)
评论(1)
推荐(0)
摘要:
Given a binary tree, return the inorder traversal of its nodes' values. 阅读全文
posted @ 2014-07-02 00:28
jdflyfly
阅读(134)
评论(0)
推荐(0)
摘要:
Given n, generate all structurally unique BST's (binary search trees) that store values 1...n. 阅读全文
posted @ 2014-07-02 00:11
jdflyfly
阅读(266)
评论(1)
推荐(0)
摘要:
Given n, how many structurally unique BST's (binary search trees) that store values 1...n? 阅读全文
posted @ 2014-07-02 00:05
jdflyfly
阅读(134)
评论(0)
推荐(0)

浙公网安备 33010602011771号