摘要:
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,9,20,#,#,15,7}, 3 / \ 9 20 / \ 15 7return its level order traversal as:[ [3], [9,20], [15,7]] /** * Definition for binary tree * st... 阅读全文
posted @ 2013-04-09 23:55
冰点猎手
阅读(147)
评论(0)
推荐(0)
摘要:
/** * Definition for binary tree * struct TreeNode { * int val; * TreeNode *left; * TreeNode *right; * TreeNode(int x) : val(x), left(NULL), right(NULL) {} * }; */class Solution {public: vector<int> inorderTraversal(TreeNode *root) { // Start typing your C/C++ solution belo... 阅读全文
posted @ 2013-04-09 23:38
冰点猎手
阅读(126)
评论(0)
推荐(0)
摘要:
不知道是自己运气好还是新的CEGUI 版本比较好编译,我的编译比较顺利,当然其中也遇到一些问题,特此在这里记录,以方便大家学习交流!Build CEGUI 之前,ogre 已装好。 首先说下CEGUI-DEPS-0.7.x-r3-vc10这个文件夹,刚开始我还以为是已经编译好的lib ,差点闹出笑话。自己build的时候才发现是build依赖的文件,在build之前,先把此文件夹中的depence文件夹放到CEGUI-0.7.9文件夹下。 然后剩下的步骤和http://www.ogre3d.org/tikiwiki/tiki-index.php?page=Building+CEGUI... 阅读全文
posted @ 2013-04-09 15:39
冰点猎手
阅读(415)
评论(0)
推荐(0)
摘要:
ListNode *addTwoNumbers(ListNode *l1, ListNode *l2) { // Start typing your C/C++ solution below // DO NOT write int main() function if(l1 == NULL) return l2; if(l2 == NULL) return l1; std::vector<int> a,b,c; while(l1){ a.push_back(l1->val); ... 阅读全文
posted @ 2013-04-09 11:58
冰点猎手
阅读(187)
评论(0)
推荐(0)

浙公网安备 33010602011771号