- 博客(8)
- 资源 (4)
- 收藏
- 关注
转载 347. Top K Frequent Elements
Given a non-empty array of integers, return the k most frequent elements. For example, Given [1,1,1,2,2,3] and k = 2, return [1,2]. Note: You may assume k is always valid, 1 ≤ k ≤ number of u
2016-09-05 19:52:35
273
转载 【LeetCode】105. Construct Binary Tree from Preorder and Inorder Traversal
Construct Binary Tree from Preorder and Inorder Traversal Given preorder and inorder traversal of a tree, construct the binary tree. Note: You may assume that duplicates do not exist in the tre
2016-09-04 20:51:01
186
原创 LeetCode:152_Maximum Product Subarray | 最大乘积连续子数组 | Medium
题目: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 contiguou
2016-09-04 19:09:16
268
转载 Spring中DispacherServlet、WebApplicationContext、ServletContext的关系
解释一: 要想很好理解这三个上下文的关系,需要先熟悉spring是怎样在web容器中启动起来的。spring的启动过程其实就是其IoC容器的启动过程,对于web程序,IoC容器启动过程即是建立上下文的过程。 spring的启动过程: 首先,对于一个web应用,其部署在web容器中,web容器提供其一个全局的上下文环境,这个上下文就是ServletContext,其为后面的spring I
2016-08-26 18:11:49
421
转载 MVC三层模型(struts+spring+hibernate)总结
简单的说: struts 控制用的 hibernate 操作数据库的 spring 用解耦的 详细的说: STRUTS 在 SSH 框架中起控制的作用 , 其核心是 Controller, 即 ActionServlet, 而 ActionServlet 的核心就是 Struts-confi g.xml. 主要控制逻辑关系的处理 . hibernate 是数据持久化层 , 是一种新的对
2016-08-15 21:27:09
293
转载 Spring对Hibernate事务管理
原文地址:http://www.cnblogs.com/macula/archive/2013/05/08/3066914.html 每次带班,讲到Spring事务这一块的时候,大家总是有很多的疑问,其实Spring事务并不难,可能初次接触的时候有的不好理解,今天我们就详细来谈一下Spring的事务管理机制,主要是对Hibernate进行的事务管理。 在谈Spring事务管理之前我们想
2016-08-15 20:34:46
211
转载 Eclipse自动补全设置与Eclipse源代码下载
以前使用VisualStudio和Sublime写代码的时候有很完善的代码提示,但是最近开始使用Eclipse弄JAVA的时候发现它的代码提示不是很习惯。上网找了一些资料,修改了代码提示的方式,记录在博客上供大家查阅。 本文主要参考了以下文章 http://www.cnblogs.com/a-zx/p/3388041.html 本文基于 Eclipse Java EE ID
2016-08-09 21:45:00
723
原创 LeetCode答案 17. Letter Combinations of a Phone Number
17. Letter Combinations of a Phone Number Question Editorial Solution My Submissions Total Accepted: 89976 Total Submissions: 300974 Difficulty: Medium Given a digit
2016-07-31 20:24:57
312
Tab标签选项Demo
2017-01-06
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人