上一页 1 2 3 4 5 6 7 ··· 15 下一页
摘要: On a broken keyboard, some of the keys are worn out. So when you type some sentences, the characters corresponding to those keys will not appear on sc... 阅读全文
posted @ 2015-03-13 21:46 Joilee 阅读(211) 评论(0) 推荐(0) 编辑
摘要: For two rational numbers, your task is to implement the basic arithmetics, that is, to calculate their sum, difference, product and quotient.Input Spe... 阅读全文
posted @ 2015-03-13 17:45 Joilee 阅读(199) 评论(0) 推荐(0) 编辑
摘要: According to Wikipedia:Insertion sortiterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insertio... 阅读全文
posted @ 2015-03-13 17:05 Joilee 阅读(208) 评论(0) 推荐(0) 编辑
摘要: One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call between A and B, we say that A and B is re... 阅读全文
posted @ 2015-03-11 23:49 Joilee 阅读(159) 评论(0) 推荐(0) 编辑
摘要: It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all the highways from/toward that c... 阅读全文
posted @ 2015-03-11 16:31 Joilee 阅读(161) 评论(0) 推荐(0) 编辑
摘要: A traveler's map gives the distances between cities along the highways, together with the cost of each highway. Now you are supposed to write a progra... 阅读全文
posted @ 2015-03-11 00:11 Joilee 阅读(157) 评论(0) 推荐(0) 编辑
摘要: As an emergency rescue team leader of a city, you are given a special map of your country. The map shows several scattered cities connected by some ro... 阅读全文
posted @ 2015-03-10 19:43 Joilee 阅读(114) 评论(0) 推荐(0) 编辑
摘要: Weibo is known as the Chinese version of Twitter. One user on Weibo may have many followers, and may follow many other users as well. Hence a social n... 阅读全文
posted @ 2015-03-10 01:23 Joilee 阅读(162) 评论(0) 推荐(0) 编辑
摘要: A graph which is connected and acyclic can be considered a tree. The height of the tree depends on the selected root. Now you are supposed to find the... 阅读全文
posted @ 2015-03-09 15:27 Joilee 阅读(141) 评论(0) 推荐(0) 编辑
摘要: A Binary Search Tree (BST) is recursively defined as a binary tree which has the following properties:The left subtree of a node contains only nodes w... 阅读全文
posted @ 2015-03-08 23:47 Joilee 阅读(185) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 ··· 15 下一页