自定义博客皮肤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 429

转载 error in invoking target 'itsping' of makefile

z

2014-06-30 11:57:52 859

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

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

2014-06-30 08:54:18 1313

原创 leetcode:Convert Sorted Array to Binary Search Tree

把已经排好序的数组,chong

2014-06-30 00:30:25 383

原创 leetcode:Remove Duplicates from Sorted List

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

2014-06-29 23:57:52 402

原创 leetcode:String to Integer (atoi)

纯粹是模拟题目,注意x

2014-06-29 22:52:03 355

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

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

2014-06-26 15:56:45 1987

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

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

2014-06-25 22:36:11 398

原创 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 405

原创 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 347

原创 leetcode:Longest Palindromic Substring

最长公共子字符串

2014-06-17 11:18:34 409

转载 leetcode:Container With Most Water

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

2014-06-17 11:14:55 350

原创 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 327

原创 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 347

原创 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 340

原创 leetcode:Add Two Numbers

给出两个

2014-06-16 17:44:58 440

原创 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 321

原创 leetcode:Remove Duplicates from Sorted Array

去除重复的元素,zhibaoli

2014-06-16 00:43:28 326

原创 leetcode:Remove Element

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

2014-06-16 00:40:50 310

转载 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 337

原创 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 269

原创 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 528

原创 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 370

原创 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 305

原创 leetcode:Rotate Image

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

2014-06-16 00:08:43 345

原创 leetcode:Permutations II

有重复元素的全排序

2014-06-16 00:05:14 365

原创 leetcode:Maximum Subarray

最大子串和

2014-06-16 00:01:38 285

原创 leetcode:Insert Interval

区间合并

2014-06-15 23:53:44 687

原创 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 371

原创 leetcode:Unique Paths II

同样是递推表达,但是要

2014-06-15 23:45:25 343

原创 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 278

原创 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 375

原创 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 291

原创 leetcode:Climbing Stairs

简单的递推题目

2014-06-15 16:22:14 335

原创 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 368

原创 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 414

原创 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 245

原创 leetcode:Subsets

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

2014-06-15 16:02:23 370

原创 leetcode:Remove Duplicates from Sorted Array II

移除数组中重复的元素

2014-06-15 15:56:17 317

原创 leetcode:Remove Duplicates from Sorted List II

移除链表中重复的元素

2014-06-15 15:54:10 353

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

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

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

使用java进行webservice的开发Demo

2015-04-03

空空如也

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

TA关注的人

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