对一个目录的文件从cp936转换成utf-8
摘要:打开一个文件,确认能够无乱码打开[xw@localhostwork]$viNPOSP/src/sjl05.cpp但是,这里打开的方式是以cp936的编码方式打开的。编码的选择,记录在~/.vimrc, 这个文件只对xw用户有效。 1 syntax on "开启彩色显示 2 set nu ...
阅读全文
其实,你只是看起来很努力
摘要:其实,你只是看起来很努力一次上课,一个女孩子垂头丧气的跟我说,老师,我考了四次四级,还没过,究竟是为什么。我说,你真题做了吗?单词背了吗?她拿出已经翻破了的真题,跟我说,你讲的所有的题目我连答案都记得,单词书也背了很多遍了,我这么努力,为什么过不了。这是一个我印象特别深刻的学生,因为在我眼中,四级考...
阅读全文
TIOBE 2015年7月编程语言排行榜:C++的复兴
摘要:TIOBE 2015年7月编程语言排行榜:C++的复兴发表于2015-07-13 17:03|16086次阅读| 来源CSDN|128条评论| 作者钱曙光编程语言排行榜TIOBEC++摘要:C++是2015年上半年同比增长最快的编程语言,具体为C++ 增长3.1%、Java 增长2.0%、C#增长1...
阅读全文
面试常问的40个问题 附带经典答案!
摘要:面试常问的40个问题 附带经典答案!来源:贺亮的日志“你为什么要申请市场部的职位?” “你觉得自己适合做销售吗?” “你的职业规划是什么?” “你们班同学都是怎么找工作的?” …… 以上这些都是很常见的面试问题,但是应届毕业生在回答这些问题的时候,往往是侃侃而谈却未能获得面试官的认同。究其...
阅读全文
练习题 (九)
摘要:题目:Contains Duplicate IIIGiven an array of integers, find out whether there are two distinct indicesiandjin the array such that the difference between...
阅读全文
练习题 (八)
摘要:题目:Count Complete Tree NodesGiven acompletebinary tree, count the number of nodes.Definition of a complete binary tree fromWikipedia:In a complete bin...
阅读全文
练习题 (七)
摘要:题目:Basic CalculatorImplement a basic calculator to evaluate a simple expression string.The expression string may contain open(and closing parentheses)...
阅读全文
练习题 (六)
摘要:题目:Implement Stack using QueuesImplement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the el...
阅读全文
练习题 (五)
摘要:题目:Invert Binary TreeInvert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1解答:# Definition fo...
阅读全文