原创 Hash_Map 詳解
http://hi.baidu.com/yu_roc/item/bcf23a239a5425112a0f1c5a
原创 CareerCup 14.6
Implement Circular Array /* * Career Cup 14.6 * */ package CareerCup; import java.util.Iterator; public class C
原创 leetcode valid panlidrome
public class Solution { public boolean isPalindrome(String s) { // Start typing your Java solution below
原创 leetcode edit distance
public int minDistance(String word1, String word2) { // int rowNum = word1.length(); int colNum
原创 leetcode pow
public class Pow { // //recursive version // //stack overflow when n is large // public double pow(double x, int
原创 leetcode plus one
public int[] plusOne(int[] digits) { if(digits.length < 1) return null; String ans = "";
原创 leetcode Jump Game
/* Leetcode JumpGame Given an array of non-negative integers, you are initially positioned at the first index of the
原创 leetcode maxSubArray
O(n) solution public class MaxSubArray { public int maxSubArray(int[] A) { int sum = 0, curr = 0; in
原创 leetcode merge intervals
import java.util.ArrayList; import java.util.Collections; import java.util.Comparator; class Interval { int start;
原创 Java XML Read
http://blog.csdn.net/smcwwh/article/details/7183869 SAX: http://blog.csdn.net/lifaming15/article/details/1749695
原创 leetcode merge two sorted list
public ListNode mergeTwoLists(ListNode l1, ListNode l2) { // Start typing your Java solution below
原创 leetcode insert interval
Iterate the intervals list. Compare newInterval with each item in the list. If overlapping, update the item. Otherwise(
原创 leetcode minimum path sum
DP Min[ i, j] = Min( Min[i - 1][j] + grid[i][j], Min[i][j - 1] + grid[ i ][ j ]); public int minPathSum(int[][] g
原创 leetcode add binary
public String addBinary(String a, String b) { // char resi = '0'; int lena = a.length();
原创 Leetcode Permutation II
Given a collection of numbers that might contain duplicates, return all possible unique permutations. For example,[1