自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

kangbin825的专栏

天道酬勤 越努力 越幸运

  • 博客(16)
  • 资源 (33)
  • 收藏
  • 关注

原创 [leetcode]438. Find All Anagrams in a String

Given a string s and a non-empty string p, find all the start indices of p's anagrams in s.Strings consists of lowercase English letters only and the length of both strings s and p will not be lar

2017-01-23 17:00:20 1054

原创 [leetcode]437. Path Sum III

You are given a binary tree in which each node contains an integer value.Find the number of paths that sum to a given value.The path does not need to start or end at the root or a leaf, but it

2017-01-23 16:18:45 1050

原创 复合索引的优点和注意事项

概念:    单一索引是指索引列为一列的情况,即新建索引的语句只实施在一列上;    用户可以在多个列上建立索引,这种索引叫做复合索引(组合索引);    复合索引在数据库操作期间所需的开销更小,可以代替多个单一索引;    同时有两个概念叫做窄索引和宽索引,窄索引是指索引列为1-2列的索引,宽索引也就是索引列超过2列的索引;    设计索引的一个重要原则就是能用窄索引不用宽索

2017-01-21 15:33:42 6759 5

原创 [leetcode]303. Range Sum Query - Immutable

Given an integer array nums, find the sum of the elements between indicesi and j (i ≤ j), inclusive.Example:Given nums = [-2, 0, 3, -5, 2, -1]sumRange(0, 2) -> 1sumRange(2, 5) -> -1sumRang

2017-01-07 23:10:10 1036

原创 [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:Try to come up as many solutions as you can

2017-01-06 23:02:02 1042

原创 [leetcode]414. Third Maximum Number

Given a non-empty array of integers, return the third maximum number in this array. If it does not exist, return the maximum number. The time complexity must be in O(n).Example 1:Input: [3, 2, 1

2017-01-06 22:31:20 1010

转载 Java多线程 -- Map容器性能比较

单线程单线程环境下可以使用HashMap和TreeMap。TreeMap上遍历返回结果是按照Key排序的。测试方法记录写入Map中N条记录的时间,单位毫秒。记录从N条记录的Map中读取10W条记录的时间,单位毫秒。N=25W,50W,75W,100W测试结果写N条记录25W 50W 75W 100WHashMap284

2017-01-05 22:43:14 1328

原创 [leetcode]225. Implement Stack using Queues

Implement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the element on top of the stack.top() -- Get the top element.empty() -- Return whet

2017-01-05 22:25:09 1080

原创 [leetcode'396. Rotate Function

Given an array of integers A and let n to be its length.Assume Bk to be an array obtained by rotating the arrayA k positions clock-wise, we define a "rotation function" F on A as follow:F(k) =

2017-01-04 20:47:17 1061

原创 [reading notes] css W3school reading notes

CSS 指层叠样式表 (Cascading Style Sheets)内容与表现分离的问题一般而言,所有的样式会根据下面的规则层叠于一个新的虚拟样式表中,其中数字 4 拥有最高的优先权。浏览器缺省设置外部样式表内部样式表(位于 标签内部)内联样式(在 HTML 元素内部)selector {property: value}p

2017-01-02 16:44:30 1272

原创 [leetcode]475. Heaters

Winter is coming! Your first job during the contest is to design a standard heater with fixed warm radius to warm all the houses.Now, you are given positions of houses and heaters on a horizontal li

2017-01-02 13:31:18 1716

原创 [leetcode]102. Binary Tree Level Order Traversal

Given a binary tree, return the level order traversal of its nodes' values. (ie, from left to right, level by level).For example:Given binary tree [3,9,20,null,null,15,7], 3 / \ 9 20

2017-01-02 10:33:06 1219

转载 Java遍历树(深度优先+广度优先)

在编程生活中,我们总会遇见树性结构,这几天刚好需要对树形结构操作,就记录下自己的操作方式以及过程。现在假设有一颗这样树,(是不是二叉树都没关系,原理都是一样的) 1、深度优先英文缩写为DFS即Depth First Search.其过程简要来说是对每一个可能的分支路径深入到不能再深入为止,而且每个节点只能访问一次。对于上面的例子来说深度优先遍历的结果就是:A,B,D,E,I,C,F

2017-01-01 16:27:04 916

原创 java中队列的使用

Queue接口与List、Set同一级别,都是继承了Collection接口。LinkedList实现了Queue接口。Queue接口窄化了对LinkedList的方法的访问权限(即在方法中的参数类型如果是Queue时,就完全只能访问Queue接口所定义的方法 了,而不能直接访问 LinkedList的非Queue的方法),以使得只有恰当的方法才可以使用。BlockingQueue 继承了Qu...

2017-01-01 16:15:38 32206 2

原创 [leetcode]107. Binary Tree Level Order Traversal II

Given a binary tree, return the bottom-up level order traversal of its nodes' values. (ie, from left to right, level by level from leaf to root).For example:Given binary tree [3,9,20,null,null,15,

2017-01-01 16:02:45 1085

原创 [leetcode]441. Arranging Coins

You have a total of n coins that you want to form in a staircase shape, where everyk-th row must have exactly k coins.Given n, find the total number of full staircase rows that can be formed.n i

2017-01-01 10:02:00 1029

chrome常用插件.rar

chrome常用插件 包括 postman插件、AXure插件、json handler插件、dark reader插件、油猴插件等

2019-11-29

ADB 操作命令详解及用法大全.pdf

ADB 操作命令详解及用法大全.pdf android debug bridge学习资料, 给需要app模拟用的同学一起学习

2019-11-29

idea插件:ScrollFromSource

idea插件:ScrollFromSource, 能在工程里快速通过快捷键定位到当前打开的类处

2017-07-01

从PAXOS到ZOOKEEPER分布式一致性原理与实践.rar

从PAXOS到ZOOKEEPER分布式一致性原理与实践.rar, 分布式事务

2017-05-19

Redis设计与实现

redis设计与实现,缓存

2017-05-18

阿里巴巴java开发手册

阿里巴巴java开发手册

2017-04-03

findbugs eclipse插件

findbugs eclipse插件,让程序员更好的集中code

2017-03-04

大型网站技术架构:核心原理与案例分析+李智慧.pdf

本书分析的网站架构的原理,由浅入深,易懂

2017-02-26

Java 并发编程实战(英文版)

Java 并发编程实战(英文版)推荐给java并发学习的朋友。建议阅读英文版,一是英文版描述的比较原汁原味,二是还可以练练英语,实在英文版有理解困难的可以结合中文版一起看。

2017-01-07

Java RESTful Web Service实战 高清完整.pdf版下载

Java RESTful Web Service实战 [韩陆著][机械工业出版社][2014.09][298页], 想学习java webService restful的朋友可以看一下。

2017-01-01

HADOOP实战第二版中文清晰版

HADOOP实战第二版中文清晰版, 想学习大数据的朋友可以看一下。

2017-01-01

Java RESTful Web Service实战 [韩陆著]

2016-12-31

大型网站技术架构:核心原理与案例分析+李智慧

2016-12-31

Spring 3.x 企业应用开发实战】完整高清扫描版).pdf

2016-07-27

《锋利的jQuery》(高清扫描版-有书签).pdf

jquery学习非常不错的一本书,欢迎朋友们一起学习!

2015-06-28

红旗Linux用户基础教程.pdf

本书详细介绍了红旗Linux各种功能的使用,对Linux入门的读者非常实用。

2015-06-28

高质量C C++编程指南.pdf

为从事C/C++编程的人员提供更好的编程建议。

2015-06-28

UNIX环境高级编程 第二版.pdf

在Unix进行程序设计的有关人员必读且经常需要查阅的首选参考书。

2015-06-27

链接器和加载器中文版.pdf

链接器和加载器是软件开发工具包中的一部分,它们是允许使用模块来构建程序的关键工具。

2015-06-27

[计算机网络第五版]计算机网络第五版.pdf

本书概念准确、论述严谨、内容新颖,突出基本原理和基本概念的阐述,对计算机网络感兴趣的读者很有帮助。

2015-06-27

C程序设计.第二版.谭浩强.pdf

谭浩强老师编写的C程序设计,非常适合初学者去学习。希望能和大家一起来学习交流!

2015-06-27

[数据结构(C语言版)].严蔚敏_吴伟民.扫描版.pdf

严蔚敏老师的数据结构,适合于C语言的算法学习。

2015-06-27

Asp.Net+MVC4入门指南.pdf

每章从一个个示例开始讲解,非常详细,也很清楚明白,适合ASP.NET MVC4入门的同学一起学习。

2015-06-27

海伦公式:用三角形周长求面积

海伦公式:用三角形周长求面积,算法设计时可用,较简单

2013-04-17

空空如也

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

TA关注的人

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