自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

  • 博客(96)
  • 资源 (10)
  • 收藏
  • 关注

原创 leetcode:Valid Sudoku

题目的

2014-06-30 22:30:31 418

转载 error in invoking target 'itsping' of makefile

z

2014-06-30 11:57:52 763

转载 redhat6下面安装oracle11g界面乱码

今天在虚拟机下面安装Oracle数据库的时候发现Oracle数据库的界面中全部都是

2014-06-30 08:54:18 1296

原创 leetcode:Convert Sorted Array to Binary Search Tree

把已经排好序的数组,chong

2014-06-30 00:30:25 373

原创 leetcode:Remove Duplicates from Sorted List

去除链表中重复的元素并zhibao

2014-06-29 23:57:52 390

原创 leetcode:String to Integer (atoi)

纯粹是模拟题目,注意x

2014-06-29 22:52:03 346

原创 备份SQLserver数据时候出现还原数据库和“XX”数据库不一致解决

勾选好覆盖现有数据库同时在数据库we

2014-06-26 15:56:45 1910

转载 忘记redhat linux root密码怎么办

转载之http://jingyan.baidu.com/article/5225f26b139257e6fa09089e.html

2014-06-25 22:36:11 389

原创 Copy List with Random Pointer

/** * Definition for singly-linked list with a random pointer. * class RandomListNode { * int label; * RandomListNode next, random; * RandomListNode(int x) { this.label = x; } * };

2014-06-23 00:41:22 401

原创 leetcode:3Sum Closest

public class Solution { public int threeSumClosest(int[] num, int target) { Arrays.sort(num); int len = num.length - 2; int sum = 0; int min = Integer.MAX_VALUE;

2014-06-17 11:23:09 337

原创 leetcode:Longest Palindromic Substring

最长公共子字符串

2014-06-17 11:18:34 402

转载 leetcode:Container With Most Water

转http://blog.csdn.net/doc_sgl/article/details/12188919

2014-06-17 11:14:55 339

原创 leetcode:Longest Substring Without Repeating Characters

求出最长的不重复子串public class Solution { public int lengthOfLongestSubstring(String s) { if (s.length() == 0) { return 0; } HashMap map = new HashMap<>();

2014-06-16 18:45:04 319

原创 leetcode:Reverse Integer

public class Solution { public int reverse(int x) { boolean flag = x < 0; ArrayList sta = new ArrayList<>(); x = Math.abs(x); while(x != 0){ sta.add(x %

2014-06-16 17:48:45 338

原创 leetcode:Palindrome Number

判断一个数字是否回文数字public class Solution { public boolean isPalindrome(int x) { if(x<0) return false; int div = 1; while(x/div >=10) div*=10;

2014-06-16 17:46:45 332

原创 leetcode:Add Two Numbers

给出两个

2014-06-16 17:44:58 432

原创 leetcode:Two Sum

Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two numbers such that they add up to the target, whe

2014-06-16 00:46:29 315

原创 leetcode:Remove Duplicates from Sorted Array

去除重复的元素,zhibaoli

2014-06-16 00:43:28 315

原创 leetcode:Remove Element

对于给定的数组,删除数组

2014-06-16 00:40:50 301

转载 leetcode:

这个做法是从别人copy而来,sixclass Solution {public: int firstMissingPositive(int A[], int n) { int i = 0; while (i < n) { if (A[i] != (i+1) && A[i] >= 1 && A[i] <= n &

2014-06-16 00:37:50 331

原创 leetcode:Search Insert Position

Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in order.You may assume no duplicates in the array.

2014-06-16 00:30:49 263

原创 leetcode:Search for a Range

Given a sorted array of integers, find the starting and ending position of a given target value.Your algorithm's runtime complexity must be in the order of O(log n).If the target is not found

2014-06-16 00:29:18 521

原创 leetcode:Count and Say

The count-and-say sequence is the sequence of integers beginning as follows:1, 11, 21, 1211, 111221, ...1 is read off as "one 1" or 11.11 is read off as "two 1s" or 21.21 is read off as 

2014-06-16 00:25:53 361

原创 leetcode:Permutations

无重复元素的全排序public class Solution { static List> ans = new ArrayList>(); static ArrayList stack = new ArrayList(); static int[] num; public List> permute(int[] num) { ans.clear(

2014-06-16 00:23:03 297

原创 leetcode:Rotate Image

将一个矩阵顺时针旋转90度,要求不适用额外的

2014-06-16 00:08:43 333

原创 leetcode:Permutations II

有重复元素的全排序

2014-06-16 00:05:14 356

原创 leetcode:Maximum Subarray

最大子串和

2014-06-16 00:01:38 281

原创 leetcode:Insert Interval

区间合并

2014-06-15 23:53:44 678

原创 leetcode:Length of Last Word

求出最后一个单词的长度,数据有quankpublic class Solution { public int lengthOfLastWord(String s) { int ans = 0; int pre = -1, next = 0; int i; for( i = 0; i < s.length(); ++i){

2014-06-15 23:51:03 363

原创 leetcode:Unique Paths II

同样是递推表达,但是要

2014-06-15 23:45:25 332

原创 leetcode:Unique Paths

递推表达式给出mpublic class Solution { public int uniquePaths(int m, int n) { int[][] x = new int[m][n]; int i = 0, j = 0; x[0][0] = 1; for( i = 0; i < m; ++i){

2014-06-15 23:43:27 273

原创 leetcode:Merge Two Sorted Lists

/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; * ListNode(int x) { * val = x; * next = null; * } * } */public

2014-06-15 23:36:38 369

原创 leetcode:Sqrt(x)

public class Solution { public int sqrt(int x) { double ans = x; while(Math.abs(ans * ans - x) > 0.0001) { ans = (ans + x / ans) / 2; }

2014-06-15 23:35:02 281

原创 leetcode:Climbing Stairs

简单的递推题目

2014-06-15 16:22:14 330

原创 leetcode:

public class Solution { public void setZeroes(int[][] matrix) { boolean visRow[] = new boolean[matrix.length]; boolean visCol[] = new boolean[matrix[0].length]; Arrays.fill

2014-06-15 16:20:52 361

原创 leetcode:Search a 2D Matrix

public class Solution { public boolean searchMatrix(int[][] matrix, int target) { int row = -1; for(int i = matrix.length - 1; i >= 0; --i){ if(matrix[i][0] <= target){

2014-06-15 16:18:35 405

原创 leetcode:Sort Colors

简单的计数排序public class Solution { public void sortColors(int[] A) { int red = 0, blue = 0, white = 0; for(int i = 0; i < A.length; ++i){ if(A[i] == 0)red++;

2014-06-15 16:15:54 239

原创 leetcode:Subsets

给出一组数据,返回其所有的zi

2014-06-15 16:02:23 357

原创 leetcode:Remove Duplicates from Sorted Array II

移除数组中重复的元素

2014-06-15 15:56:17 309

原创 leetcode:Remove Duplicates from Sorted List II

移除链表中重复的元素

2014-06-15 15:54:10 344

haproxy配置

haproxy配置。代理服务器

2017-08-15

redis二进制包及配置文件说明

redis的二进制版本配置文件demo

2016-12-20

maven仓库缺少lib

用于上传maven(1)缺少lib,csdn限制了每次上传的文件大小

2016-11-10

maven仓库(1)缺少lib

用于搭建maven私有仓库,用于本地备份

2016-11-10

redis3集群搭建

用于描述redis3集群的搭建

2016-07-31

weblogic使用手册

weblogic使用手册,十分详细,包括各个部分

2015-06-10

axis2与spring集成

axis2与spring的集成,在application中配置要发布的Java类,然后配置aar文件,在aar打包文件中的services.xml要嵌入 <parameter name="ServiceObjectSupplier">org.apache.axis2.extensions.spring.receivers.SpringServletContextObjectSupplier</parameter> <parameter name="SpringBeanName">springAwareService</parameter>

2015-05-14

zookeeper示例代码

zookeeper示例代码

2015-04-29

分布式服务框架 Zookeeper -- 管理分布式环境中的数据

存储描述zookeeper的简介,用于自身日后学习

2015-04-29

Web 服务编程技巧和窍门: 手工创建的 SOAP 消息中命名空间的处理

使用java进行webservice的开发Demo

2015-04-03

空空如也

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

TA关注的人

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