自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

清水

Standing on Shoulders of Giants

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

原创 [LeetCode] - Min Stack O(1)最小栈

Min Stack Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the s

2014-11-13 13:34:31 1522

原创 Linux中实现线程池

为了实现高并发服务器,试验了

2014-10-07 21:06:21 846

原创 Epoll实现服务器高并发

最近在做一个

2014-10-07 20:34:23 1166

原创 [Linux内存管理-分页机制]—把一个虚拟地址转换为物理地址

由于内核在不同的CPU上运行,甚至包括目前的64位机器。

2014-09-11 19:06:10 1495

原创 mmap() 实现文件复制

mmap()在进程的的用户空间创建一个新的虚存取,可以用于文件在

2014-09-09 19:20:33 791

原创 [九度1512 剑指offer7] 用两个栈实现队列

题目1512:用两个栈实现队列题目描述:用两个栈来实现一个队列,完成队列的Push和Pop操作。队列中的元素为int类型。输入:每个输入文件包含一个测试样例。对于每个测试样例,第一行输入一个n(1接下来的n行,每行输入一个队列操作:1. PUSH X 向队列中push一个整数x(x>=0)2. POP 从队列中pop一个数。

2014-08-31 14:22:20 762

原创 [LeetCode]-Triangle 求三角形中从顶到底最短距离

Triangle

2014-08-30 21:28:33 1052

原创 [LeetCode]-Edit Distance 两个字符串之间最小编辑距离

Edit Distance

2014-08-30 19:29:52 929

原创 [九度 1510 剑指offer]—替换空格 数组插入逆向移动

题目:http://ac.jobdu.com/problem.php?pid=1510

2014-08-22 16:22:24 620

原创 Linux 2.6 中导出sys_call_table表修改系统调用函数

Linux中实现系统调用

2014-08-21 16:31:28 4318

原创 [九度—剑指offer]—二维数组查找

题目描述:在一个二维数组中,每一行都按照从左到右递增的顺序排序,每一列都按照从上到下递增的顺序排序。请完成一个函数,输入这样的一个二维数组和一个整数,判断数组中是否含有该整数。输入:输入可能包含多个测试样例,对于每个测试案例,输入的第一行为两个整数m和n(1输入的第二行包括一个整数t(1接下来的m行,每行有n个数,代表题目所给出的m行n列的矩阵(矩阵如题目描述所示,每一

2014-08-20 15:27:59 708

原创 Linux进程管理中的hash

Linux内核必须能够根据进程的PID找出对应的PCB

2014-08-18 16:37:44 1365

原创 Singleton Pattern 单例模式

单例模式,顾名思义是确保一个类只有一个

2014-08-17 20:48:18 596

原创 [LeetCode]-Palindrome Number 判断整数回文

Palindrome Number Determine whether an integer is a palindrome. Do this without extra space.click to show spoilers.Some hints:Could negative integers be palindromes? (ie, -1)If y

2014-08-17 15:38:58 645

原创 [LeeCode]-Divide Two Integers 不用乘除的除法运算

Divide Two Integers

2014-08-17 14:31:00 681

原创 [LeetCode]-Spiral Matrix I&II 螺旋矩阵

Spiral Matrix Given a matrix of m x n elements (m rows, n columns), return all elements of the matrix in spiral order.For example,Given the following matrix:[ [ 1, 2, 3 ], [ 4, 5,

2014-08-17 11:16:15 800

原创 [LeetCode]-Pascal's Triangle I&II 杨辉三角问题

Pascal's Triangle II Given an index k, return the kth row of the Pascal's triangle.For example, given k = 3,Return [1,3,3,1].Note:Could you optimize your algorithm to use only O(

2014-08-16 15:26:03 772

原创 [LeetCode]—Word Search

Word SearchGiven a 2D board and a word, find if the word exists in the grid.The word can be constructed from letters of sequentially adjacent cell, where "adjacent" cells are those

2014-08-15 21:58:07 601

原创 [LeetCode]-Generate Parentheses N个括号所有的组合数

Generate Parentheses Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.For example, given n = 3, a solution set is:"((()))", "(()

2014-08-15 15:31:32 1101

原创 [LeetCode]-Letter Combinations of a Phone Number 电话键盘的字符串组合

Letter Combinations of a Phone Number

2014-08-15 11:37:28 693

原创 [LeetCode]-Combination Sum I&II 求相加和为target的集合

Combination Sum 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 ch

2014-08-14 21:41:29 537

原创 [LeetCode]-Restore IP Addresses

Restore IP Addresses Given a string containing only digits, restore it by returning all possible valid IP address combinations.For example:Given "25525511135",return ["255.255.11.1

2014-08-14 17:08:56 521

原创 [LeetCode]-Unique PathsII 有障碍的矩阵中求两点间所有路线条数

Unique Paths II

2014-08-13 19:21:05 1304

原创 [LeetCode]-Unique Paths 矩阵中求两点间所有路线条数

Unique Paths

2014-08-13 16:35:46 1315

原创 [LeetCode]—Palindrome Partitioning II 回文分割,求最小分割数

Palindrome Partitioning II Given a string s, partition s such that every substring of the partition is a palindrome.Return the minimum cuts needed for a palindrome partitioning of s.

2014-08-13 14:38:48 1078

原创 [LeetCode]-Palindrome Partitioning 求回文分割的所有情况

Palindrome Partitioning

2014-08-13 11:20:11 643

原创 [LeetCode]-Surrounded Regions 找被包围的点

Surrounded Regions Given a 2D board containing 'X' and 'O', capture all regions surrounded by 'X'.A region is captured by flipping all 'O's into 'X's in that surrounded region.Fo

2014-08-13 10:17:52 875

原创 [LeetCode]—Word LadderII 单词递推II

Word Ladder II

2014-08-12 14:31:11 730

原创 [Python]—Linux Server 系统监控程序

主要功能:                 1、获取

2014-07-14 20:36:31 960

原创 [LeetCode]—Word Ladder 单词递推

Word Ladder Given two words (start and end), and a dictionary, find the length of shortest transformation sequence from start to end, such that:Only one letter can be changed at a timeEa

2014-07-10 16:28:51 830

原创 [LeetCode]—Permutations II 求全排列(有重复值)

Permutations II Given a collection of numbers that might contain duplicates, return all possible unique permutations.For example,[1,1,2] have the following unique permutations:[1,1,2

2014-07-10 11:55:16 1025

原创 [LeetCode]—Permutations 求全排列

Permutations Given a collection of numbers, return all possible permutations.For example,[1,2,3] have the following permutations:[1,2,3], [1,3,2], [2,1,3], [2,3,1], [3,1,2], and [3

2014-07-10 10:59:28 694

原创 [LeetCode]—Subsets II 求数组子集(有重复值)

Subsets II Given a collection of integers that might contain duplicates, S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set m

2014-07-10 09:57:03 1228

原创 [LeetCode]—Subsets 求数组子集

Subsets Given a set of distinct integers, S, return all possible subsets.Note:Elements in a subset must be in non-descending order.The solution set must not contain duplicate subse

2014-07-09 16:11:42 1127

原创 [LeetCode]—Search Insert Position 有序数组中找目标插入的位置

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 a

2014-07-09 11:15:56 875

原创 [LeetCode]—Search a 2D Matrix 有序二维矩阵中查找目标值

Search a 2D Matrix Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:Integers in each row are sorted from left to ri

2014-07-09 11:12:32 870

原创 [LeetCode]—Search for a Range 有序数组查找target的下标范围

Search for a Range

2014-07-09 09:12:35 1002

原创 [LeetCode]—Largest Rectangle in Histogram 求直方图最大填充矩形面积

Largest Rectangle in Histogram

2014-07-08 16:44:51 818

原创 [LeetCode]—Longest Valid Parentheses 最长括号匹配

Longest Valid Parentheses Longest Valid Parentheses

2014-07-07 19:20:23 636

原创 [LeetCode]—Simplify Path 简化路径表达式

Simplify Path Given an absolute path for a file (Unix-style), simplify it.For example,path = "/home/", => "/home"path = "/a/./b/../../c/", => "/c"

2014-07-05 22:40:58 672

[Python]—Linux Server 系统监控程序

主要功能: 1、获取Server Name 2、获取操作系统版本信息 3、获取CPU硬件信息 4、获取内存使用信息 5、获取相关网络信息 6、获取磁盘及分区的相关信息 7、获取Server所有的用户名 8、获取服务器开机时间、运行时间相关信息 9、获取运行队列负载信息 10、获取系统进程总数 说明:需要自己安装一个psutil包

2014-07-14

ACM绝对资料~~~

杭电ACM 刘春英讲解 适合初级学者 一些经典算法 PPT 按讲义编排

2009-10-13

顺序表的建立和基本操作

顺序表的初始化、建立、插入、删除、查找。。相关操作

2009-10-09

空空如也

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

TA关注的人

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