自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

转载 Bit manipulation

1. clear the n rightmost bits of x:x & (~0

2014-07-22 01:46:52 717

原创 career cup:3.4 tower of hanoi

1. represent of hanoi: choice between LinkedList, Stack, ArrayList, Array(1) one tower can be represented by LinkedList or Stack. LinkedList has more function and it's easier to copy the tower. We n

2014-07-18 11:43:31 536

转载 inner class, static nested class

Nested classes are divided into two categories: static and non-static. Nested classes that are declared static are simply called static nested classes. Non-static nested classes are called inner class

2014-07-18 05:35:54 480

原创 career cup: 1.6 and 1.7 and 2

1. for matrix[][]

2014-07-16 15:46:22 398

原创 java tips

1. if(find = true) // this  sentence is always true, if(find = = true) is the right way2. ArrayList uses size(), not length()    Array uses length(field, not method length())    String uses leng

2014-07-16 01:17:54 424

原创 Leetcode 2: reverse polish notation

1. use stack, push it

2014-07-15 15:06:45 280

原创 career cup1.1 unique char

1. Hash map initialization is like this:HashMap map = new HashMap();K,V can only be class type, not primitive. So when you want to use int or char, use Integer and Character instead.Converting f

2014-07-15 14:11:47 399

原创 array of LinkedList

1. you can not create an array of ArrayList, because array can not hold any generic type. You can only use primitev

2014-07-13 05:33:09 533

转载 Java Details: mod and %

Careful with the terms mod and modular because n (mod m) IS ALWAYS >= 0 but not n % m. n % m is in the range > -m and < m. Although Java has a remainder operator for int and long types, it has no mo

2014-07-12 03:00:02 412

空空如也

空空如也

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

TA关注的人

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