animation:[[ animation-name ] || [ animation-duration ] || [ animation-timing-function ] || [ animation-delay ] || [ animation-iteration-count ] || [ ...
分类:
其他好文 时间:
2015-07-13 23:41:37
阅读次数:
135
【掌握】#if-#else 条件编译指令#include #define score 99int main(int argc, const char * argv[]) { //传统方式// int score = 76;// //判断成绩属于哪个等级// if(sco...
分类:
其他好文 时间:
2015-07-13 23:40:26
阅读次数:
148
Question:Write a program to find the node at which the intersection of two singly linked lists begins.For example, the following two linked lists:A: ....
分类:
其他好文 时间:
2015-07-13 23:40:54
阅读次数:
112
今天开始学习了EF的相关内容,以前只知道ADO.NET,今天学习后觉得有必要写个相关的学习心得,今天就先写第一篇。我们的再学习的过程中所用到的环境是Windows7+SQLServer2008+VS2012。①下面我们便开始创建一个数据库名为Test,数据库里建立两张表Student和Class。②...
分类:
其他好文 时间:
2015-07-13 23:41:33
阅读次数:
261
What is Service Oriented Architecture (SOA)?There have been so many interpretations of this throughout the years that it seems important to establish ...
分类:
其他好文 时间:
2015-07-13 23:41:23
阅读次数:
204
外国网站ViralNova创业者是如何做到光靠一人之力,让网站价值1亿美元的?在个人的创业过程中也遭遇挫折。创始人DeLong最终选择出售网站,并非是网站运营不善,那又是什么原因呢?下文着重介绍DeLong的创业历程。
分类:
其他好文 时间:
2015-07-13 23:42:16
阅读次数:
148
|题目给一个01矩阵,求不同的岛屿的个数。0代表海,1代表岛,如果两个1相邻,那么这两个1属于同一个岛。我们只考虑上下左右为相邻。|在线测试本题http://www.lintcode.com/zh-cn/problem/number-of-islands/|难度容易
分类:
其他好文 时间:
2015-07-13 23:42:08
阅读次数:
312
JVM工作原理和特点主要是指操作系统装入JVM是通过jdk中Java.exe来完成,通过下面4步来完成JVM环境. 1.创建JVM装载环境和配置 2.装载JVM.dll 3.初始化JVM.dll并挂界到JNIENV(JNI调用接口)实例 4.调用JNIEnv实例装...
分类:
其他好文 时间:
2015-07-13 22:37:48
阅读次数:
133
http://scikit-learn.org/stable/modules/generated/sklearn.feature_extraction.text.CountVectorizer.html#sklearn.feature_extraction.text.CountVectorizer
class sklearn.feature_extraction.text.C...
分类:
其他好文 时间:
2015-07-13 22:35:59
阅读次数:
778
Volley源码分析
Volley简介 volley官方地址
在Google I/0 2013中发布了Volley.Volley是Android平台上的网络通信库,能使网络通信更快,更简单,更健壮。这是Volley名称的由来:a burst or emission of many things or a large amount at once.Voll...
分类:
其他好文 时间:
2015-07-13 22:33:48
阅读次数:
412
Description
A histogram is a polygon composed of a sequence of rectangles aligned at a common base line. The rectangles have equal widths but may have different heights. For example, the figure on ...
分类:
其他好文 时间:
2015-07-13 22:33:34
阅读次数:
165
题目链接:LightOJ 1070 Algebraic Problem
题意:已知a+b和ab的值求a^n+b^n。结果模2^64。
思路:
1.找递推式
得到递推式之后就是矩阵快速幂了
注意:模2^64,定义成unsigned long long 类型,因为无符号类型超过最大范围的数与该数%最大范围 的效果是一样的。
AC代码:
#include
#incl...
分类:
其他好文 时间:
2015-07-13 22:33:55
阅读次数:
236
有关栈API详情请参看我的另一篇博文:栈的链式存储 - API实现
实例:
5 + 4=> 5 4 +
1 + 2 * 3 => 1 2 3 * +
8 + ( 3 – 1 ) * 5 => 8 3 1 – 5 * +
中缀表达式符合人类的阅读和思维习惯
后缀表达式符合计算机的“运算习惯”
中缀转后缀算法:
遍历中缀表达式中的数字和符号
对于数字:直接输出
对于符号:...
分类:
其他好文 时间:
2015-07-13 22:35:30
阅读次数:
167
C语言实现二叉树的遍历二叉树结点的定义/*
先序,中序,后序的遍历时间复杂度为O(n),每个结点只访问一次。 层序的时间复杂度最差为O(n^2),当二叉树基本平衡时,时间复杂度为O(n) n为结点个数
*/typedef int tree_node_element;
/**
* @author 韦轩
* @time 2015/07/11
* @brief 二叉树的结点数据结...
分类:
其他好文 时间:
2015-07-13 22:35:19
阅读次数:
205
分析基于内核版本2.6.12.6
在什么情况下,会触发调度?
Linux进程的调度主要分为主动调度和被动调度两大类。
◆主动调度
主动调度就是进程自己缺少相应的所申请的资源,显示调用schedule,让出处理器。
◆被动调度
在整个linux运行过程中,被动调度又可细分为两种:
●用户态抢占调度
●内核态抢占调度
下面就结合内核代码分析上述各种调度时机的详细情况。
...
分类:
其他好文 时间:
2015-07-13 22:32:19
阅读次数:
306
Mike is the president of country What-The-Fatherland. There are n bears living in this country besides Mike. All of them are standing
in a line and they are numbered from 1 to n from
left to right...
分类:
其他好文 时间:
2015-07-13 22:34:37
阅读次数:
175
适配器模式属于结构型设计模式
设计意图:将一个类的接口转换成客户希望的另外一个接口。A d a p t e r模式使得原本由于接口不兼容而不能一起工作的那些类可以一起工作。
该模式正如名字一样适配器,就是为了能使之前的老接口可以焕发青春的模式,使用一个新的接口把已经存在的接口发布出去。
这样的设计模式,我们一版在企业信息化升级时会经常使用,有些企业存在的老接口经常不能对外接收数据,而重构...
分类:
其他好文 时间:
2015-07-13 22:32:26
阅读次数:
179