career cup
marshallou
这个作者很懒,什么都没留下…
展开
-
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 · 381 阅读 · 0 评论 -
career cup: 1.6 and 1.7 and 2
1. for matrix[][]原创 2014-07-16 15:46:22 · 384 阅读 · 0 评论 -
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 · 518 阅读 · 0 评论 -
Bit manipulation
1. clear the n rightmost bits of x: x & (~0转载 2014-07-22 01:46:52 · 702 阅读 · 0 评论