上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 44 下一页
摘要: A reversible prime in any number system is a prime whose "reverse" in that number system is also a prime. For example in the decimal system 73 is a re 阅读全文
posted @ 2019-07-15 22:54 自由之翼Az 阅读(196) 评论(0) 推荐(0) 编辑
摘要: Suppose a bank has N windows open for service. There is a yellow line in front of the windows which devides the waiting area into two parts. The rules 阅读全文
posted @ 2019-07-15 21:55 自由之翼Az 阅读(459) 评论(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 @ 2019-07-15 08:52 自由之翼Az 阅读(200) 评论(0) 推荐(0) 编辑
摘要: Problem: 反转单向和双向链表 【题目】 分别实现反转单向链表和反转双向链表的函数。 【要求】 如果链表长度为N,时间复杂度要求为O(N),额外空间 复杂度要求为O(1) Solution: 学会使用指针 阅读全文
posted @ 2019-07-13 17:41 自由之翼Az 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 【题目】给定链表的头节点head,实现删除链表的中间节点的函数。例如:不删除任何节点;1->2,删除节点1;1->2->3,删除节点2;1->2->3->4,删除节点2;1->2->3->4->5,删除节点3;进阶:给定链表的头节点head、整数a和b,实现删除位于a / b处节点的函数。例如:链表 阅读全文
posted @ 2019-07-13 17:32 自由之翼Az 阅读(246) 评论(0) 推荐(0) 编辑
摘要: To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mat 阅读全文
posted @ 2019-07-13 09:14 自由之翼Az 阅读(347) 评论(0) 推荐(0) 编辑
摘要: With the 2010 FIFA World Cup running, football fans the world over were becoming increasingly excited as the best players from the best teams doing ba 阅读全文
posted @ 2019-07-12 21:55 自由之翼Az 阅读(138) 评论(0) 推荐(0) 编辑
摘要: Given a pair of positive integers, for example, 6 and 110, can this equation 6 = 110 be true? The answer is yes, if 6 is a decimal number and 110 is a 阅读全文
posted @ 2019-07-12 21:24 自由之翼Az 阅读(231) 评论(0) 推荐(0) 编辑
摘要: This time, you are supposed to find A×B where A and B are two polynomials. Input Specification: Each input file contains one test case. Each case occu 阅读全文
posted @ 2019-07-11 23:07 自由之翼Az 阅读(199) 评论(0) 推荐(0) 编辑
摘要: The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elev 阅读全文
posted @ 2019-07-11 22:03 自由之翼Az 阅读(175) 评论(0) 推荐(0) 编辑
上一页 1 ··· 26 27 28 29 30 31 32 33 34 ··· 44 下一页