上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 29 下一页
摘要: Given preorder and inorder traversal of a tree, construct the binary tree./** * Definition for binary tree * struct TreeNode { * int val; * Tr... 阅读全文
posted @ 2014-06-21 23:29 海滨银枪小霸王 阅读(130) 评论(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 @ 2014-06-21 21:32 海滨银枪小霸王 阅读(133) 评论(0) 推荐(0) 编辑
摘要: CXX = g++TARGET = bitmaploctestC_FLAGS += -g -WallLIB_FLAGS = -pthreadall: $(TARGET)bitmaploctest: bitmaploctest.o bitmaploc.o file_lock.o $(CXX) -... 阅读全文
posted @ 2014-06-20 11:24 海滨银枪小霸王 阅读(120) 评论(0) 推荐(0) 编辑
摘要: Valgrind 是一款 Linux下(支持 x86、x86_64和ppc32)程序的内存调试工具,它可以对编译后的二进制程序进行内存使用监测 阅读全文
posted @ 2014-06-20 11:17 海滨银枪小霸王 阅读(117) 评论(0) 推荐(0) 编辑
摘要: 已知的几个命令:encaconvmviconv 阅读全文
posted @ 2014-06-20 02:28 海滨银枪小霸王 阅读(113) 评论(0) 推荐(0) 编辑
摘要: 转自http://blog.csdn.net/wzzfeitian/article/details/30995303基本常识1.变量命名规则:首字符必须为字母中间不能有空格,可以有下划线_不能使用标点符号不能使用bash里的关键字2.变量赋值:变量名=值, (注意,= 两边不能有空格)var=1va... 阅读全文
posted @ 2014-06-19 23:00 海滨银枪小霸王 阅读(179) 评论(0) 推荐(0) 编辑
摘要: 1. shell变量只能是字母加_,必须以字母开头,不能是其它字符2. num = 2,则echo "this is ${num}nd" 才打印this is 2nd"this is {$num}nd" 将打印this is {2}nd3. shell变量赋值默认是字符串赋值. 如var = 1, ... 阅读全文
posted @ 2014-06-19 17:44 海滨银枪小霸王 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 联想实习招聘,注意岗位凑合看吧 阅读全文
posted @ 2014-06-18 22:36 海滨银枪小霸王 阅读(114) 评论(0) 推荐(0) 编辑
摘要: 不用if.else.while等一切的条件判断这题真是涨知识了:1. #includetypedef int (*fun)(int);int f1(int i){ return 0;}int f2(int i){ fun f[2]={ f1,f2 }; return i+f[!!i... 阅读全文
posted @ 2014-06-18 17:02 海滨银枪小霸王 阅读(154) 评论(0) 推荐(0) 编辑
摘要: qq的使用一直存在问题,真是考验人的耐性和windows上的体验不可同日而语,只能用webqq将就,但是极不方便找到过几种解决方案,但仍不尽人意这里提供一种,仍不完美,一直苦苦探寻 sudo add-apt-repository ppa:lainme/pidgin-lwqqsudo apt-get ... 阅读全文
posted @ 2014-06-15 01:57 海滨银枪小霸王 阅读(118) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 29 下一页