Java
dimkang
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Maven Projects Setup
You can create project by maven. But basically, we don’t prefer to do it. We always use Eclipse/IntelliJ to create maven project.After creating project by maven project template in IntelliJ, we got bel原创 2016-05-01 20:14:15 · 429 阅读 · 0 评论 -
LeetCode(5)
7. Reverse IntegerReverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Note:The input is assumed to be a 32-bit signed intege原创 2017-06-25 16:02:52 · 294 阅读 · 0 评论 -
LeetCode(4)
The string "PAYPALISHIRING" is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font for better legibility)P A H NA P L S I原创 2017-06-23 17:05:13 · 296 阅读 · 0 评论 -
LeetCode(3)
5. Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example:Input: "babad"Output: "bab"Note: "aba" is also a valid ans原创 2017-06-23 10:50:12 · 232 阅读 · 0 评论 -
LeetCode(2)
4. Median of Two Sorted ArraysThere 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 complexity should be O(l原创 2017-06-23 08:37:57 · 166 阅读 · 0 评论 -
LeetCode (1)
今天刷了几道 leetcode 的题目 ,记录一下 人家 的想法 ,帮助自己成长。1. two sum:Given an array of integers, return indices of the two numbers such that they add up to a specific target.You may assume that each input原创 2017-06-22 21:04:50 · 172 阅读 · 0 评论 -
java hashmap (how to generate hashcode
h.hashCode() ^ h.hashCode() >>> 16h & (length-1) == h % lengthlength = 2^n1. hashCode() --> 31 * c + --> hashCode 2. rehashCode --> h.hashCode() ^ h.hashCode() >>> 16原创 2016-08-15 12:56:54 · 254 阅读 · 0 评论 -
Issue @20160514
Today I met two issues with split function (1) When splitting string as pipeline , please use :String key = "1|2|3||||";String[] items = key.split("\\|")(2) When spliting string with empty values and原创 2016-05-14 16:14:05 · 253 阅读 · 0 评论 -
ExtJS5 +Spring MVC CRUD
I began to write one sample application via ExtJS5 +SpringMVC+CRUD.Compared to ExtJS4, big difference in ExtJS5 is MVVC. MVC is very traditional design pattern. But MVVC is quite new to me so that I wa原创 2016-05-02 15:37:27 · 1024 阅读 · 0 评论 -
LEetCode(6)
8. String to Integer (atoi)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 below and ask yourself原创 2017-06-26 06:31:19 · 370 阅读 · 0 评论
分享