/******************************************************************
题目:输入两个递增排序的链表,合并这两个链表并使新链表中的节点仍然
是按照递增排序的。
******************************************************************/
#include
struct L...
分类:
其他 时间:
2014-03-12 01:34:58
收藏:
0 评论:
0 赞:
0 阅读:
428
Java访问权限修饰符...
分类:
其他 时间:
2014-03-12 00:48:44
收藏:
0 评论:
0 赞:
0 阅读:
485
??
UAC是什么意思,看官方解释:
User Account Control (UAC) is a new security component in Windows Vista and newer operating systems. With UAC fully enabled, interactive administrators normally run with least u...
分类:
其他 时间:
2014-03-12 00:22:31
收藏:
0 评论:
0 赞:
0 阅读:
1506
java名词解释
JSP
Java Server Pages(Java服务器端页面),J2EE标准中用于创建动态页面内容的技术标准,基于Servlet技术,需要支持该标准的服务器才能运行,最常用的JSP服务器之一就是Tomcat。
JFC
Java Foundation Classes(JAVA基础类),集合了GUI组件以及其他能简化开发和展开桌面和Internet/Intrane...
分类:
其他 时间:
2014-03-12 01:47:11
收藏:
0 评论:
0 赞:
0 阅读:
375
点击打开链接
A. Vanya and Cards
time limit per test
1 second
memory limit per test
256 megabytes
input
standard input
output
standard output
Vanya loves playing. He even ...
分类:
其他 时间:
2014-03-12 00:24:40
收藏:
0 评论:
0 赞:
0 阅读:
566
在师哥师姐给我们传授考试系统的经验过程中,提到了Staic,而我对于static也是从未注意,但是从那天学姐给我们讲了static后,我发现这个单词真的很需要深刻的了解一下,下面我来说说我知道的Static。
使用特点
1、static意思是静态,可以修饰类、字段、属性、方法,标记为static的就不用创建实例对象调用了,可以通过类名直接点出来。例如...
分类:
其他 时间:
2014-03-12 01:34:27
收藏:
0 评论:
0 赞:
0 阅读:
452
xenserver 推荐的方式是使用一个服务器之外的共享存储挂载iso文件。由于新买的服务器cpu与原有的池不兼容,所以暂时先使用本地存储的iso库。由于xcp主机默认的根分区只有4G的存储空间,一两个iso文件就会导致主机空间使用完,所以新添加了一个分区sda3并将其作为iso库的存储。
1 新建一个存放iso文件的目录
mkdir /isoImage
2 fdisk...
分类:
其他 时间:
2014-03-12 01:46:43
收藏:
0 评论:
0 赞:
0 阅读:
531
1、全局菜单关闭与打开
关闭:sudo apt-get autoremove appmenu-gtk appmenu-gtk3 appmenu-qt
但是对于firefox,还需要在“扩展组件”-“扩展”里面把“global menu bar integration”这一项禁用
打开:sudo apt-get install appmenu-gtk appmenu-gtk3 appmenu-...
分类:
其他 时间:
2014-03-12 01:10:23
收藏:
0 评论:
0 赞:
0 阅读:
528
这题可以参考Zyearn的博客(斐波那契数列的几种计算机解法):
http://blog.csdn.net/zyearn/article/details/7878657
使用通项公式的方式,算法复杂度为o(1),应该是最快的。
先看下Fibonacci数列的定义:
使用通项公式的概念,可以得到:
使用矩阵计算可以得到:
...
分类:
其他 时间:
2014-03-12 00:24:07
收藏:
0 评论:
0 赞:
0 阅读:
582
shell编程之sed...
分类:
其他 时间:
2014-03-12 01:11:23
收藏:
0 评论:
0 赞:
0 阅读:
539
Courses
Problem Description
Consider a group of N students and P courses. Each student visits zero, one or more than one courses. Your task is to determine whether it is possible to form a committee of exactly P students that satisfies simultaneously the ...
分类:
其他 时间:
2014-03-12 01:15:56
收藏:
0 评论:
0 赞:
0 阅读:
533
今天遇到一个结构体数组的定义错误,MDK编译器报错为:
error: expression must be a pointer to a complete object type
本以为是函数形参为指针,调的是结构体变量名而出错,以前遇到过这种调用错误。但是检查后发现并没有调用问题。结构体数组定义如下:
"func.c"中:
struct msg_param{
uint16_t ...
分类:
其他 时间:
2014-03-12 01:27:14
收藏:
0 评论:
0 赞:
0 阅读:
745
Pat1038代码
题目描述:
Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given {32, 321, 3214, 0229, 87}, we can recover many numbers such...
分类:
其他 时间:
2014-03-12 01:42:34
收藏:
0 评论:
0 赞:
0 阅读:
523
题目:输入一个表示整数的字符串,把该字符串转换成整数并输出。
例如输入字符串"345",则输出整数345。
分析:
可以直接使用atoi函数, 但这个题目显然不希望你这么做
我们还是按照常规方法来做,比如整数字符串长度为n= strlen(str)。
最右边的为个数,往左依次是十位,百位等。
右边---左边
0 1 2 ...
比...
分类:
其他 时间:
2014-03-12 00:21:00
收藏:
0 评论:
0 赞:
0 阅读:
578
Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.
Above is a histogram where width of each bar is 1, given height = [2,1,5,6,2,3].
The largest ...
分类:
其他 时间:
2014-03-12 00:20:28
收藏:
0 评论:
0 赞:
0 阅读:
469
YY's new problem
Time Limit: 12000/4000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 3501 Accepted Submission(s): 984
Problem Description
Given a permutation P of 1 to N, YY wants to know whether there exists suc...
分类:
其他 时间:
2014-03-12 00:47:08
收藏:
0 评论:
0 赞:
0 阅读:
596
之前传过一个用window类实现的,但在实际项目中用多个window会出现一些不必要的冲突。所以用View重新实现一个。
例子:http://download.csdn.net/detail/qqmcy/7025253
ViewController.h
//
// ViewController.h
// 放大镜例子
//
// Created by 杜甲 on 14-3-10.
/...
分类:
其他 时间:
2014-03-12 00:46:40
收藏:
0 评论:
0 赞:
0 阅读:
402
#include
struct BinaryTreeNode
{
int m_nValue;
BinaryTreeNode* m_pLeft;
BinaryTreeNode* m_pRight;
};
BinaryTreeNode* createBinaryTreeNode(int value)
{
BinaryTreeNode* pNewNode = new BinaryTreeNo...
分类:
其他 时间:
2014-03-12 01:21:05
收藏:
0 评论:
0 赞:
0 阅读:
528
Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:
Integers in each row are sorted from left to right.
The first integer of each row is greater than the last integer of the previous row.
Fo...
分类:
其他 时间:
2014-03-12 01:30:50
收藏:
0 评论:
0 赞:
0 阅读:
481
书面作业
1. 用Maven搭建Mahout的开发环境,并完成PPT 26页,最简单的例子。要求有过程说明和截图。
1.1开发环境
– Win7 64bit
– Java 1.7.0_51
– Maven-3.2.1
–myEclipse2013 SR
– Mahout-0.8
– Hadoop-2.2.0
1.2 用Maven构建Mahout开发环境
1.2...
分类:
其他 时间:
2014-03-12 01:44:37
收藏:
0 评论:
0 赞:
0 阅读:
540