上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 98 下一页
摘要: Given an undirected tree consisting of n vertices numbered from 0 to n-1, which has some apples in their vertices. You spend 1 second to walk over one 阅读全文
posted @ 2020-05-10 18:05 Veritas_des_Liberty 阅读(347) 评论(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 @ 2020-05-09 15:43 Veritas_des_Liberty 阅读(243) 评论(0) 推荐(0)
摘要: 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 @ 2020-05-09 14:33 Veritas_des_Liberty 阅读(213) 评论(0) 推荐(0)
摘要: Zhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course list of each student, you are supposed to output t 阅读全文
posted @ 2020-05-09 13:37 Veritas_des_Liberty 阅读(188) 评论(0) 推荐(0)
摘要: Eva loves to collect coins from all over the universe, including some other planets like Mars. One day she visited a universal shopping mall which cou 阅读全文
posted @ 2020-05-09 13:01 Veritas_des_Liberty 阅读(297) 评论(0) 推荐(0)
摘要: The task is simple: given any positive integer N, you are supposed to count the total number of 1's in the decimal form of the integers from 1 to N. F 阅读全文
posted @ 2020-05-08 22:20 Veritas_des_Liberty 阅读(241) 评论(0) 推荐(0)
摘要: Given two strings S​1​​ and S​2​​, S=S​1​​−S​2​​ is defined to be the remaining string after taking all the characters in S​2​​ from S​1​​. Your task 阅读全文
posted @ 2020-05-08 17:33 Veritas_des_Liberty 阅读(168) 评论(0) 推荐(0)
摘要: Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are supposed to tell if a given s 阅读全文
posted @ 2020-05-08 17:23 Veritas_des_Liberty 阅读(162) 评论(0) 推荐(0)
摘要: A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each structure contains an integer key  阅读全文
posted @ 2020-05-08 13:40 Veritas_des_Liberty 阅读(164) 评论(0) 推荐(0)
摘要: Given a non-empty tree with root R, and with weight W​i​​ assigned to each tree node T​i​​. The weight of a path from R to L is defined to be the sum 阅读全文
posted @ 2020-05-07 22:06 Veritas_des_Liberty 阅读(196) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 98 下一页