2016年9月8日

test

摘要: ``` public int GetUglyNumber_Solution(int index) { if (index 阅读全文

posted @ 2016-09-08 10:37 北门煎饼东门串儿 阅读(116) 评论(0) 推荐(0) 编辑

2016年6月12日

Collections.addAll 为什么比collection.addall 快(转)

摘要: from: http://stackoverflow.com/a/3343829/5032462 在stackoverflow上看到的一篇回答,老外真是太professional了,mark一下。最后的summary值得看一下。 The Java API docs say the following 阅读全文

posted @ 2016-06-12 16:35 北门煎饼东门串儿 阅读(988) 评论(0) 推荐(0) 编辑

1015. Reversible Primes (20)

摘要: A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re 阅读全文

posted @ 2016-06-12 09:52 北门煎饼东门串儿 阅读(147) 评论(0) 推荐(0) 编辑

1010. Radix (25)

摘要: 1011. World Cup Betting (20) With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players 阅读全文

posted @ 2016-06-12 09:45 北门煎饼东门串儿 阅读(163) 评论(0) 推荐(0) 编辑

2016年6月10日

1009. Product of Polynomials (25)

摘要: This time, you are supposed to find A*B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu 阅读全文

posted @ 2016-06-10 17:50 北门煎饼东门串儿 阅读(106) 评论(0) 推荐(0) 编辑

2016年6月8日

1008. Elevator (20)

摘要: The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev 阅读全文

posted @ 2016-06-08 10:57 北门煎饼东门串儿 阅读(136) 评论(0) 推荐(0) 编辑

1004. Counting Leaves (30)

摘要: A family hierarchy is usually presented by a pedigree tree. Your job is to count those family members who have no child. Input Each input file contain 阅读全文

posted @ 2016-06-08 10:45 北门煎饼东门串儿 阅读(243) 评论(0) 推荐(0) 编辑

2016年6月7日

Arrays.asList 小结

摘要: Arrays.asList()返回一个实现了List接口的类,但是不支持add,remove等改变尺寸的操作。 Arrays.asList源码如下 这里有一个大坑,我开始没仔细看,以为返回的就是java.util.ArrayList,可实际上此ArrayList是Arrays里面的私有静态内部类,代 阅读全文

posted @ 2016-06-07 23:11 北门煎饼东门串儿 阅读(146) 评论(0) 推荐(0) 编辑

1005. Spell It Right (20)

摘要: Given a non-negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the sum in English. Input Specificat 阅读全文

posted @ 2016-06-07 19:55 北门煎饼东门串儿 阅读(160) 评论(0) 推荐(0) 编辑

1006. Sign In and Sign Out (25)

摘要: At the beginning of every day, the first person who signs in the computer room will unlock the door, and the last one who signs out will lock the door 阅读全文

posted @ 2016-06-07 19:53 北门煎饼东门串儿 阅读(213) 评论(0) 推荐(0) 编辑

导航