上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页

2018年3月30日

摘要: L2-004. 这是二叉搜索树吗? 参考博客 阅读全文
posted @ 2018-03-30 20:37 Annetree 阅读(150) 评论(0) 推荐(0)
 
摘要: L2-001. 紧急救援 阅读全文
posted @ 2018-03-30 20:15 Annetree 阅读(132) 评论(0) 推荐(0)

2018年3月17日

摘要: L2-002. 链表去重 因为数值比较小,所以直接用数组来模拟 阅读全文
posted @ 2018-03-17 11:19 Annetree 阅读(175) 评论(0) 推荐(0)

2018年3月4日

摘要: 本题的目标很简单,就是判断一个给定的正整数是否素数。 输入格式: 输入在第一行给出一个正整数N(<=10),随后N行,每行给出一个小于231的需要判断的正整数。 输出格式: 对每个需要判断的正整数,如果它是素数,则在一行中输出“Yes”,否则输出“No”。 输入样例: 输出样例: 阅读全文
posted @ 2018-03-04 20:48 Annetree 阅读(725) 评论(0) 推荐(0)

2017年11月16日

摘要: ubuntu下载地址:http://cn.ubuntu.com/download/ Linux里打开命令行用的是右键桌面 open terminal 【Linux】linux常用基本命令 阅读全文
posted @ 2017-11-16 11:12 Annetree 阅读(117) 评论(0) 推荐(0)

2017年9月29日

摘要: Given two positive integers a and b,find suitable X and Y to meet the conditions: X+Y=a Least Common Multiple (X, Y) =bInputInput includes multiple se 阅读全文
posted @ 2017-09-29 19:16 Annetree 阅读(193) 评论(0) 推荐(0)
 
摘要: We have a special convex that all points have the same distance to origin point. As you know we can get N segments after linking the origin point and 阅读全文
posted @ 2017-09-29 19:12 Annetree 阅读(254) 评论(0) 推荐(0)
 
摘要: A box contains black balls and a single red ball. Alice and Bob draw balls from this box without replacement, alternating after each draws until the r 阅读全文
posted @ 2017-09-29 19:09 Annetree 阅读(379) 评论(0) 推荐(0)

2017年9月26日

摘要: In this problem, we will define a graph called star graph, and the question is to find the minimum distance between two given nodes in the star graph. 阅读全文
posted @ 2017-09-26 13:09 Annetree 阅读(374) 评论(0) 推荐(0)
 
摘要: There are nnn rectangles on the plane. The problem is to find the area of the union of these rectangles. Note that these rectangles might overlap with 阅读全文
posted @ 2017-09-26 13:05 Annetree 阅读(263) 评论(0) 推荐(0)

2017年9月25日

摘要: Let SSS be a sequence of integers s1s_{1}s​1​​, s2s_{2}s​2​​, ........., sns_{n}s​n​​ Each integer is is associated with a weight by the following rul 阅读全文
posted @ 2017-09-25 20:45 Annetree 阅读(265) 评论(0) 推荐(0)
 
摘要: You are given a list of train stations, say from the station 111 to the station 100100100. The passengers can order several tickets from one station t 阅读全文
posted @ 2017-09-25 20:40 Annetree 阅读(303) 评论(0) 推荐(0)
 
摘要: 描述 You are given a list of integers a0, a1, …, a2^k-1. You need to support two types of queries: 1. Output Minx,y∈[l,r] {ax∙ay}. 2. Let ax=y. 输入 The f 阅读全文
posted @ 2017-09-25 20:35 Annetree 阅读(183) 评论(0) 推荐(0)
 
摘要: 描述 Ming is going to travel for n days and the date of these days can be represented by n integers: 0, 1, 2, …, n-1. He plans to spend m consecutive da 阅读全文
posted @ 2017-09-25 20:29 Annetree 阅读(283) 评论(0) 推荐(0)

2017年9月16日

摘要: 大侦探福尔摩斯接到一张奇怪的字条:“我们约会吧! 3485djDkxh4hhGE 2984akDfkkkkggEdsb s&hgsfdk d&Hyscvnm”。大侦探很快就明白了,字条上奇怪的乱码实际上就是约会的时间“星期四 14:04”,因为前面两字符串中第1对相同的大写英文字母(大小写有区分)是 阅读全文
posted @ 2017-09-16 10:44 Annetree 阅读(170) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 22 下一页