自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(161)
  • 资源 (1)
  • 收藏
  • 关注

原创 Hibernate4 buildSessionFactory过时处理办法

这几天做毕设,用到Hibernate,发现buildSessionFactory方法,上网找资料得到的答案如下:public void test() { Configuration cfg = new Configuration(); cfg.configure(); ServiceRegistry sr = new ServiceRegistryBuilder()....

2014-12-11 21:18:05 151

原创 【java】SQL server 连接异常

记录每次遇到的bug与异常 jdbc的下载地址与DBMS的配制方法见下文http://www.360doc.com/content/14/0806/02/15319145_399731507.shtml 我在测试链接的时候遇到了如下异常:数据库驱动加载成功...com.microsoft.sqlserver.jdbc.SQLServerException: 用户 'sa' 登...

2014-12-10 16:23:04 274

原创 [leetcode]Add Two Numbers

又是一篇漏网之鱼,请大家移步新博文地址:[leetcode]Add Two Numbers Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their no...

2014-07-23 16:18:33 122

原创 [leetcode]Remove Duplicates from Sorted Array

新博文地址:[leetcode]Remove Duplicates from Sorted Array II Remove Duplicates from Sorted Array IIFollow up for "Remove Duplicates":What if duplicates are allowed at most twice?For example,Given sort...

2014-07-22 00:05:57 105

原创 [leetcode]Reorder List

新博文地址:[leetcode]Reorder ListReorder ListGiven a singly linked list L: L0→L1→…→Ln-1→Ln,reorder it to: L0→Ln→L1→Ln-1→L2→Ln-2→…You must do this in-place without altering the nodes' values.For exam...

2014-07-21 15:15:26 95

原创 [leetcode]Plus One

这道题包含在难度一的习题汇总里面。现在单独列出来。新博文换了一种思路,代码更简洁,空间更节省新博文地址:[leetcode]Plus One Plus OneGiven a non-negative number represented as an array of digits, plus one to the number.The digits are stored s...

2014-07-17 19:43:59 81

原创 终于刷完一遍了【搬家】

博客搬家鸟,请戳这里:喵星人与汪星人 第二遍刷才发现第一遍的代码有多愁淫....新博文的算法,无论是在复杂度,还是代码简洁度、可读性上,都要优于本博客的代码,建议大家看博客的时候,直接点新博文地址。新博文不断更新中 终于刷完一遍了,马克一下151道题目,完全自己做的大概有120+道左右,借鉴别人思路的大概20道左右,抄的大概10道左右.....leetcode151...

2014-07-03 00:38:42 292

原创 [leetcode]Sudoku Solver

新博文地址:[leetcode]Sudoku Solver Sudoku SolverWrite a program to solve a Sudoku puzzle by filling the empty cells.Empty cells are indicated by the character '.'.You may assume that there will be...

2014-07-03 00:33:20 134

原创 [leetcode]Scramble String

Scramble StringGiven a string s1, we may represent it as a binary tree by partitioning it to two non-empty substrings recursively.Below is one possible representation of s1 = "great":        great...

2014-07-02 20:47:46 86

原创 [leecode]Word Ladder II

Word Ladder IIGiven two words (start and end), and a dictionary, find all shortest transformation sequence(s) from start to end, such that:Only one letter can be changed at a timeEach intermediate...

2014-07-02 17:28:37 109

原创 [leetcode]Clone Graph

新博文地址:[leecode]Clone GraphClone GraphClone an undirected graph. Each node in the graph contains a label and a list of its neighbors.OJ's undirected graph serialization:Nodes are labeled uniquely...

2014-07-01 21:56:14 92

原创 [leetcode]Max Points on a Line

Max Points on a LineGiven n points on a 2D plane, find the maximum number of points that lie on the same straight line.坐标轴上面有n个点,求共线的最大点数。这道题是leetcode上通过率最低的,但是绝对不是最难的,几点共线我们可以根据y = k x + b算出:...

2014-07-01 11:16:04 98

原创 [leetcode]Binary Tree Maximum Path Sum

新博文地址:[leetcode]Binary Tree Maximum Path Sum Binary Tree Maximum Path SumGiven a binary tree, find the maximum path sum.The path may start and end at any node in the tree.For example:Given th...

2014-06-30 20:24:40 108

原创 [leetcode]Maximal Rectangle

Maximal RectangleGiven a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area. 最土的做法无疑就是遍历矩阵中的所有矩形,时间复杂度为O(n^2 * m ^2)不用试估计也会超时了,看了讨论组里面有位...

2014-06-30 17:03:02 111

原创 [leetcode]Interleaving String

新博文地址:[leetcode]Interleaving String建议大家看新博文,自己想的算法比本博文借鉴的算法要更容易理解。Interleaving StringGiven s1, s2, s3, find whether s3 is formed by the interleaving of s1 and s2.For example,Given:s1 = "aabcc"...

2014-06-29 20:53:17 90

原创 [leetcode]Multiply Strings

Multiply StringsGiven two numbers represented as strings, return multiplication of the numbers as a string.Note: The numbers can be arbitrarily large and are non-negative. 让大家见识见识第一次的算法提交之后有多坑。...

2014-06-29 17:32:29 81

原创 [leetcode]Largest Rectangle in Histogram

Largest Rectangle in Histogram Given n non-negative integers representing the histogram's bar height where the width of each bar is 1, find the area of largest rectangle in the histogram.Above is...

2014-06-29 11:55:54 97

原创 [leetcode]Merge Intervals

不得不说,这个算法还是不错的,就是Collections.sort()方法不会用。。。 新博文地址:[leetcode]Merge Intervals Merge IntervalsGiven a collection of intervals, merge all overlapping intervals.For example,Given [1,3],[2,6],[...

2014-06-28 23:39:27 87

原创 免安装版mysql的安装配置与卸载

真是蛋疼啊,这么长时间不碰工程上的东西,手生的不得了,配置个环境浪费了半天时间。拙计。下午下载了mysql,现在官网上都是免安装的?看着教程配置完之后,真是手贱啊,把权限修改了,结果自己本地都进不去了,只好又把mysql服务卸载了,不过正因为如此学到了SC命令的一些运用。具体mysql免安装版的配置如下:写道解压到自定义目录,我这里演示的是D:\wamp\mysql\复制根目录下...

2014-06-28 17:27:07 158

原创 [leetcode]Spiral Matrix

新博文地址:[leetcode]Spiral MatrixSpiral MatrixGiven a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2,...

2014-06-26 22:42:50 79

原创 [leetcode]4Sum

新博文地址:[leetcode]4Sum4SumGiven an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array which gives the sum of t...

2014-06-26 20:51:40 76

原创 [leetcode]Regular Expression Matching

新博客地址:[leetcode]Regular Expression MatchingRegular Expression MatchingImplement regular expression matching with support for '.' and '*'.'.' Matches any single character.'*' Matches zero or mo...

2014-06-26 16:45:13 78

原创 [leetcode]Insert Interval

这道题。。。。简直了。。。新博文地址:[leetcode]Insert Interval Insert IntervalGiven a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).You may assume that the inte...

2014-06-25 21:08:52 82

原创 [leetcode]Substring with Concatenation of All Words

新博文地址:[leetcode]Substring with Concatenation of All WordsSubstring with Concatenation of All WordsYou are given a string, S, and a list of words, L, that are all of the same length. Find all sta...

2014-06-25 16:41:00 91

原创 [leetcode]Best Time to Buy and Sell Stock III

Best Time to Buy and Sell Stock IIISay 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 complete at most tw...

2014-06-23 15:25:24 68

原创 [leetcode]Gas Station

新博文地址:[leetcode]Gas StationGas StationThere are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car with an unlimited gas tank and it costs cost...

2014-06-23 11:20:22 70

原创 [leetcode]Median of Two Sorted Arrays

新博文地址:[leetcode]Median of Two Sorted ArraysMedian of Two Sorted ArraysThere are two sorted arrays A and B of size m and n respectively. Find the median of the two sorted arrays. The overall ru...

2014-06-22 23:31:35 82

原创 [leetcode]Minimum Window Substring

新博文地址:[leetcode]Minimum Window Substring Minimum Window SubstringGiven a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n).For...

2014-06-22 21:31:56 93

原创 [leetcode]First Missing Positive

新博文地址:[leetcode]First Missing PositiveFirst Missing PositiveGiven an unsorted integer array, find the first missing positive integer.For example,Given [1,2,0] return 3,and [3,4,-1,1] return 2.Yo...

2014-06-22 16:26:25 67

原创 [leetcode]String to Integer (atoi)

新博文地址:[leetcode]String to Integer (atoi)String to Integer (atoi) 我操,梅西绝杀。。。一会儿看德国。先把这道题弄一下 Implement atoi to convert a string to an integer.Hint: Carefully consider all possible input cas...

2014-06-22 02:12:01 69

原创 [leetcode]Palindrome Partitioning II

新博文地址: [leetcode]Palindrome Partitioning II Palindrome Partitioning IIGiven a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts neede...

2014-06-20 12:33:29 82

原创 [leetcode]Surrounded Regions

dfs过得太蹊跷了,本博文算法作废,新博文地址:[leetcode]Surrounded Regions Surrounded RegionsGiven a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'.A region is captured by flipping all 'O's...

2014-06-19 17:18:57 80

原创 [leetcode]Longest Valid Parentheses

新博文地址:[leetcode]Longest Valid ParenthesesLongest Valid ParenthesesGiven a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses subst...

2014-06-17 21:26:50 94

原创 [leetcode]Word Break II

本博文的方法有点投机取巧了,新博文中采取了更通用的解法,新博文地址:[leecode]Word Break II  Word Break IIGiven a string s and a dictionary of words dict, add spaces in s to construct a sentence where each word is a valid di...

2014-06-17 16:32:36 64

原创 [leetcode]Word Break

新博文地址:[leetcode]Word Break Word BreakGiven a string s and a dictionary of words dict, determine if s can be segmented into a space-separated sequence of one or more dictionary words.For examp...

2014-06-17 16:27:05 71

原创 [leetcode]Word Ladder

Word LadderGiven two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end, such that:Only one letter can be changed at a timeEach intermedi...

2014-06-17 11:33:05 83

原创 [leetcode]Distinct Subsequences

新博文地址:[leetcode]Distinct SubsequencesDistinct SubsequencesGiven a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is ...

2014-06-16 16:21:35 73

原创 [leetcode]Permutation Sequence

算法还是一样的算法,但是新博文的代码更简洁,可读性更好,新博文地址:[leetcode]Permutation SequencePermutation SequenceThe set [1,2,3,…,n] contains a total of n! unique permutations.By listing and labeling all of the permutations...

2014-06-16 15:07:41 74

原创 [leetcode]Permutations II

新博文地址:[leetcode]PermutationsIIPermutations IIGiven a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2] have the following unique p...

2014-06-12 17:17:38 70

原创 [leetcode]Next Permutation

怎么说呢,这篇博文的算法还是很不错的,新博文采用的还是这篇博文的就算法,只不过代码更简洁,可能读可能更好一点,有兴趣请移步,新博文地址:[leetcode]Next PermutationNext PermutationImplement next permutation, which rearranges numbers into the lexicographically next...

2014-06-12 16:19:38 74

数据库课设——银行储蓄管理系统

基于SQL sever 2000 完成基本的银行开户、存款(活期、定期)、取款、汇款、查看账户信息 以及员工管理:新加员工、裁员管理、员工业绩、员工薪水设定 银行管理:银行贷款总金额、银行储蓄总金额、利率设定、经理个人信息

2010-08-11

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除