木落长安rr

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

04 2019 档案

摘要:Given preorder and inorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For example, 阅读全文
posted @ 2019-04-17 14:48 木落长安rr 阅读(128) 评论(0) 推荐(0)

摘要:Given inorder and postorder traversal of a tree, construct the binary tree. Note:You may assume that duplicates do not exist in the tree. For example, 阅读全文
posted @ 2019-04-15 22:03 木落长安rr 阅读(201) 评论(0) 推荐(0)

摘要:Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. N 阅读全文
posted @ 2019-04-12 21:21 木落长安rr 阅读(145) 评论(0) 推荐(0)

摘要:Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center). For example, this binary tree [1,2,2,3,4,4,3] is symmet 阅读全文
posted @ 2019-04-10 22:03 木落长安rr 阅读(319) 评论(0) 推荐(0)

摘要:Given two binary trees, write a function to check if they are the same or not. Two binary trees are considered the same if they are structurally ident 阅读全文
posted @ 2019-04-10 21:15 木落长安rr 阅读(298) 评论(0) 推荐(0)

摘要:使用系统API函数,需要使用命名空间:System.Runtime.InteropServices; 1.if (textBoxPath.Text == String.Empty ) 2.if (textBoxPath.Text == "" ) 3.if (String.IsNullOrEmpty( 阅读全文
posted @ 2019-04-09 19:35 木落长安rr 阅读(12873) 评论(0) 推荐(0)

摘要:Given a binary tree, return the postorder traversal of its nodes' values. Example: Follow up: Recursive solution is trivial, could you do it iterative 阅读全文
posted @ 2019-04-06 18:54 木落长安rr 阅读(234) 评论(0) 推荐(0)

摘要:Given a binary tree, return the preorder traversal of its nodes' values. Example: Follow up: Recursive solution is trivial, could you do it iterativel 阅读全文
posted @ 2019-04-05 16:51 木落长安rr 阅读(218) 评论(0) 推荐(0)

摘要:Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level). For example:Given binary tree [3 阅读全文
posted @ 2019-04-05 15:54 木落长安rr 阅读(251) 评论(0) 推荐(0)

摘要:Given a binary tree, return the inorder traversal of its nodes' values. Example: Follow up: Recursive solution is trivial, could you do it iteratively 阅读全文
posted @ 2019-04-05 15:03 木落长安rr 阅读(277) 评论(0) 推荐(0)

摘要: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 farthest l 阅读全文
posted @ 2019-04-02 10:57 木落长安rr 阅读(177) 评论(0) 推荐(0)

摘要:Given a linked list, swap every two adjacent nodes and return its head. You may not modify the values in the list's nodes, only nodes itself may be ch 阅读全文
posted @ 2019-04-01 21:26 木落长安rr 阅读(240) 评论(0) 推荐(0)