小小程序媛 |
|
||
得之坦然,失之淡然,顺其自然,争其必然 |
2015年10月14日
摘要:
题目Given a binary tree, determine if it is height-balanced.For this problem, a height-balanced binary tree is defined as a binary tree in whic... 阅读全文
摘要:
题目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 ... 阅读全文
2015年10月13日
摘要:
题目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... 阅读全文
摘要:
题目Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the ... 阅读全文
2015年10月12日
摘要:
题目Given a binary tree, return the level order traversal of its nodes’ values. (ie, from left to right, level by level).For example: Given bin... 阅读全文
摘要:
题目Given a binary tree, determine if it is a valid binary search tree (BST).Assume a BST is defined as follows:The left subtree of a node cont... 阅读全文
2015年10月11日
摘要:
题目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 un... 阅读全文
摘要:
题目Given n, generate all structurally unique BST’s (binary search trees) that store values 1…n.For example, Given n = 3, your program should r... 阅读全文
2015年10月10日
摘要:
题目A message containing letters from A-Z is being encoded to numbers using the following mapping:‘A’ -> 1 ‘B’ -> 2 … ‘Z’ -> 26 Given an encode... 阅读全文
2015年10月9日
摘要:
题目Given an index k, return the kth row of the Pascal’s triangle.For example, given k = 3, Return [1,3,3,1].Note: Could you optimize your algo... 阅读全文
|
Copyright © 2024 Coding菌
Powered by .NET 9.0 on Kubernetes |