- 博客(10)
- 收藏
- 关注
原创 Maximum Product Subarray
Find the contiguous subarray within an array (containing at least one number) which has the largest product. For example, given the array [2,3,-2,4], the contiguous subarray [2,3] has the largest
2014-12-08 22:28:53
608
原创 Intersection of Two Linked Lists
For example, the following two linked lists: A: a1 → a2 ↘ c1 → c2 → c3 ↗ B: b1 → b2 → b3 begin to intersect at
2014-12-03 15:55:03
1644
原创 Find Minimum in Rotated Sorted Array
Suppose a sorted array is rotated at some pivot unknown to you beforehand. 算法分析: 给定一个数组[a1,a2,a3……,an-1,an],不存在重复元素,求出其最小的元素。 首先想到O(n)的算法,即遍历一次。 看看O(logn)的算法: 因为给定数组是排序数组经过旋转而得到的,因此若a1 > an,则该数组必
2014-12-03 15:05:55
623
转载 Struts2 Hibernate Spring 运行流程与部分机制
Struts2 Hibernate Spring 运行流程与部分机制 Tomcat容器被加载,找到该webApplication相对应的web.xml 开始解析web.xml中的信息 读取到一个spring的监听器,告诉spring容器开始初始化配置文件中的信息,spring容器配置文件默认applicationContext.xml www.2cto.com org.sprin
2014-01-19 14:53:09
979
转载 cookie机制和session机制的区
一、cookie机制和session机制的区别 ************************************************************************************* 一、cookie机制和session机制的区别 **************************************************************
2013-11-26 09:02:41
814
原创 java程序链接sql server
java程序链接sql server的方法有两种: 1、通过jdbc-odbc桥驱动器进行链接。 链接步骤: a、进行数据源的配置(win7) 控制面板——系统和安全——管理工具——数据源ODBC 点击添加 选择SQL Server 名称要填,这个将在java程序里会用到。 服务器就填个.代表本地数据库 选择使用用户输入登录I
2012-12-10 19:57:48
780
原创 String
How does it work? Let's look at the bytecode! The compiler takes your code: String s = null; s = s + "hello"; System.out.println(s); // prints "nullhello" and compiles it into bytecode as if you had
2012-12-10 19:20:58
450
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅
2