摘要:
打开一个文件,确认能够无乱码打开[xw@localhostwork]$viNPOSP/src/sjl05.cpp但是,这里打开的方式是以cp936的编码方式打开的。编码的选择,记录在~/.vimrc, 这个文件只对xw用户有效。 1 syntax on "开启彩色显示 2 set nu ... 阅读全文
摘要:
题目: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)... 阅读全文