自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 资源 (3)
  • 问答 (1)
  • 收藏
  • 关注

转载 二进制乘除法的实现

转自:http://www.cnblogs.com/zuoxiaolong/p/computer10.html引言   运算一直是程序运行当中一个重要的环节,而在二进制的运算过程当中,加法运算又是重中之重,它基本上奠定了二进制运算的基础。因为无论是减法还是乘法,都可以由加法运算来替代,唯有除法不能由加法替代。  了解计算机运算的规律,可以有助于我们理解很多程序代码上无法理解的内容。比如上章提到的溢

2017-09-25 11:49:20 43504

原创 Ubuntu异常关机后无法启动图形界面,提示 Welcome to emergency mode...的解决方法

输入密码登录root账户;执行命令 journalctl -xb 查看日志输出,搜索关键字”fsck failed”(输入/,然后输入关键字后回车,通过N/n查看上一个/下一个匹配项),找到错误相关的设备,例如我的是/dev/sda8;执行命令 umount /dev/sda8 (对应自己出错的设备)卸载设备;执行命令 fsck -y /dev/sda8 执行fsck校验并修复文件;执行命令

2017-09-25 11:05:56 14827 9

原创 22. 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:[ "((()))", "(()())", "(())()", "()(())", "

2017-09-21 20:39:48 1353 1

原创 18. 4Sum(求数组中和为指定值的4个数)

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 which gives the sum of target.Note: The solution set m

2017-09-20 22:27:20 1296

原创 17. Letter Combinations of a Phone Number(根据手机按键求字母的组合)

Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephone buttons) is given below.Input:Digit string "23"

2017-09-19 11:48:55 1275

原创 16. 3Sum Closest(找出和最接近给定值的三个数)

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 the three integers. You may assume that each input would have exactly

2017-09-18 19:55:31 1725

原创 15. 3Sum(求数组中和为0的3个数)

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 sum of zero.Note: The solution set must not contain dupli

2017-09-13 20:27:20 1931

转载 java方法调用之动态调用多态(重写override)的实现原理——方法表

转自:http://blog.csdn.net/fan2012huan/article/details/51007517上两篇篇博文讨论了java的重载(overload)与重写(override)、静态分派与动态分派,这篇博文讨论下动态分派的实现方法,即多态override的实现原理。 java方法调用之重载、重写的调用原理(一) java方法调用之单分派与多分派(二)本文大部分内容来自于IBM

2017-09-11 20:21:02 1473

转载 JVM方法调用的那些事

转自:http://www.jianshu.com/p/56a7c4b26b14前言Java具备三种特性:封装、继承、多态。Java文件在编译过程中不会进行传统编译的连接步骤,方法调用的目标方法以符号引用的方式存储在Class文件中,这种多态特性给Java带来了更灵活的扩展能力,但也使得方法调用变得相对复杂,需要在类加载期间,甚至到运行期间才能确定目标方法的直接引用。方法调用所有方法调用的目标方法

2017-09-11 18:08:37 430

转载 泛型的内部原理:类型擦除以及类型擦除带来的问题

一、Java泛型的实现方法:类型擦除前面已经说了,Java的泛型是伪泛型。为什么说Java的泛型是伪泛型呢?因为,在编译期间,所有的泛型信息都会被擦除掉。正确理解泛型概念的首要前提是理解类型擦出(type erasure)。Java中的泛型基本上都是在编译器这个层次来实现的。在生成的Java字节码中是不包含泛型中的类型信息的。使用泛型的时候加上的类型参数,会在编译器在编译的时候去掉。这个过程就称为

2017-09-08 16:34:34 952 1

原创 11. Container With Most Water(求能装最多水的容器)

Given n non-negative integers a1, a2, ..., an, where each represents a point at coordinate (i, ai). n vertical lines are drawn such that the two endpoints of line i is at (i, ai) and (i, 0). Find two

2017-09-08 10:27:25 1341

原创 5. Longest Palindromic Substring(求最长回文子字符串)

Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000.Example:Input: "babad"Output: "bab"Note: "aba" is also a valid answer.

2017-09-05 19:40:54 885

原创 3. Longest Substring Without Repeating Characters(计算不含重复字符的最长子串的长度)

Given a string, find the length of the longest substring without repeating characters.Examples:Given "abcabcbb", the answer is "abc", which the length is 3.Given "bbbbb", the answer is "

2017-09-05 18:02:48 1142 2

转载 Java中的阻塞队列

1. 什么是阻塞队列?阻塞队列(BlockingQueue)是一个支持两个附加操作的队列。这两个附加的操作是:在队列为空时,获取元素的线程会等待队列变为非空。当队列满时,存储元素的线程会等待队列可用。阻塞队列常用于生产者和消费者的场景,生产者是往队列里添加元素的线程,消费者是从队列里拿元素的线程。阻塞队列就是生产者存放元素的容器,而消费者也只从容器里拿元素。阻塞队列提供了四种处理方法:方法\处理方...

2017-09-01 19:48:42 399

Git-2.11.0-64-bit.exe

Git安装程序,2.11.0版本,64位

2017-01-07

mybatis-generator-core-1.3.2.jar 

通过数据表逆向生成po,映射文件和mapper接口

2017-01-05

maven核心程序apache-maven-3.3.9-bin

maven核心程序,版本为3.3.9,可以配合最新版的eclipse4.6.1使用,可以指定通过maven创建的工程的jdk版本为1.8

2017-01-02

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

TA关注的人

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