摘要: 题目描述: Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique 阅读全文
posted @ 2016-06-07 21:28 godlei 阅读(174) 评论(0) 推荐(0)
摘要: 题目描述: Implement atoi to convert a string to an integer. Hint: Carefully consider all possible input cases. If you want a challenge, please do not see 阅读全文
posted @ 2016-06-07 19:55 godlei 阅读(200) 评论(0) 推荐(0)
摘要: 题目描述: You have a number of envelopes with widths and heights given as a pair of integers (w, h). One envelope can fit into another if and only if both 阅读全文
posted @ 2016-06-07 12:06 godlei 阅读(568) 评论(0) 推荐(0)
摘要: 使用hibernate开发持久层时,我们会发现:虽然entity类的含义和需求不同,其对应的Dao层类对应的方法也是不同的。但是有许多方法操作确实相同的。比如实体的增加,删除,修改更新,以及许多常用的查询方法。这些都是可复用的。因此可以把这些操作写在一个BaseDao中,其他的dao都继承于这个Da 阅读全文
posted @ 2016-06-07 01:39 godlei 阅读(4830) 评论(1) 推荐(3)
摘要: 题目描述: There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complex 阅读全文
posted @ 2016-06-07 01:21 godlei 阅读(246) 评论(0) 推荐(0)