摘要: 题目: 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 阅读全文
posted @ 2017-06-06 05:37 panini 阅读(169) 评论(0) 推荐(0)
摘要: 题目: Given n, how many structurally unique BST's (binary search trees) that store values 1...n? For example,Given n = 3, there are a total of 5 unique 阅读全文
posted @ 2017-06-06 01:24 panini 阅读(146) 评论(0) 推荐(0)
摘要: 题目: Given n, generate all structurally unique BST's (binary search trees) that store values 1...n. For example,Given n = 3, your program should return 阅读全文
posted @ 2017-06-06 01:04 panini 阅读(185) 评论(0) 推荐(0)