自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(18)
  • 资源 (7)
  • 收藏
  • 关注

原创 LeetCode(42) Trapping Rain Water

占位。。。

2015-03-30 13:47:36 764

原创 LeetCode(36) Valid Sudoku

题目如下: Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules. The Sudoku board could be partially filled, where empty cells are filled with the character '.' A partially f

2015-03-28 02:31:33 615

原创 LeetCode(31) Next Permutation

先占位 to be continued

2015-03-28 02:20:55 610

原创 LeetCode(30) Substring with Concatenation of All Words (java)

先占位 to be continued

2015-03-28 02:19:36 1888

原创 LeetCode(174) Dungeon Game

题目如下: The demons had captured the princess (P) and imprisoned her in the bottom-right corner of a dungeon. The dungeon consists of M x N rooms laid out in a 2D grid. Our valiant knight (K) was initia

2015-03-28 02:02:34 1660

原创 Print A Tree In Vertical Order

参见  http://www.geeksforgeeks.org/print-binary-tree-vertical-order/ 1 首先定义 Vertical Order,            1         /      \        2        3       /  \       /  \      4   5    6    7

2015-03-25 12:53:13 676

原创 LeetCode(188) Best Time to Buy and Sell Stock IV

题目如下: Best Time to Buy and Sell Stock Total Accepted: 43912 Total Submissions: 135635 My Submissions Question Solution  Say you have an array for which the ith element is the price of a given stock

2015-03-23 08:37:09 2648

原创 LeetCode(37) Sudoku Solver

题目如下: Write a program to solve a Sudoku puzzle by filling the empty cells. Empty cells are indicated by the character '.'. You may assume that there will be only one unique solution

2015-03-23 07:55:02 1787

原创 LeetCode(190) Reverse Bits

题目如下: Reverse bits of a given 32 bits unsigned integer. For example, given input 43261596 (represented in binary as 00000010100101000001111010011100), return 964176192 (represented in binary as

2015-03-22 12:46:11 5570

原创 LeetCode(76)Minimum Window Substring

题目如下: Given a string S and a string T, find the minimum window in S which will contain all the characters in T in complexity O(n). For example, S = "ADOBECODEBANC" T = "ABC" Minimum window is

2015-03-22 08:05:39 3027 1

原创 LeetCode(187)Repeated DNA Sequence

题目如下: All DNA is composed of a series of nucleotides abbreviated as A, C, G, and T, for example: "ACGAATTCCG". When studying DNA, it is sometimes useful to identify repeated sequences within the DNA.

2015-03-21 07:45:35 801

原创 LeetCode(191) Number of 1 Bits

题目如下: Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight). For example, the 32-bit integer ’11' has binary representation 000

2015-03-21 06:22:53 1781

原创 LeetCode(189) Rotate Array

题目如下: Rotate an array of n elements to the right by k steps. For example, with n = 7 and k = 3, the array [1,2,3,4,5,6,7] is rotated to [5,6,7,1,2,3,4]. Note: Do it in place.Try to come up as many

2015-03-20 12:24:02 3495

原创 [draft]字符串匹配 Z_algorithm

Z algorithm 和字符串匹配的几个算法其实类似,主要利用了pattern的重复信息。 具体思想在这里,这个slides写得非常好懂。 还有个demo也很好。 我实现了一下code(暂时还没去测试是否bugfree) public class ZAlgo { private int [] z; private char [] text; public ZAlgo() {

2015-03-17 07:54:51 1442

原创 JAVA菜鸟入门(5) Hashmap vs Hashtable

1. Hashtable is synchronized, whereas HashMap is not. This makes HashMap better for non-threaded applications, as unsynchronized Objects typically perform better than synchronized ones. 2. Hashtabl

2015-03-05 08:46:51 751

原创 JAVA菜鸟入门(4) Int vs Integer

首先,Int 是个primitive type。 Integer 是个object, 是个class,是int的wrapper class。 然后, 什么时候用int什么时候用Integer呢? 其中,use it as a hashtable key的原因是, Immutable objects are much better suited to be Hashtable k

2015-03-05 08:43:24 1121

原创 LeetCode(51) N-Queens

题目如下: 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-queens puzzl

2015-03-04 14:50:03 1129

原创 LeetCode(50) N-Queens II

题目如下: 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-queens puzzle.

2015-03-04 12:53:36 797

数据挖掘--概念.模型.方法和算法

本书全面讲述了数据挖掘的概念、模型、方法和算法。本书共包括13章和2个附录,全面、详细地讲述了从数据挖掘的基本概念到数据挖掘的整个过程,以及数据挖掘工具及其典型应用领域.

2009-09-20

机器学习 Tom Mitchell 中文版

书中主要涵盖了目前机器学习中各种最实用的理论和算法,包括概念学习、决策树、神经网络、贝叶斯学习、基于实例的学习、遗传算法、规则学习、基于解释的学习和增强学习等。对每一个主题,作者不仅进行了十分详尽和直观的解释,还给出了实用的算法流程。本书被卡内基梅隆等许多大学作为机器学习课程的教材。机器学习这门学科研究的是能通过经验自动改进的计算机算法,其应用从数据挖掘程序到信息过滤系统,再到自动机工具,已经非常丰富。机器学习从很多学科吸收了成果和概念,包括人工智能、概论论与数理统计、哲学、信息论、生物学、认知科学和控制论等,并以此来理解问题的背景、算法和算法中的隐含假定。

2009-09-20

机器学习英文版Machine Learning(Mitchell)(下)

本书展示了机器学习中核心的算法和理论,并阐明了算法的运行过程。本书综合了许多的研究成果,例如统计学、人工智能、哲学、信息论、生物学、认知科学、计算复杂性和控制论等,并以此来理解问题的背景、算法和其中的隐含假定

2009-09-14

机器学习英文版Machine Learning(Mitchell)(中)

本书展示了机器学习中核心的算法和理论,并阐明了算法的运行过程。本书综合了许多的研究成果,例如统计学、人工智能、哲学、信息论、生物学、认知科学、计算复杂性和控制论等,并以此来理解问题的背景、算法和其中的隐含假定。

2009-09-14

The C Programming Language 2nd Ed

C的入门经典,得到众多程序员的推荐。作者是Brian Wkernighan和Dennis M.Ritchie

2009-04-25

旅馆管理系统C#单机版

这是一本书上的旅馆管理系统的源代码,有数据库和详细的系统移植文件介绍。

2009-04-25

MLO-My Life Organized

一款国外的时间管理软件,进行个人管理时很实用,但不是源代码,程序员们莫打偶

2009-04-22

空空如也

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

TA关注的人

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