上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页
摘要: 对于C++程序员来说,编辑器不是必要的,直接在IDE中写代码就可以。但有时,写一些短小的代码或者写一些脚本的时候,编辑器还是比较必要的。 以前用的是NotePad++,NotePad++还是挺不错的。本人以后想朝Linux方向发展,而Sublime是跨平台的,所以就放弃NotePa... 阅读全文
posted @ 2015-06-29 09:29 朱传林 阅读(194) 评论(0) 推荐(0) 编辑
摘要: 进入找工作倒计时状态了,计划好好复习一下数据结构和相关算法,预计用两天时间把见过的排序算法整理下,首先看一下时间复杂度为O(n2)的算法。 首先参考大话数据结构定义一个链表类:#include #define MAXSIZE 1000using namespace std;cl... 阅读全文
posted @ 2015-06-29 08:14 朱传林 阅读(167) 评论(0) 推荐(0) 编辑
摘要: /etc/profile,/etc/bashrc 是系统全局环境变量设定~/.profile,~/.bashrc用户家目录下的私有环境变量设定当登入系统时候获得一个shell进程时,其读取环境设定档有三步1首先读入的是全局环境变量设定档/etc/profile,然后根据其内容读取额外的设定的文档,如... 阅读全文
posted @ 2015-06-26 14:42 朱传林 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Givenn, how many structurally uniqueBST's(binary search trees) that store values 1...n?For example,Givenn= 3, there are a total of 5 unique BST's. 1... 阅读全文
posted @ 2015-06-23 14:09 朱传林 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 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 contains only n... 阅读全文
posted @ 2015-06-23 13:00 朱传林 阅读(153) 评论(0) 推荐(0) 编辑
摘要: Implement an iterator over a binary search tree (BST). Your iterator will be initialized with the root node of a BST.Callingnext()will return the next... 阅读全文
posted @ 2015-06-23 11:50 朱传林 阅读(112) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, return thezigzag level ordertraversal of its nodes' values. (ie, from left to right, then right to left for the next level and al... 阅读全文
posted @ 2015-06-22 10:08 朱传林 阅读(124) 评论(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 @ 2015-06-22 09:09 朱传林 阅读(115) 评论(0) 推荐(0) 编辑
摘要: Given a binary tree, imagine yourself standing on therightside of it, return the values of the nodes you can see ordered from top to bottom.For exampl... 阅读全文
posted @ 2015-06-22 09:00 朱传林 阅读(104) 评论(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 @ 2015-06-22 08:52 朱传林 阅读(138) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 15 下一页