自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

csf的专栏

关注计算机应用【Dream-hardworking-presidence】

  • 博客(5)
  • 收藏
  • 关注

原创 【LeetCode】Longest Palindromic Substring

参考:http://blog.csdn.net/soszou/article/details/37312317public class Solution { public String longestPalindrome(String s) { int len = s.length(); String ans = ""; Stri

2014-12-17 09:47:09 841

原创 【LeetCode】Search in Rotated Sorted Array II

public class Solution { public boolean binarySearch0(int[] num, int l, int h, int target){ while(l <= h){ int mid = l + (( h - l) >> 1); if(num[mid] > target) h = m

2014-12-15 12:52:37 788

原创 【LeetCode】Search in Rotated Sorted Array

public class Solution { public int binarySearch0(int[] num, int l, int h, int target){//普通的二分查找 while(l <= h){ int mid = l + (( h - l) >> 1); if(num[mid] > target)

2014-12-15 12:50:05 673

原创 【LeetCode】Flatten Binary Tree to Linked List

/** * Definition for binary tree * public class TreeNode { * int val; * TreeNode left; * TreeNode right; * TreeNode(int x) { val = x; } * } */public class Solution { //获取根节点的先

2014-12-05 11:09:39 604

原创 【LeetCode】Search for a Range

public class Solution { public int binarySearchFirst(int[] A, int target){ int l = 0, h = A.length - 1; int p = -1; while(l <= h){ int mid = l + ((h - l) >> 1);

2014-12-02 19:44:28 660

空空如也

空空如也

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

TA关注的人

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