Linux下为机器设置静态IP地址:vim /etc/sysconfig/network-scripts/ifcfg-eth0修改这个文件内容如下形式:# Intel Corporation 82541GI Gigabit Ethernet ControllerDEVICE=eth0BOOTPROT...
分类:
其他好文 时间:
2015-03-20 09:12:31
阅读次数:
177
刚开始学习框架的时候感觉很简单,都是用到javaEE的相关框架,自己就想研究源码,但是学了很久之后毫无头绪,所以还是扎扎实实学好Struts毕竟框架做起来要比自己写javaEE要简单,下面我们就来一步步的学习Struts吧,首先学习的第一步就是添加jar包 可以去http://pan.baidu.c...
分类:
其他好文 时间:
2015-03-20 09:10:37
阅读次数:
91
1. Use memory :In the question, it already stated that there must be a majority element. So discard empty situation.Also it needs the number, not the ...
分类:
其他好文 时间:
2015-03-20 09:11:55
阅读次数:
143
目录-=-讲解对象创建过程中,-=-堆内存和栈内存的情况-=-构造函数对类对象的成员变量的初始化过程-=-构造函数出栈-=-类的方法在不访问类对象的成员变量时造成的内存资源浪费怎么解决?-=-引出static方法扯淡--明确概念:-=-类:是对现实事物的抽象描述;举例:人,有年龄,姓名,高矮胖瘦等特...
分类:
其他好文 时间:
2015-03-20 09:09:27
阅读次数:
114
public void getProdata() //第一级 { List list = new List(); var query = from r in DataC.ChinaStates where r.ParentAreaCode == "0001" sel...
分类:
其他好文 时间:
2015-03-20 09:10:27
阅读次数:
115
1、 什么是反射 2、 命名空间与装配件的关系 3、 运行期得到类型信息有什么用 4、 如何使用反射获取类型 5、 如何根据类型来动态创建对象 6、 如何获取方法以及动态调用方法 7、 动态创建委托1、什么是反射 Reflection,中文翻译为反射。 这是.Net中获取运行时类型信息的方式...
分类:
其他好文 时间:
2015-03-20 09:08:55
阅读次数:
135
For this problem, we are OK to use hash set, since no numbers are needed. 1 class Solution { 2 public: 3 int lengthOfLongestSubstring(string s) { ...
分类:
其他好文 时间:
2015-03-20 09:09:30
阅读次数:
101
我认为技术派创业者最大的短板是缺少商业思维,另一个短板是对技术或产品洁癖,错失商业化机会。...
分类:
其他好文 时间:
2015-03-20 08:06:18
阅读次数:
181
Just use two pointers. CC150 classical question 1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNo...
分类:
其他好文 时间:
2015-03-20 08:06:22
阅读次数:
125
Seach one by one. 1 class Solution { 2 public: 3 string getNext(const string& s1, const string& s2) { 4 int len = min(s1.size(), s2.size()...
分类:
其他好文 时间:
2015-03-20 08:06:00
阅读次数:
121
At first beginning, I was trying to use hash set to record the characters. But I found that was wrong.Because if there are couple same chars, when you...
分类:
其他好文 时间:
2015-03-20 08:06:07
阅读次数:
164
O(n2): 1 class Solution { 2 public: 3 string getP(string s, int start, int end) { 4 while (start >= 0 && end result.size()) result = s1;1...
分类:
其他好文 时间:
2015-03-20 08:05:24
阅读次数:
123
Tried it with spliting words method. But need to check empty situation. 1 class Solution { 2 public: 3 int lengthOfLastWord(const char *s) { 4 ...
分类:
其他好文 时间:
2015-03-20 08:03:07
阅读次数:
129
1 document.onclick = function () {//这个函数将输出类似于国际象棋的棋盘 2 var tempx = 0; //x坐标 3 var tempy = 0; //y坐标 4 var...
分类:
其他好文 时间:
2015-03-20 08:05:03
阅读次数:
107
It use the hashset to do the tricks. 1 class Solution { 2 public: 3 int longestConsecutive(vector &num) { 4 int len = num.size(), result =...
分类:
其他好文 时间:
2015-03-20 08:02:46
阅读次数:
146
1 /** 2 * Definition for singly-linked list. 3 * struct ListNode { 4 * int val; 5 * ListNode *next; 6 * ListNode(int x) : val(x), ne...
分类:
其他好文 时间:
2015-03-20 08:03:53
阅读次数:
125
Use two vector to record left and right indexes that can extend the blocks. 1 class Solution { 2 public: 3 int largestRectangleArea(vector &height...
分类:
其他好文 时间:
2015-03-20 08:02:31
阅读次数:
126