上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页

1074 Reversing Linked List (25 分)

摘要: 1074 Reversing Linked List (25 分) Given a constant K and a singly linked list L, you are supposed to reverse the links of every K elements on L. For e 阅读全文
posted @ 2019-01-27 19:47 ZhangのBlog 阅读(134) 评论(0) 推荐(0)

1047 Student List for Course (25 分)

摘要: 1047 Student List for Course (25 分) Zhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course list of each s 阅读全文
posted @ 2019-01-27 19:06 ZhangのBlog 阅读(171) 评论(0) 推荐(0)

1052 Linked List Sorting (25 分)

摘要: 1052 Linked List Sorting (25 分) A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each st 阅读全文
posted @ 2019-01-27 18:32 ZhangのBlog 阅读(116) 评论(0) 推荐(0)

1035 Password (20 分)

摘要: 1035 Password (20 分) To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some 阅读全文
posted @ 2019-01-27 16:25 ZhangのBlog 阅读(287) 评论(0) 推荐(0)

1057 Stack (30 分)分桶法

摘要: 1057 Stack (30 分) Stack is one of the most fundamental data structures, which is based on the principle of Last In First Out (LIFO). The basic operati 阅读全文
posted @ 2019-01-27 16:04 ZhangのBlog 阅读(300) 评论(0) 推荐(0)

1058 A+B in Hogwarts (20 分)

摘要: If you are a fan of Harry Potter, you would know the world of magic has its own currency system -- as Hagrid explained it to Harry, "Seventeen silver 阅读全文
posted @ 2019-01-26 20:42 ZhangのBlog 阅读(142) 评论(0) 推荐(0)

1037 Magic Coupon (25 分)

摘要: 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-01-26 19:57 ZhangのBlog 阅读(99) 评论(0) 推荐(0)

1036 Boys vs Girls (25 分)

摘要: 1036 Boys vs Girls (25 分) This time you are asked to tell the difference between the lowest grade of all the male students and the highest grade of al 阅读全文
posted @ 2019-01-26 19:17 ZhangのBlog 阅读(124) 评论(0) 推荐(0)

1090 Highest Price in Supply Chain (25 分)

摘要: 1090 Highest Price in Supply Chain (25 分) A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in 阅读全文
posted @ 2019-01-26 19:01 ZhangのBlog 阅读(404) 评论(0) 推荐(0)

1106 Lowest Price in Supply Chain (25 分)dfs

摘要: 1106 Lowest Price in Supply Chain (25 分) A supply chain is a network of retailers(零售商), distributors(经销商), and suppliers(供应商)-- everyone involved in m 阅读全文
posted @ 2019-01-26 18:35 ZhangのBlog 阅读(311) 评论(0) 推荐(0)
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 18 下一页