上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页
摘要: Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given "Is PAT&TAP symmetric?", the longest sym 阅读全文
posted @ 2018-02-24 22:17 ZHUQW 阅读(131) 评论(0) 推荐(0) 编辑
摘要: Indeed there are many different tourist routes from our city to Rome. You are supposed to find your clients the route with the least cost while gainin 阅读全文
posted @ 2018-02-24 10:35 ZHUQW 阅读(239) 评论(0) 推荐(0) 编辑
摘要: A gas station has to be built at such a location that the minimum distance between the station and any of the residential housing is as far away as po 阅读全文
posted @ 2018-02-24 09:06 ZHUQW 阅读(239) 评论(0) 推荐(0) 编辑
摘要: About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talked about people's talent and virtue. According to his theor 阅读全文
posted @ 2018-02-21 14:22 ZHUQW 阅读(178) 评论(0) 推荐(0) 编辑
摘要: There is a public bike service in Hangzhou City which provides great convenience to the tourists from all over the world. One may rent a bike at any s 阅读全文
posted @ 2018-02-13 19:26 ZHUQW 阅读(185) 评论(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 @ 2018-02-13 15:15 ZHUQW 阅读(146) 评论(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 @ 2018-02-13 10:07 ZHUQW 阅读(135) 评论(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 @ 2018-02-12 23:21 ZHUQW 阅读(122) 评论(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 @ 2018-02-12 18:38 ZHUQW 阅读(133) 评论(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 @ 2018-02-12 15:41 ZHUQW 阅读(127) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页