题目描述 写出一个程序,接受一个有字母和数字以及空格组成的字符串,和一个字符,然后输出输入字符串中含有该字符的个数。不区分大小写。 输入描述: 输入一个有字母和数字以及空格组成的字符串,和一个字符。 输出描述: 输出输入字符串中含有该字符的个数。 输入例子: ABCDEF A import java ...
分类:
其他好文 时间:
2017-03-14 18:46:09
阅读次数:
172
1.beforeEach(inject(){...})中的代码会在beforeEach所在的describe中的每一个it(包括子describe中的it)前执行一次。2.假如it不是写在describe中而是写在另一个it中则it中的内容不会被执行,且beforeEach不会执行。同理inject ...
分类:
其他好文 时间:
2017-03-06 19:17:36
阅读次数:
192
AVCodec是存储编解码器信息的结构体,特指一个特定的解码器,比如H264编码器的名字,ID,支持的视频格式,支持的采样率等; AVCodecContext是一个描述编解码器采用的具体参数,比如采用的是那种编码器(H264或MPEG等),采用的采样率,声道数等; AVPacket是存储编码后的数据 ...
分类:
其他好文 时间:
2017-03-05 19:31:36
阅读次数:
217
题目描述 把一个数组最开始的若干个元素搬到数组的末尾,我们称之为数组的旋转。输入一个非递减排序的数组的一个旋转,输出旋转数组的最小元素。例如数组{3,4,5,1,2}为{1,2,3,4,5}的一个旋转,该数组的最小值为1。NOTE:给出的所有元素都大于0,若数组大小为0,请返回0。 class So ...
分类:
编程语言 时间:
2017-03-01 23:22:22
阅读次数:
362
1、如何登陆mysql数据库 MySQL -u username -p 2、如何开启/关闭mysql服务 service mysql start/stop 3、查看mysql的状态 service mysql status 4、如何显示数所有数据库 show databases 5、如何获取表内所有 ...
分类:
数据库 时间:
2017-03-01 19:48:37
阅读次数:
208
Requirements:Briefly describe an error from your past projects that you have recently completed or an error from other projects which impress you most ...
分类:
其他好文 时间:
2017-02-27 19:22:41
阅读次数:
172
–Briefly describe a project from your personal life that you have recently completed. State the nature of the project, the initial objectives, and pla ...
分类:
其他好文 时间:
2017-02-27 19:02:08
阅读次数:
224
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 思路:参考:http://www.cnblogs.com/zuoyuan/p/3772372.html ...
分类:
其他好文 时间:
2017-02-26 07:58:56
阅读次数:
140
/* Time: 2017-02-22 11:11:15 Describe: C++程序将标准输入/输出重定向为文件输入/输出。 */ #include #include #include using namespace std; void f() { string line; while(getl... ...
分类:
编程语言 时间:
2017-02-22 12:50:16
阅读次数:
199
Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 解法1: 采用递归的方法,不管合并几个,归根到底还是需要两两合并。 首先想到的是前两个先合并,然后再跟 ...
分类:
其他好文 时间:
2017-02-20 00:58:20
阅读次数:
198