自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(10)
  • 资源 (3)
  • 收藏
  • 关注

转载 Leetcode 138,Copy list with random nodes

public RandomListNode copyRandomList(RandomListNode head) { if(head==null) return null; HashMap map = new HashMap(); RandomListNode newhead = new RandomLis

2016-12-29 14:01:15 169

转载 Leetcode 113, Path Sum II

public void pathSumHelper(TreeNode root, int sum, List sumlist, List> pathlist){ if(root==null) return; sumlist.add(root.val); sum = sum-root.val; if(root

2016-12-28 11:31:27 175

原创 Leetcode 116, Populating Next Right Pointers in Each Node

public void connect(TreeLinkNode root) { if(root == null){ return; } if(root.left != null){ root.left.next = root.right; } if(root.right

2016-12-24 00:01:42 146

原创 Leetcode 98,Validate Binary Search Tree

private long min = Long.MIN_VALUE; public boolean isValidBST(TreeNode root) { if (root == null) return true; if (!isValidBST(root.left)){ return false;

2016-12-15 07:19:31 158

转载 Leetcode 132,Palindrome Partitioning 2

public int minCut(String s) { int len = s.length(); int[] D = new int[len + 1]; boolean[][] P = new boolean[len][len]; //the worst case is cutting by each char

2016-12-13 12:21:14 237

原创 Leetcode 213. House Robber II

public int rob(int[] nums) { if(nums==null||nums.length==0) return 0; if(nums.length==1){ return nums[0]; } int temp = nums[0]; nums[0] = 0; int a = helper(n

2016-12-13 05:43:21 284

原创 Leetcode 10, 44 Regular Expression Marching, Wildcard Matching

10,  public boolean isMatch(String s, String p) { if (s == null || p == null) { return false; } int m = s.length(); int n = p.length();

2016-12-12 07:28:11 327

原创 Leetcode 97, Interleaving String

public boolean isInterleave(String s1, String s2, String s3) { if(s3.length() != s1.length() + s2.length()) { return false; } int m = s1.length();

2016-12-11 11:15:18 218

原创 Leetcode 512, Mouse in a maze

Rat in maze shortest path Given a 2 dimensional array with number 1s and 0s, 1 means wall, 0 means road, find the shortest path from 0 row 0 column to m row n column, if not possible return -1.

2016-12-11 08:06:11 483

原创 Leetcode 70, Climbing stair

DP写法: public int climbStairs(int n) { if(n == 0 || n == 1) return n; int [] dp = new int[n]; dp[0] = 1; dp[1] = 2; for(int i = 2; i< n

2016-12-11 07:27:19 268

Mysal常用命令总结

mysql的基本命令,对于不熟悉mysql语法的人(像我主要是用Oracle)有一些帮助

2009-03-17

Toad使用快速入门

简明版的toad使用入门,toad是操作oracle非常棒的软件,新手也可以写出复杂的查询语句

2009-03-17

EOS安装文档,安装普元EOS指南

EOS安装文档,安装普元EOS指南,分两个部分

2009-02-04

空空如也

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

TA关注的人

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