题目:输入一行字符,分别统计出其中英文字母、空格、数字和其它字符的个数。#includeint main(void){ char c; int letters = 0, space = 0, digit = 0, others = 0; while ((c=getchar())...
分类:
编程语言 时间:
2015-05-11 14:24:51
阅读次数:
103
原文:SQL Server :理解Page Free Space (PFS) 页我们已经讨论了GAM与SGAM页,数据页(Data Page) ,现在我们来看下页面自由空间页(Page Free Space (PFS) )。 PFS在数据文件里是第2页(页号1,页号从0开始),接在文件头(file ...
分类:
数据库 时间:
2015-05-11 10:28:11
阅读次数:
200
Given two sorted integer arrays nums1 and nums2, merge nums2 into nums1 as one sorted array.
Note:
You may assume that nums1 has enough space (size that is greater or equal to m + n) to hold ad...
分类:
其他好文 时间:
2015-05-11 09:08:04
阅读次数:
161
Problem:
Given a linked list, determine if it has a cycle in it.
Follow up:
Can you solve it without using extra space?
https://oj.leetcode.com/problems/linked-list-cycle/
Problem II:
...
分类:
其他好文 时间:
2015-05-10 15:44:57
阅读次数:
121
install oracle11g on centos6.51. swap分区这个的话有个规则,如下:Available RAM Swap Space Required
Between 1 GB and 2 GB 1.5 times the size of the RAM
Between 2 GB and 16 GB Equal to the size of the RAM
More than...
分类:
数据库 时间:
2015-05-10 14:22:16
阅读次数:
127
Sed简介
sed是一种在线编辑器,它一次处理一行内容。处理时,把当前处理的行存储在临时缓冲区中,称为“模式空间”(pattern space),接着用sed命令处理缓冲区中的内容,处理完成后,把缓冲区的内容送往屏幕。接着处理下一行,这样不断重复,直到文件末尾。文件内容并没有改变,除非你使用重定向存储输出。Sed主要用来自动编辑一个或多个文件;简化对文件的反复操作;编写转换程序等。以下介绍的是Gnu...
分类:
其他好文 时间:
2015-05-10 11:31:04
阅读次数:
185
Java中的字符占两个字节。一些常用的转义字符:①\r表示接受键盘输入,相当于按下了回车键;②\n表示换行;③\t表示制表符,相当于Table键;④\b表示退格键,相当于Back Space键;⑤\'表示单引号;⑥\''表示双引号;⑦\\表示一个斜杠\。
分类:
编程语言 时间:
2015-05-09 20:28:12
阅读次数:
129
Determine whether an integer is a palindrome. Do this without extra space.思想: 先计算出这个整数的逆序数,然后比较它和原来的数每位是否都相同即可。另外要注意负数没有回文数,还应该考虑overflow一定不是回文数。AC代码:...
分类:
其他好文 时间:
2015-05-09 18:58:58
阅读次数:
121
Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (i...
分类:
其他好文 时间:
2015-05-09 07:42:26
阅读次数:
124