上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页
摘要: 1.题目描述 Given a roman numeral, convert it to an integer. Input is guaranteed to be within the range from 1 to 3999. 2.我的分析思路 罗马数字转成阿拉伯数字,这里面需要知道罗马数字的构成 阅读全文
posted @ 2017-02-12 20:58 飞轩 阅读(2575) 评论(0) 推荐(1) 编辑
摘要: 1.题目描述 Given a string, find the length of the longest substring without repeating characters. Examples: Given =="abcabcbb"==, the answer is =="abc"==, 阅读全文
posted @ 2017-02-12 20:43 飞轩 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 You are given two non empty linked lists representing two non negative integers. The digits are stored in reverse order and each of their nodes 阅读全文
posted @ 2017-02-09 09:56 飞轩 阅读(1393) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Determine whether an integer is a palindrome. Do this without extra space. Some hints: Could negative integers be palindromes? (ie, 1) If you a 阅读全文
posted @ 2017-02-07 21:23 飞轩 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Reverse digits of an integer. Example1: x = 123, return 321 Example2: x = 123, return 321 Note: The input is assumed to be a 32 bit signed inte 阅读全文
posted @ 2017-02-07 09:42 飞轩 阅读(153) 评论(0) 推荐(0) 编辑
摘要: 1.题目描述 Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would 阅读全文
posted @ 2017-02-06 11:42 飞轩 阅读(201) 评论(0) 推荐(0) 编辑
摘要: 本文继续分析HashMap的源码。本文的重点是resize()方法和HashMap中其他的一些方法,希望各位提出宝贵的意见。 话不多说,咱们上源码。 上面一段代码的内容比较好理解,都已经根据注释就能看懂,主要的内容在下半部分:扩容后和扩容前,数据存放位置的变化。我们可以理解一下。 经过观测可以发现, 阅读全文
posted @ 2017-01-06 21:35 飞轩 阅读(253) 评论(0) 推荐(0) 编辑
摘要: 一直以来,HashMap就是Java面试过程中的常客,不管是刚毕业的,还是工作了好多年的同学,在Java面试过程中,经常会被问到HashMap相关的一些问题,而且每次面试都被问到一些自己平时没有注意的问题。因为HashMap不管对于毕业生,还是对于老司机来说,都非常熟悉,熟悉到你经常忽略它。 本着知 阅读全文
posted @ 2017-01-06 17:26 飞轩 阅读(233) 评论(0) 推荐(0) 编辑
摘要: 一、定义 桥梁模式(Bridge Pattern)也叫做桥接模式,是一个比较简单的模式,其定义如下: Decouple an abstraction from its implementation so that the two can vary independently.(将抽象和实现解耦,使得 阅读全文
posted @ 2017-01-03 11:31 飞轩 阅读(187) 评论(0) 推荐(0) 编辑
摘要: 一、定义 享元模式(Flyweight Pattern)是池技术的重要实现方式,其定义如下:Use sharing to support large numbers of fine grained objects efficiently.(使用共享对象可有效地支持大量的细粒度的对象。) 享元模式的定 阅读全文
posted @ 2017-01-03 10:59 飞轩 阅读(162) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 13 下一页