1.写前端html login.html 登录界面样式 2.写控制器其中就是login方法与ulogin方法controller包下IndexController类 3.写登录验证器validator包下的UserLoginValidator继承JFinal的Validator ...
分类:
其他好文 时间:
2017-10-03 20:10:42
阅读次数:
293
http://poj.org/problem?id=3693 题意:给定一个字符串,求重复次数最多的连续重复子串。 思路: 这道题确实是搞了很久,首先枚举连续子串的长度L,那么子串肯定包含了r[k],r[k+2*L],r[k+3*L].....(k是某个数)中相邻的两个。现在我们只需要枚举这相邻的两 ...
分类:
其他好文 时间:
2017-10-03 09:30:26
阅读次数:
228
RMQ(Range Minimum/Maximum Query)问题是指:对于长度为n的数列A,回答若干询问RMQ(A,i,j),返回数列A中下标i,j里的最小/大值,即RMQ问题是指求区间最值的问题。 时间复杂度:O(N)~ O(logN) 主要思想:分治/倍增/动态规划 主要算法: 1.朴素(暴 ...
分类:
其他好文 时间:
2017-10-03 00:25:02
阅读次数:
202
三大关系数据库字段值超长的一个有趣对比 在开发中,我们可能会遇到插入字段值超长的情况,前阵子遇到这样一个案例,结果一对比后发现一个有趣的现象,如果插入字段值超长,ORACLE、SQL Server、MySQL它们会提示那个字段值超长吗?下面看看实验吧: ORACLE数据库 SQL> create t... ...
分类:
数据库 时间:
2017-10-02 10:09:59
阅读次数:
221
Maximum repetition substring Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 10612 Accepted: 3277 Description The repetition number of a st ...
分类:
编程语言 时间:
2017-10-01 23:04:21
阅读次数:
269
Given a string array words, find the maximum value of length(word[i]) * length(word[j]) where the two words do not share common letters. You may assum ...
分类:
其他好文 时间:
2017-10-01 15:14:32
阅读次数:
107
1、如果oracle连接数达到上限,使用plsql去连接oracle时会出现连不上的错误,典型报错为: maximum number of processes (150) exceeded 2、重启linux机器(否则连不上),使用如下命令登录: sqlplus / as sysdba 查看系统连接... ...
分类:
数据库 时间:
2017-09-30 22:57:31
阅读次数:
253
在算法实现过程中,尽量避免使用for loop 在计算例如矩阵乘法中,使用numpy写好的方法 1、计算两个矩阵相乘 np.dot(A,B) 2、对一个向量中的每一项做指数运算 np.exp(A) 类似的函数 np.log() np.abs() 一看就清楚,具体就不写了 3、计算向量中的每一项与某一 ...
分类:
其他好文 时间:
2017-09-30 20:56:04
阅读次数:
274
1、查看内存槽数、那个槽位插了内存,大小是多少dmidecode|grep-P-A5"Memory\s+Device"|grepSize|grep-vRange2、查看最大支持内存数dmidecode|grep-P‘Maximum\s+Capacity‘3、查看槽位上内存的速率,没插就是unknown。dmidecode|grep-A16"MemoryDevice"|grep‘Speed‘
分类:
其他好文 时间:
2017-09-30 15:09:40
阅读次数:
194
Say you have an array for which the ith element is the price of a given stock on day i. Design an algorithm to find the maximum profit. You may comple ...
分类:
其他好文 时间:
2017-09-29 13:19:50
阅读次数:
140