上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 44 下一页
摘要: The task is really simple: given N exits on a highway which forms a simple cycle, you are supposed to tell the shortest distance between any pair of e 阅读全文
posted @ 2019-07-30 22:35 自由之翼Az 阅读(180) 评论(0) 推荐(0) 编辑
摘要: Eva is trying to make her own color stripe out of a given one. She would like to keep only her favorite colors in her favorite order by cutting off th 阅读全文
posted @ 2019-07-30 22:12 自由之翼Az 阅读(258) 评论(0) 推荐(0) 编辑
摘要: Shopping in Mars is quite a different experience. The Mars people pay by chained diamonds. Each diamond has a value (in Mars dollars M$). When making 阅读全文
posted @ 2019-07-29 08:43 自由之翼Az 阅读(279) 评论(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 阅读全文
posted @ 2019-07-28 19:58 自由之翼Az 阅读(295) 评论(0) 推荐(0) 编辑
摘要: Shuffling is a procedure used to randomize a deck of playing cards. Because standard shuffling techniques are seen as weak, and in order to avoid "ins 阅读全文
posted @ 2019-07-28 14:40 自由之翼Az 阅读(237) 评论(0) 推荐(0) 编辑
摘要: Being unique is so important to people on Mars that even their lottery is designed in a unique way. The rule of winning is simple: one bets on a numbe 阅读全文
posted @ 2019-07-28 13:31 自由之翼Az 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 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 symme 阅读全文
posted @ 2019-07-27 23:32 自由之翼Az 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the 阅读全文
posted @ 2019-07-27 23:07 自由之翼Az 阅读(118) 评论(0) 推荐(0) 编辑
摘要: Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given { 32, 321, 3214, 0229, 87 }, we c 阅读全文
posted @ 2019-07-27 22:25 自由之翼Az 阅读(174) 评论(0) 推荐(0) 编辑
摘要: The magic shop in Mars is offering some magic coupons. Each coupon has an integer N printed on it, meaning that when you use this coupon with a produc 阅读全文
posted @ 2019-07-27 21:43 自由之翼Az 阅读(261) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 44 下一页