09 2018 档案

摘要:This time your job is to fill a sequence of N positive integers into a spiral matrix in non-increasing order. A spiral matrix is filled in from the fi 阅读全文
posted @ 2018-09-02 16:44 王清河 阅读(806) 评论(0) 推荐(0) 编辑
摘要:Given a sequence of positive numbers, a segment is defined to be a consecutive subsequence. For example, given the sequence { 0.1, 0.2, 0.3, 0.4 }, we 阅读全文
posted @ 2018-09-02 11:13 王清河 阅读(777) 评论(0) 推荐(0) 编辑
摘要:There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then th 阅读全文
posted @ 2018-09-02 11:09 王清河 阅读(452) 评论(0) 推荐(0) 编辑
摘要:People on Mars count their numbers with base 13: Zero on Earth is called "tret" on Mars. The numbers 1 to 12 on Earch is called "jan, feb, mar, apr, m 阅读全文
posted @ 2018-09-01 19:29 王清河 阅读(196) 评论(0) 推荐(0) 编辑
摘要:Zhejiang University has 8 campuses and a lot of gates. From each gate we can collect the in/out times and the plate numbers of the cars crossing the g 阅读全文
posted @ 2018-09-01 16:33 王清河 阅读(667) 评论(0) 推荐(0) 编辑
摘要:The string APPAPT contains two PAT's as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed 阅读全文
posted @ 2018-09-01 10:56 王清河 阅读(173) 评论(0) 推荐(0) 编辑
摘要:According to Wikipedia: Insertion sort iterates, consuming one input element each repetition, and growing a sorted output list. Each iteration, insert 阅读全文
posted @ 2018-09-01 10:47 王清河 阅读(165) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示