自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(347)
  • 资源 (79)
  • 收藏
  • 关注

原创 leetcode:Move Zeroes 【Java】

一、问题描述Given an array nums, write a function to move all 0's to the end of it while maintaining the relative order of the non-zero elements.For example, given nums = [0, 1, 0, 3, 12], after

2016-03-17 19:59:55 481

原创 leetcode:Contains Duplicate 【Java】

一、问题描述Given an array of integers, find if the array contains any duplicates. Your function should return true if any value appears at least twice in the array, and it should return false if every

2016-03-16 16:42:07 391

原创 leetcode:Invert Binary Tree 【Java】

一、问题描述Invert a binary tree. 4 / \ 2 7 / \ / \1 3 6 9to 4 / \ 7 2 / \ / \9 6 3 1二、问题分析无三、算法代码/** * Definition for a binary tree node.

2016-03-16 16:09:23 404

原创 leetcode:Combination Sum 【Java】

一、问题描述Given a set of candidate numbers (C) and a target number (T), find all unique combinations in C where the candidate numbers sums to T.The same repeated number may be chosen from C un

2016-03-16 15:32:51 377

原创 leetcode:Restore IP Addresses 【Java】

一、问题描述Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given "25525511135",return ["255.255.11.135", "255.255.111.3

2016-03-15 23:07:31 674

原创 leetcode:Valid Anagram 【Java】

一、问题描述Given two strings s and t, write a function to determine if t is an anagram of s.For example,s = "anagram", t = "nagaram", return true.s = "rat", t = "car", return false.Note:

2016-03-15 18:48:14 384

原创 leetcode:N-Queens II 【Java】

一、问题描述Follow up for N-Queens problem.Now, instead outputting board configurations, return the total number of distinct solutions.二、问题分析参考问题leetcode:N-Queens 【Java】三、算法代码public clas

2016-03-15 16:16:41 361

原创 leetcode:N-Queens 【Java】

一、问题描述The n-queens puzzle is the problem of placing n queens on an n×n chessboard such that no two queens attack each other.Given an integer n, return all distinct solutions to the n-q

2016-03-15 16:12:44 614

原创 回溯算法之N皇后问题

一、问题描述N皇后问题,就是把N个皇后放到NXN的棋盘上,使她们不能互相攻击,即任意两个皇后都不能处于同一行、同一列或同一斜线上。二、问题分析典型的回溯问题;queens[k]表示皇后k放在queens[k]位置上。三、算法代码算法参数int [] queens可以随意传值,它们的长度即代表queens.length皇后问题,可以解决任意NXN问题。/** *

2016-03-14 22:54:06 866

原创 10款流行的Markdown编辑器

10款流行的Markdown编辑器链接http://www.csdn.net/article/2014-05-05/28196231.MarkdownPad 2.ReText3.WMD4.Mou5.EpicEditor6.CuteMarkEd7.MarkPad8.Haroopad9.MarkdownEditor10.QMarkdowner

2016-03-14 10:48:01 1908

原创 leetcode:Integer to Roman 【Java】

一、问题描述Given an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.二、问题分析无三、算法代码public class Solution { public String intToRoman(int

2016-03-13 22:26:53 471

原创 leetcode:Longest Common Prefix 【Java】

一、问题描述Write a function to find the longest common prefix string amongst an array of strings.二、问题分析无三、算法代码public class Solution { public String longestCommonPrefix(String[] strs) {

2016-03-13 22:20:28 394

原创 leetcode:Climbing Stairs 【Java】

一、问题描述You are climbing a stair case. It takes n steps to reach to the top.Each time you can either climb 1 or 2 steps. In how many distinct ways can you climb to the top?二、问题分析此问题实际为斐波那契

2016-03-13 21:00:18 554

原创 leetcode:Rotate Image 【Java】

一、问题描述You are given an n x n 2D matrix representing an image.Rotate the image by 90 degrees (clockwise).Follow up:Could you do this in-place?二、问题分析先沿着副对角线翻转一次;再沿着水平对称轴翻转一次。

2016-03-13 20:16:05 452

原创 leetcode:Candy 【Java】

一、问题描述There are N children standing in a line. Each child is assigned a rating value.You are giving candies to these children subjected to the following requirements:Each child must have

2016-03-13 19:17:07 611

原创 leetcode:Gas Station 【Java】

一、问题描述There are N gas stations along a circular route, where the amount of gas at station i is gas[i].You have a car with an unlimited gas tank and it costs cost[i] of gas to travel from s

2016-03-12 13:11:42 419

原创 leetcode:Partition List 【Java】

一、问题描述Given a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should preserve the original relative order of the node

2016-03-11 17:04:52 384

原创 leetcode:Group Anagrams 【Java】

一、问题描述Given an array of strings, group anagrams together.For example, given: ["eat", "tea", "tan", "ate", "nat", "bat"], Return:[ ["ate", "eat","tea"], ["nat","tan"], ["bat"]]

2016-03-11 14:51:12 1984

原创 leetcode:Length of Last Word 【Java】

一、问题描述Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, return 0.Not

2016-03-11 14:05:10 398

原创 leetcode:Reverse Linked List 【Java】

一、问题描述Reverse a singly linked list.二、问题分析利用三个指针pre、nxt、cur,最后返回指针pre。三、算法代码/** * Definition for singly-linked list. * public class ListNode { * int val; * ListNode next; *

2016-03-11 13:48:27 400

原创 leetcode:Palindrome Linked List 【Java】

一、问题描述Given a singly linked list, determine if it is a palindrome.Follow up:Could you do it in O(n) time and O(1) space?二、问题分析把后半部分链表翻转后,与前半部分比较。三、算法代码/** * Definition for singly-

2016-03-10 23:53:26 528

原创 leetcode:Valid Palindrome 【Java】

一、问题描述Given a string, determine if it is a palindrome, considering only alphanumeric characters and ignoring cases.For example,"A man, a plan, a canal: Panama" is a palindrome."race a ca

2016-03-10 23:22:47 339

原创 leetcode:Rotate List 【Java】

一、问题描述Given a list, rotate the list to the right by k places, where k is non-negative.For example:Given 1->2->3->4->5->NULL and k = 2,return 4->5->1->2->3->NULL.二、问题分析使链表最后一个结点指向头结

2016-03-10 23:02:50 353

原创 leetcode:Remove Nth Node From End of List 【Java】

一、问题描述Given a linked list, remove the nth node from the end of list and return its head.For example, Given linked list: 1->2->3->4->5, and n = 2. After removing the second node from

2016-03-10 21:22:33 299

原创 leetcode:Odd Even Linked List 【Java】

一、问题描述Given a singly linked list, group all odd nodes together followed by the even nodes. Please note here we are talking about the node number and not the value in the nodes.You should try

2016-03-10 20:55:24 568

原创 leetcode:Remove Linked List Elements 【Java】

一、问题描述Remove all elements from a linked list of integers that have value val.ExampleGiven: 1 --> 2 --> 6 --> 3 --> 4 --> 5 --> 6, val = 6Return: 1 --> 2 --> 3 --> 4 --> 5二、问题分析设置两个指针

2016-03-10 18:43:31 383

原创 leetcode:Delete Node in a Linked List 【Java】

一、问题描述Write a function to delete a node (except the tail) in a singly linked list, given only access to that node.Supposed the linked list is 1 -> 2 -> 3 -> 4 and you are given the third nod

2016-03-09 22:56:20 352

原创 leetcode:Remove Duplicates from Sorted List 【Java】

一、问题描述Given a sorted linked list, delete all duplicates such that each element appear only once.For example,Given 1->1->2, return 1->2.Given 1->1->2->3->3, return 1->2->3.二、问题分析无三、

2016-03-09 22:44:18 336

原创 leetcode:Add Binary 【Java】

一、问题描述Given two binary strings, return their sum (also a binary string).For example,a = "11"b = "1"Return "100".二、问题分析把两个字符串用‘0’补充为相同长度后,从高位到低位模拟二进制真实运算,最后把结果反转后返回。三、算法代码public

2016-03-09 22:27:23 286

原创 leetcode:Add Two Numbers 【Java】

一、问题描述You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return

2016-03-09 21:32:17 357

原创 leetcode:Median of Two Sorted Arrays 【Java】

一、问题描述There are two sorted arrays nums1 and nums2 of size m and n respectively. Find the median of the two sorted arrays. The overall run time complexity should be O(log (m+n)).二、问题分析合并两

2016-03-08 21:41:08 330

原创 leetcode:Ugly Number II 【Java】

一、问题描述Write a program to find the n-th ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 1, 2, 3, 4, 5, 6, 8, 9, 10, 12 is the sequence o

2016-03-08 21:00:46 421

原创 leetcode:Ugly Number 【Java】

一、问题描述Write a program to check whether a given number is an ugly number.Ugly numbers are positive numbers whose prime factors only include 2, 3, 5. For example, 6, 8 are ugly while 14 is n

2016-03-08 17:25:44 396

原创 leetcode:Symmetric Tree 【Java】

一、问题描述Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).For example, this binary tree is symmetric: 1 / \ 2 2 / \ / \3 4 4 3

2016-03-08 14:16:45 375

原创 leetcode:Same Tree 【Java】

一、问题描述Given two binary trees, write a function to check if they are equal or not.Two binary trees are considered equal if they are structurally identical and the nodes have the same value.

2016-03-08 12:54:52 374

原创 leetcode:Recover Binary Search Tree 【Java】

一、问题描述wo elements of a binary search tree (BST) are swapped by mistake.Recover the tree without changing its structure.Note:A solution using O(n) space is pretty straight forward. Coul

2016-03-08 12:39:58 314

原创 leetcode:Flatten Binary Tree to Linked List 【Java】

一、问题描述Given a binary tree, flatten it to a linked list in-place.For example,Given 1 / \ 2 5 / \ \ 3 4 6The flattened tree should look lik

2016-03-08 11:18:12 343

原创 leetcode:Path Sum II 【Java】

一、问题描述Given a binary tree and a sum, find all root-to-leaf paths where each path's sum equals the given sum.For example:Given the below binary tree and sum = 22, 5

2016-03-08 10:15:44 335

原创 leetcode:Populating Next Right Pointers in Each Node II 【Java】

一、问题描述Follow up for problem "Populating Next Right Pointers in Each Node".What if the given tree could be any binary tree? Would your previous solution still work?Note:You may only u

2016-03-07 22:43:57 463

原创 leetcode:Populating Next Right Pointers in Each Node 【Java】

一、问题描述Given a binary tree struct TreeLinkNode { TreeLinkNode *left; TreeLinkNode *right; TreeLinkNode *next; }Populate each next pointer to point to its next

2016-03-07 21:56:18 275

Python基础教程(第2版).带书签

Python基础教程(第2版).带书签,完整,清晰

2016-09-22

linux & unix shell program

linux & unix shell program,简单而全面的she'll入门资料

2016-09-21

mac Mounty

mac Mounty,打开后可以在mac 文件系统和u盘(FAT,NTFS)之间自由拷贝.

2016-09-12

mac DiffMerge

mac 下文件内容对比工具,可以比较文件夹和文件。

2016-09-12

tmux Productive Mouse-Free Development.pdf

tmux Productive Mouse-Free Development.pdf

2016-07-31

protobuf demo

Google protobuf 协议测试demo程序 probufTest.tar.gz,使用Intellij idea开发。

2016-07-30

protobuf-java-2.5.0.jar

protobuf-java-2.5.0.jar,Google定义的一种序列化的协议格式。

2016-07-30

Firefox插件vimperator配置

Firefox插件vimperator配置文件,可以向vim一样操作Firefox浏览器

2016-07-09

vim配置文件

vim配置文件,主要是扩展vim可以像IDE一样使用的插件配置。

2016-07-08

hadoop2.6及hbase0.96伪分布式安装配置文件

hadoop2.6及hbase0.96伪分布式安装配置文件

2016-07-08

mac hadoop2.6.0 lib/native

mac下Hadoop native library,用于解决报错:WARN util.NativeCodeLoader: Unable to load native-hadoop library for your platform… using builtin-java classes where applicable。再次说明,本版本只适用于mac Hadoop 2.6.0。

2016-07-02

chrome-plugins

广告拦截插件:adBlock_extension_2_5_45.crx 划词翻译插件:ChaZD.crx 截图插件:DiigoWebshot_extension_3_3_6.crx 修改GET/POST提交方式插件:Postman-rest-client 恢复误关闭标签插件:Sexy_Undo_Close_Tab_extension_7_2_3.crx jsonView插件:jsonView.crx

2016-07-02

hadoop-2.6.0单机模式配置文件

hadoop-2.6.0单机模式配置文件,利用该配置可以成功启动Hadoop

2016-06-28

protobuf-2.5.0

protobuf-2.5.0,编译方便,亲测可以使用

2016-06-28

chrome浏览器 json viewer插件

chrome浏览器 json viewer插件,使用方便

2016-06-16

java.util.concurrent.uml.pdf

Java并发编程工具包java.util.concurrent的UML类结构图 PDF

2016-05-28

PyDev 4.5.5 for eclipse kepler

PyDev 4.5.5 for eclipse kepler,要求jdk 1.7

2016-05-12

struts2.3.20和log4j1.2.9完整开发jar包

在eclipse中开发struts 2.x + log4j 1.x web项目时,只要引入这些jar包就够了,不会引起版本冲突等。

2016-04-04

web容量规划的艺术

在j2ee系统功能扩展的过程中,在业务发展到一定程度时,需要切分成单独的子系统,在切分的过程中,需要考虑一下系统的承载量,这本书对承载量设计有一定的指导意义

2015-11-09

mysql Java连接器

版本较新的MySQL的Java连接器jar包

2015-10-08

HowTomcatWorks.zip

官方下载地址 https://brainysoftware.com/book/9780975212806;jsessionid=70EBEB73F7CC0760F045EE3CCE2E3412

2019-07-11

UDP_Specification-rfc768

UDP_Specification-rfc768: This User Datagram Protocol (UDP) is defined to make available a datagram mode of packet-switched computer communication in the environment of an interconnected set of computer networks. This protocol assumes that the Internet Protocol (IP) [1] is used as the underlying protocol.

2019-04-21

IPv4_Specification-rfc791

IPv4_Specification-rfc791: This document specifies the DoD Standard Internet Protocol.

2019-04-21

bashdb-3.1(shell debugger)

专用的bash脚本调试器 bashdb-3.1-0.09 (shell debugger) 使用方法和gdb的方式类似

2018-08-30

spectacle mac分屏软件

spectacle mac 分屏软件,亲测可用~~~~~~~~~~~ spectacle mac 分屏软件,亲测可用~~~~~~~~~~~

2018-08-14

PlantUML_Language_Reference_Guide_ZH.pdf

idea plantuml插件 uml语法、示例,详细,官网教程,包括所有UML元素

2017-10-08

IDEA快捷键 pdf

Windows和mac下官方idea快捷键PDF

2017-07-15

机器学习实战源码及PDF

机器学习实战源码及PDF(中英文对照)

2017-03-29

scipy-0.15.1-win32-superpack-python2.7.exe

scipy-0.15.1-win32-superpack-python2.7.exe

2017-03-26

numpy-1.9.2-win32-superpack-python2.7

适用Windows,Python版本为2.7,numpy-1.9.2-win32-superpack-python2.7.exe

2017-03-26

Storm分布式实时计算模式

仅供学习使用,《Storm分布式实时计算模式》,带目录,完整版

2017-02-03

jvm 参数及gc详解

jvm配置参数详解,以及Java gc详解

2017-01-12

GoogleDesktop桌面工具

GoogleDesktop桌面工具,非常方便的系统搜索工具,有点类似mac的Spotlight或者Alfred

2017-01-06

redis-desktop-manager-0.8.8.384

官方下载地址:https://redisdesktop.com/download,还有其它几款redis客户端:http://database.51cto.com/art/201505/477692.htm。

2017-01-05

SecureCRTSecureFX_7.0.0.326绿色中文版

绿色免安装,设置回话不掉线,SecureCRTSecureFX_7.0.0.326

2016-12-22

log4j-1.2.15.jar

log4j-1.2.15.jar,简单易用,使用方便

2016-12-10

java mail-1.4.5.jar

java mail-1.4.5.jar,可以方便的发送邮件

2016-11-24

PyDev 2.8.2

jdk 6 + pydev 2.8 + eclipse Kepler(4.3.2)安装成功

2016-10-31

Hadoop_2.2.0.API.CHM

Hadoop_2.2.0.API.CHM,版本有点老

2016-09-21

Netty权威指南 第2版 带书签目录 完整版

Netty权威指南 第2版 带书签目录 完整版,清晰

2016-09-21

空空如也

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

TA关注的人

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