上一页 1 ··· 3 4 5 6 7 8 下一页
摘要: 使用Metapost作图,是LaTeX的好搭档。下面介绍如何在ctex环境下的使用Metapost作图。首先新建一个test.mp的Metapost文件。在文件开始需要声明如下代码:1 prologues:=3;2 filenametemplate "%j-%c.eps";3 verbatimtex... 阅读全文
posted @ 2014-05-09 22:58 jostree 阅读(1666) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return thepostordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[3,2,1].给定... 阅读全文
posted @ 2014-05-08 15:58 jostree 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given the below binary tree, 1 ... 阅读全文
posted @ 2014-05-07 09:56 jostree 阅读(141) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return thebottom-up level ordertraversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For exa... 阅读全文
posted @ 2014-05-06 08:43 jostree 阅读(143) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return thelevel ordertraversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree{3,9,2... 阅读全文
posted @ 2014-05-05 19:59 jostree 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return theinordertraversal of its nodes' values.For example:Given binary tree{1,#,2,3}, 1 \ 2 / 3return[1,3,2].Note... 阅读全文
posted @ 2014-05-04 11:13 jostree 阅读(189) 评论(0) 推荐(0) 编辑
摘要: Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a... 阅读全文
posted @ 2014-05-03 14:29 jostree 阅读(171) 评论(0) 推荐(0) 编辑
摘要: Say you have an array for which theithelement is the price of a given stock on dayi.Design an algorithm to find the maximum profit. You may complete a... 阅读全文
posted @ 2014-05-02 19:25 jostree 阅读(144) 评论(0) 推荐(0) 编辑
摘要: Say you have an array for which theithelement is the price of a given stock on dayi.If you were only permitted to complete at most one transaction (ie... 阅读全文
posted @ 2014-05-01 21:43 jostree 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 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 which the depth... 阅读全文
posted @ 2014-04-30 10:21 jostree 阅读(131) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 下一页