自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 2018年阿里Java实习生春招面试

鄙人参加了阿里的java实习生招聘,现对面试官考察问题记录如下,希望能够帮助有需要的人:一面:1. 重载和重写;2. HashMap的底层实现结构和相关操作的实现;3. TreeSet和HashSet的底层实现;4. TreeSet和HashSet查找的时间复杂度;5. n个进程,n个资源,怎么分配可以避免死锁(面试官提供答案为给资源编号);6. 乐观锁与悲观锁;7. JVM堆了解多少?8. 写过...

2018-03-29 20:52:20 1325

转载 342. Power of Four

判断一个数是不是4的幂。First,greater than 0.Second,only have one ‘1’ bit in their binary notation,so we use x&(x-1) to delete the lowest ‘1’,and if then it becomes 0,it prove that there is only one ‘1’ bit.T...

2018-03-09 10:28:13 131

翻译 191. Number of 1 Bits

Write a function that takes an unsigned integer and returns the number of ’1' bits it has (also known as the Hamming weight).For example, the 32-bit integer ’11' has binary representation 000000000000...

2018-03-06 17:36:06 126

原创 Floyd判圈算法 leetcode 202题Happy Number

今天,日常刷leetcode,遇到202问题如下:Write an algorithm to determine if a number is "happy".A happy number is a number defined by the following process: Starting with any positive integer, replace the number by t...

2018-03-01 18:34:28 456

原创 Java Queue用法总结

队列,一种结构体,遵循先进先出的原则。java中提供的方法有以下几种:操作有插入、删除和检查某个下标是否有值三种,其中每种操作包含两个函数,它们的功能是相同的,区别在于insert,remove,element三个函数在操作失败是报异常,而offer,poll,peek三个函数不报异常。具体描述原句是这样的:  Each of these methods exists in two forms: ...

2018-02-22 18:34:58 2363 1

原创 121.Best Time to Buy and Sell Stock

     今天刷Leetcode,遇到这样一个问题。Say you have an array for which the ith element is the price of a given stock on day i.If you were only permitted to complete at most one transaction (ie, buy one and sell on...

2018-02-10 18:26:07 154

原创 第一次用CSDN写博客,试试看

能贴图片吗7 个回答默认排序知乎用户13 人赞同了该回答总觉得如果要把Java学好,JDK目录下面的src里面常用类的方法你要清楚是怎么实现的。1.读源码:以前学的时候觉得Java好方便,什么方法都是写好的,我直接了解API,调用就行,可是到了工作,我越发的觉得源码里面的

2017-10-17 21:26:58 180

空空如也

空空如也

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

TA关注的人

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