摘要: In the Quicksort challenges, you sorted an entire array. Sometimes, you just need specific information about a list of numbers, and doing a full sort ... 阅读全文
posted @ 2014-08-14 17:58 SunshineAtNoon 阅读(1779) 评论(1) 推荐(0) 编辑
摘要: One classic method for composing secret messages is called a square code. The spaces are removed from the english textand the characters are written i... 阅读全文
posted @ 2014-08-14 17:02 SunshineAtNoon 阅读(416) 评论(0) 推荐(0) 编辑
摘要: Sunny and Johnny together have M dollars which they intend to use at the ice cream parlour. Among N flavors available, they have to choose two distinc... 阅读全文
posted @ 2014-08-14 15:17 SunshineAtNoon 阅读(498) 评论(0) 推荐(0) 编辑
摘要: There areNintegers in an arrayA. All but one integer occur in pairs. Your task is to find out the number that occurs only once.Input FormatThe first l... 阅读全文
posted @ 2014-08-14 11:51 SunshineAtNoon 阅读(282) 评论(0) 推荐(0) 编辑