Four front pockets, two outside and two interior that offers ample space for storing small accessories such as mobile phone, iPod, wallet and keys. Li...
分类:
其他好文 时间:
2014-07-16 22:57:33
阅读次数:
180
Given a stringsconsists of upper/lower-case alphabets and empty space characters' ', return the length of last word in the string.If the last word doe...
分类:
其他好文 时间:
2014-07-16 21:00:49
阅读次数:
208
1. 1 #include 2 3 #define SPACE ' ' 4 #define NEWLINE '\n' 5 6 int main() 7 { 8 int spaces,newlines,others; 9 char ch;10 spaces = newli...
分类:
其他好文 时间:
2014-07-16 20:18:33
阅读次数:
139
{ "vmtemplate": { "NAME": "bbbb", "MEMORY": "512", "CPU": "1", "DESCRIPTION": "aaaa", "DISK": [ {...
分类:
其他好文 时间:
2014-07-16 19:54:28
阅读次数:
165
glm::mat4 View = glm::lookAt( glm::vec3(4,3,3), // Camera is at (4,3,3), in World Space glm::vec3(0,0,0), // and looks at the origin gl...
分类:
其他好文 时间:
2014-07-16 19:34:31
阅读次数:
588
Given an index k, return the kth row of the Pascal's triangle.
For example, given k = 3,
Return [1,3,3,1].
Note:
Could you optimize your algorithm to use only O(k) extra space?
原题链接:https:/...
分类:
其他好文 时间:
2014-07-12 20:43:11
阅读次数:
213
Given a linked list, swap every two adjacent nodes and return its head.
For example,
Given 1->2->3->4, you should return the list as 2->1->4->3.
Your algorithm should use only constant space. Y...
分类:
其他好文 时间:
2014-07-12 20:39:17
阅读次数:
225
基础1、说明:创建数据库CREATE DATABASE database-name 2、说明:删除数据库drop database dbname3、说明:备份sql server--- 创建 备份数据的 deviceUSE masterEXEC sp_addumpdevice 'disk', 'testBack', 'c:\mssql7backup\MyNwind_1.dat'--- 开始 备份B...
分类:
数据库 时间:
2014-07-12 19:56:29
阅读次数:
297
Given a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.
For example, given
s = "leetcode",
dict = ["leet"...
分类:
其他好文 时间:
2014-07-10 20:57:26
阅读次数:
215
编码规范要求不允许使用tab,但是又要有4个字符的缩进,连点4次space,这不是程序员的风格
来看看 eclipse 设置一次tab像space的转换
如下操作
Window->Preferences 基于K&R clone一个新的代码风格
更改缩进风格 缩进大小为4,即4个字符,OK完成了...
分类:
系统相关 时间:
2014-07-10 20:38:42
阅读次数:
303