自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

https://github.com/Wang-Jun-Chao

分享知识,创造快乐!

  • 博客(92)
  • 资源 (22)
  • 收藏
  • 关注

原创 【LeetCode-面试算法经典-Java实现】【059-Spiral Matrix II(螺旋矩阵II)】

【059-Spiral Matrix II(螺旋矩阵II)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given an integer n, generate a square matrix filled with elements from 1 to n2 in spiral order.   For example,   Given n = 3,   Yo

2015-07-31 07:07:31 2903

原创 【LeetCode-面试算法经典-Java实现】【058-Length of Last Word (最后一个单词的长度)】

【058-Length of Last Word (最后一个单词的长度)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the

2015-07-31 07:05:48 2837 1

原创 【LeetCode-面试算法经典-Java实现】【057-Insert Interval(插入区间)】

【057-Insert Interval(插入区间)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a set of non-overlapping intervals, insert a new interval into the intervals (merge if necessary).   You may assume that the inte

2015-07-31 07:02:51 2907 1

原创 【LeetCode-面试算法经典-Java实现】【077-Combinations(组合数)】

【077-Combinations(组合数)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given two integers n and k, return all possible combinations of k numbers out of 1 … n.   For example,   If n = 4 and k = 2, a solution is

2015-07-30 06:38:44 3190

原创 【LeetCode-面试算法经典-Java实现】【075-Sort Colors (颜色排序)】

【075-Sort Colors (颜色排序)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given an array with n objects colored red, white or blue, sort them so that objects of the same color are adjacent, with the colors in the

2015-07-30 06:36:18 3157

原创 【LeetCode-面试算法经典-Java实现】【074-Search a 2D Matrix(搜索二维矩阵)】

【074-Search a 2D Matrix(搜索二维矩阵)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Write an efficient algorithm that searches for a value in an m x n matrix. This matrix has the following properties:   Integers in

2015-07-30 06:34:39 3303 1

原创 【LeetCode-面试算法经典-Java实现】【056-Merge Intervals(区间合并)】

【056-Merge Intervals(区间合并)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a collection of intervals, merge all overlapping intervals.   For example,   Given [1,3],[2,6],[8,10],[15,18],   return [1,6],[

2015-07-29 06:51:47 5238 1

原创 【LeetCode-面试算法经典-Java实现】【054-Spiral Matrix(螺旋矩阵)】

【054-Spiral Matrix(螺旋矩阵)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  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 foll

2015-07-29 06:49:20 3616 2

原创 【LeetCode-面试算法经典-Java实现】【053-Maximum Subarray(最大子数组和)】

【053-Maximum Subarray(最大子数组和)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Find the contiguous subarray within an array (containing at least one number) which has the largest sum.   For example, given the ar

2015-07-29 06:46:34 3795 2

原创 【LeetCode-面试算法经典-Java实现】【050-Implement pow(x, n)(求x的n次方)】

【050-Implement pow(x, n)(求x的n次方)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Implement pow(x, n). 题目大意 求x的n次方。  解题思路  递归求解。 代码实现算法实现类public class Solution { public double myPow(double x, int n) {

2015-07-28 06:05:26 5195

原创 【LeetCode-面试算法经典-Java实现】【046-Permutations(求排列)】

【046-Permutations(求排列)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a collection of numbers, return all possible permutations.   For example,   [1,2,3] have the following permutations:   [1,2,3], [1,

2015-07-28 06:01:43 3454

原创 【LeetCode-面试算法经典-Java实现】【038-Count and Say(计数和表述)】

【038-Count and Say(计数和表述)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  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"

2015-07-28 05:59:07 4040 1

原创 【LeetCode-面试算法经典-Java实现】【036-Valid Sudoku(验证数独棋盘)】

【036-Valid Sudoku(验证数独棋盘)】】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Determine if a Sudoku is valid, according to: Sudoku Puzzles - The Rules.   The Sudoku board could be partially filled, where empty cel

2015-07-27 07:21:10 4633 1

原创 【LeetCode-面试算法经典-Java实现】【035-Search Insert Position(搜索插入位置)】

【035-Search Insert Position(搜索插入位置)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  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

2015-07-27 07:18:33 3883 1

原创 【LeetCode-面试算法经典-Java实现】【034-Search for a Range(搜索一个范围)】

【034-Search for a Range(搜索一个范围)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a sorted array of integers, find the starting and ending position of a given target value.   Your algorithm’s runtime comple

2015-07-27 07:17:03 3462 2

原创 【LeetCode-面试算法经典-Java实现】【033-Search in Rotated Sorted Array(在旋转数组中搜索)】

【033-Search in Rotated Sorted Array(在旋转数组中搜索)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Suppose a sorted array is rotated at some pivot unknown to you beforehand.   (i.e., 0 1 2 4 5 6 7 might become 4 5 6

2015-07-26 06:48:59 2900

原创 【LeetCode-面试算法经典-Java实现】【032-Longest Valid Parentheses(最长有效括号)】

【032-Longest Valid Parentheses(最长有效括号)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a string containing just the characters '(' and ')', find the length of the longest valid (well-formed) parentheses su

2015-07-26 06:46:19 3675

原创 【LeetCode-面试算法经典-Java实现】【030-Substring with Concatenation of All Words(串联所有单词的子串)】

【030-Substring with Concatenation of All Words(串联所有单词的子串)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  You are given a string, s, and a list of words, words, that are all of the same length. Find all starting

2015-07-26 06:44:48 3196

原创 【LeetCode-面试算法经典-Java实现】【029-Divide Two Integers(两个整数相除)】

【029-Divide Two Integers(两个整数相除)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Divide two integers without using multiplication, division and mod operator.   If it is overflow, return MAX_INT. 题目大意  不使用除法,乘法

2015-07-25 08:12:27 4138 2

原创 【LeetCode-面试算法经典-Java实现】【028-Implement strStr() (实现strStr()函数)】

[【028-Implement strStr() (实现strStr()函数)】](028-Implement strStr() (实现strStr()函数))【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Implement strStr().   Returns the index of the first occurrence of needle in hayst

2015-07-25 08:08:32 3893

原创 【LeetCode-面试算法经典-Java实现】【027-Remove Element(删除数组中指定的元素)】

【027-Remove Element(删除数组中的元素)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given an array and a value, remove all instances of that value in place and return the new length.   The order of elements can be ch

2015-07-25 08:03:58 4605

原创 【LeetCode-面试算法经典-Java实现】【026-Remove Duplicates from Sorted Array(删除排序数组中的重复元素)】

【026-Remove Duplicates from Sorted Array(删除排序数组中的重复元素)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a sorted array, remove the duplicates in place such that each element appear only once and return the

2015-07-24 07:01:05 3927

原创 【LeetCode-面试算法经典-Java实现】【025-Reverse Nodes in k-Group(单链表中k个结点一组进行反转)】

【025-Reverse Nodes in k-Group(单链表中k个结点一组进行反转)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a linked list, reverse the nodes of a linked list k at a time and return its modified list.   If the number of

2015-07-24 06:58:08 3817 2

原创 【LeetCode-面试算法经典-Java实现】【024-Swap Nodes in Pairs(成对交换单链表的结点)】

【024-Swap Nodes in Pairs(成对交换单链表的结点)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a linked list, swap every two adjacent nodes and return its head.   For example,   Given 1->2->3->4, you should return

2015-07-24 06:55:18 3053

原创 【LeetCode-面试算法经典-Java实现】【023-Merge k Sorted Lists(合并k个排好的的单链表)】

【023-Merge k Sorted Lists(合并k个排好的的单链表)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Merge k sorted linked lists and return it as one sorted list. Analyze and describe its complexity. 题目大意  合并k个排好的的单链表。分析和描述它

2015-07-23 07:56:52 2908

原创 【LeetCode-面试算法经典-Java实现】【022-Generate Parentheses(生成括号)】

【022-Generate Parentheses(生成括号)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given n pairs of parentheses, write a function to generate all combinations of well-formed parentheses.   For example, given n = 3

2015-07-23 07:52:20 3367

原创 【LeetCode-面试算法经典-Java实现】【021-Merge Two Sorted Lists(合并两个排好序的单链表)】

【021-Merge Two Sorted Lists(合并两个排好序的单链表)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Merge two sorted linked lists and return it as a new list. The new list should be made by splicing together the nodes of t

2015-07-23 07:48:31 3673 1

原创 【LeetCode-面试算法经典-Java实现】【020-Valid Parentheses(括号验证)】

【020-Valid Parentheses(括号验证)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a string containing just the characters ‘(‘, ‘)’, ‘{‘, ‘}’, ‘[’ and ‘]’, determine if the input string is valid.   The brackets

2015-07-22 07:26:55 4124 3

原创 【LeetCode-面试算法经典-Java实现】【019-Remove Nth Node From End of List(移除单链表的倒数第N个节点)】

【019-Remove Nth Node From End of List(移除单链表的倒数第N个节点)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a linked list, remove the nth node from the end of list and return its head.   For example, Given lin

2015-07-22 07:24:29 3776

原创 【LeetCode-面试算法经典-Java实现】【018-4Sum(四个数的和)】

【018-4Sum(四个数的和)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given an array S of n integers, are there elements a, b, c, and d in S such that a + b + c + d = target? Find all unique quadruplets in the array

2015-07-22 07:22:02 4724

原创 【LeetCode-面试算法经典-Java实现】【017-Letter Combinations of a Phone Number (电话号码上的单词组合)】

【017-Letter Combinations of a Phone Number (电话号码上的单词组合)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a digit string, return all possible letter combinations that the number could represent.   A mapping

2015-07-21 07:27:32 3805

原创 【LeetCode-面试算法经典-Java实现】【016-3 Sum Closest(最接近的三个数的和)】

【016-3 Sum Closest(最接近的三个数的和)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given an array S of n integers, find three integers in S such that the sum is closest to a given number, target. Return the sum of th

2015-07-21 07:22:05 4500

原创 【LeetCode-面试算法经典-Java实现】【015-3 Sum(三个数的和)】

【013-3 Sum(三个数的和)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the su

2015-07-21 07:15:45 5991 1

原创 【LeetCode-面试算法经典-Java实现】【014-Longest Common Prefix(最长公共前缀)】

【014-Longest Common Prefix(最长公共前缀)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Write a function to find the longest common prefix string amongst an array of strings. 题目大意  写一个函数找出一个字串所数组中的最长的公共前缀。 解题思路  第一

2015-07-20 07:22:56 4300

原创 【LeetCode-面试算法经典-Java实现】【013-Roman to Integer (罗马数字转成整数)】

【013-Roman to Integer (罗马数字转成整数)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】原题  Given a roman numeral, convert it to an integer.   Input is guaranteed to be within the range from 1 to 3999. 题目大意  给定一个罗马数字,将其转

2015-07-20 07:20:28 3752 1

原创 【LeetCode-面试算法经典-Java实现】【012-Integer to Roman(数字转罗马字符)】

【012-Integer to Roman(数字转罗马字符)】输入一个数字,将它转成一个罗马数字,输入的数字在[1, 3999]之间。  罗马数字的表示:  个位数举例: (I, 1) (II, 2) (III, 3) (IV, 4) (V, 5) (VI, 6) (VII, 7) (VIII, 8) (IX, 9)  十位数举例:(X, 10) (XI, 11) (XII, 12) (X

2015-07-20 07:16:58 3442

原创 【LeetCode-面试算法经典-Java实现】【011-ContainerWithMostWater(容纳最多的水)】

【011-ContainerWithMostWater(容纳最多的水)】找两条竖线然后这两条线以及X轴构成的容器能容纳最多的水。使用贪心算法  1.首先假设我们找到能取最大容积的纵线为 i, j (假定i < j),那么得到的最大容积 C = min( ai , aj ) * ( j- i) ;  2.下面我们看这么一条性质:  ①: 在 j 的右端没有一条线会比它高!假设存在 k |( j < k && ak

2015-07-19 06:58:05 4407

原创 【LeetCode-面试算法经典-Java实现】【010-Regular Expresssion Matching(正则表达式匹配)】

【010-Regular Expresssion Matching(正则表达式匹配)】实现一个正则表达式匹配算法,.匹配任意一个字符,*匹配0个或者多个前导字符。使用标记匹配算法法,从后向前进行匹配。

2015-07-19 06:53:11 3737

原创 【LeetCode-面试算法经典-Java实现】【009-Palindrome Number(回文数)】

【009-Palindrome Number(回文数)】【LeetCode-面试算法经典-Java实现】【所有题目目录索引】题目大意  判断一个数字是否是回访字数,不要使用额外的空间。 解题思路  为了不使用额外的空间,参考了其它的解决,那些解法看起来在isPalindrome方法中没有使用额外参数,但是却使用了方法调用,这个比一个整数消耗的空间更多 ,并没有达到题目的要求,是假的实现,所以本题依然采用一个额外的空间

2015-07-19 06:43:35 4491

原创 【LeetCode-面试算法经典-Java实现】【008-String to Integer (atoi) (字符串转成整数)】

【008-String to Integer (atoi) (字符串转成整数)】实现一个atoi函数,将字符串转成整形。要点:考虑所有的输入情况。前导字符是+或-或者没有,接下来输入的是数字,数字不能整数能表示的最大或最小数。如果超过就返回对应的最小或者最小的值。

2015-07-18 06:30:47 6113 1

JDK-8-API.chm

最新的JAVA JDK 8帮助文档,方便实用,开发必备。

2014-04-04

[2007-2012][华南理工历年机试试题]

非常全的华南理工考研计算机机试试题[2007-2012][华南理工历年机试试题].pdf

2013-03-03

Java CP/IP Socket编程

JAVA SOCKET 编程的经典之书,(中文版)里面的代码可直接复制使用! 目录: 第1章简介..........3 1.1 计算机网络,分组报文和协议..........3 1.2 关于地址..........6 1.3 关于名字..........8 1.4 客户端和服务器..........8 1.5 什么是套接字..........9 1.6 练习..........10 第2章基本套接字..........10 2.1 套接字地址..........10 2.2 TCP套接字..........17 2.2.1 TCP客户端..........17 2.2.2 TCP服务器端..........22 2.2.3 输入输出流..........26 2.3 UDP套接字..........28 2.3.1 DatagramPacket类..........28 2.3.2 UDP客户端..........30 2.3.3 UDP服务器端..........36 2.3.4 使用UDP套接字发送和接收信息..........38 2.4 练习..........40 第3章发送和接收数据..........41 3.1 信息编码..........42 3.1.1 基本整型..........42 3.1.2 字符串和文本..........48 3.1.3 位操作:布尔值编码..........50 3.2 组合输入输出流..........51 3.3 成帧与解析..........52 3.4 Java特定编码..........58 3.5 构建和解析协议消息..........59 3.5.1 基于文本的表示方法..........62 3.5.2 二进制表示方法..........65 3.5.3 发送和接收..........67 3.6 结束..........76 3.7 练习..........76 第4章进阶..........77 4.1 多任务处理..........77 4.1.1 Java 多线程..........78 4.1.2 服务器协议..........80 4.1.3 一客户一线程..........84 4.1.4 线程池..........86 4.1.5 系统管理调度:Executor接口..........89 4.2 阻塞和超时..........91 4.2.1 accept(),read()和receive()..........91 4.2.2 连接和写数据..........92 4.2.3 限制每个客户端的时间..........92 4.3 多接收者..........94 4.3.1 广播..........94 4.3.2 多播..........95 4.4 控制默认行为..........100 4.4.1 Keep-Alive..........100 4.4.2 发送和接收缓存区的大小..........101 4.4.3 超时..........101 4.4.4 地址重用..........102 4.4.5 消除缓冲延迟..........102 4.4.6 紧急数据..........103 4.4.7 关闭后停留..........103 4.4.8 广播许可..........103 4.4.9 通信等级..........104 4.4.10 基于性能的协议选择..........104 4.5 关闭连接..........104 4.6 Applets..........111 4.7 结束..........112 4.8 练习..........112 第5章 NIO..........112 5.1 为什么需要NIO?..........113 5.2 与Buffer一起使用Channel..........115 5.3 Selector..........118 5.4 Buffer详解..........125 5.4.1 Buffer索引..........125 5.4.2 创建Buffer..........126 5.4.3 存储和接收数据..........128 5.4.4 准备Buffer:clear(),flip(),和rewind()..........130 5.4.5 压缩Buffer中的数据..........132 5.4.6 Buffer透视:duplicate(),slice()等..........134 5.4.7 字符编码..........136 5.5 流(TCP)信道详解..........136 5.6 Selector详解..........139 5.6.1 在信道中注册..........139 5.6.2 选取和识别准备就绪的信道..........141 5.6.3 信道附件..........143 5.6.4 Selector小结..........144 5.7 数据报(UDP)信道..........144 5.8 练习..........149 1. 使用定长的写缓冲区改写TCPEchoClientNonblocking.java。..........149 2.使用Buffer和DatagramChannel编写一个回显客户端。..........149 第6章深入剖析..........149 6.1 缓冲和TCP..........152 6.2 死锁风险..........155 6.3 性能相关..........158 6.4 TCP套接字的生存周期..........158 6.4.1 连接..........158 6.4.2 关闭TCP连接..........164 6.5 解调多路复用揭秘..........167 6.6 练习..........169

2012-04-13

嵌入式试卷

1、 嵌入式系统的设计可以分成三个阶段:分析、 设计 和 实现 2、 目前使用的嵌入式操作系统主要有 Windows CE/Windows Mobile Linux、uCos、和 Symbian 3、 XScale微处理器使用的是ARM公司 ARMV5TE 版内核和指令集。 4、 微处理器有两种总线架构,使用数据和指令使用同一接口的是 冯诺依曼 ,分开的指令和数据接口、取指和数据访问可以并行进行的是 哈佛结构 5、 ARM微处理器有七种工作模式,它们分为两类 非特权模式 、 特权模式 。其中用户模式属于 非特权模式 6、 ARM核有两个指令集,分别是 ARM 、 Thumb 7、 ARM微处理器复位后,PC(R15)的地址通常是 0X0 , 初始的工作模式是 supervisor 8、在ARM体系构架中对复杂的内存管理是通过系统控制协处理器 cp15 和MMU(存储管理部件)来进行的。当系统发生 Data Abort(数据)异常和 Prefetch Abort(指令领取) 异常时,异常处理程序透过嵌入式操作系统的内存管理机制,通过MMU交换物理内存和虚拟内存的页面,以保证程序正常执行。 9、构建嵌入式系统开发环境的工具链有多种,其中开放源码的工具链是 GNU工具链 ,ARM公司提供的工具链是 ADS工具链

2011-11-24

JDK_API_1_6_zh_CN.chm

java技术开发文档。java程序员必有的参考

2011-09-22

keygen.rar

vmware 8 支持 window8 对想体验window8功能但不想直接安装的人来说是很好的选择!

2011-09-17

plsqldev9_CRACK.rar

plsql的代码编写可视化工具。方便易用。

2011-09-02

[JAVA案例开发集锦].(袁然&郑自国&邹丰).(第1版).pdf

[JAVA案例开发集锦].(袁然&郑自国&邹丰).(第1版).pdf 一本不错的JAVA开发书籍。

2011-08-19

Oracle+Database+10g完全参考手册.7z

介绍ORACLE 10g 全面的书籍。同时也是ORACLE 10g开发中的参考手册!

2011-07-26

[英文原版]O'Reilly.MySQL.Cookbook,2nd.Edition.chm

MYSQL 数据库的经典之作。每个数据库从业人员必需掌握的一种!

2011-07-26

sql server 2008 pdf

学习 sql server 2008 必不可少的开发书籍

2011-03-24

数据结构 C 习题答案 chm

经典典算法之书,是每个程序员必备的...

2011-03-02

MySQL权威指南 sql mysql

MySQL的权威经典,学MySQL的必备.每个数据库人员必会的一种人技能

2011-02-28

C#帮助文档 C#api

C# 帮助文档帮助你更深入了解C#.是C#开发必备之物 下载后请将文件重命名为为 "Csref.chm"否则可能无法使用.

2011-01-12

空空如也

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

TA关注的人

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