上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页
摘要: 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 @ 2018-02-06 15:36 ZHUQW 阅读(138) 评论(0) 推荐(0) 编辑
摘要: To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the words share the same s 阅读全文
posted @ 2018-02-06 14:23 ZHUQW 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 容器类放入的都是元素的拷贝,而非引用。所以如果需要对元素做出改动,最好是把元素存在data[N]数组中,而仅仅在容器中存放数组下标。 函数传递容器类参数时,需要传引用,否则会超时。 vector vector作为数组,vector <int> num[ N ],可以当作二维数组使用,由于所有的vec 阅读全文
posted @ 2018-02-06 13:05 ZHUQW 阅读(92) 评论(0) 推荐(0) 编辑
摘要: Mice and Rice is the name of a programming contest in which each programmer must write a piece of code to control the movements of a mouse in a given 阅读全文
posted @ 2018-02-06 11:45 ZHUQW 阅读(105) 评论(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 @ 2018-02-06 09:55 ZHUQW 阅读(114) 评论(0) 推荐(0) 编辑
摘要: A Digital Library contains millions of books, stored according to their titles, authors, key words of their abstracts, publishers, and published years 阅读全文
posted @ 2018-02-05 23:57 ZHUQW 阅读(162) 评论(0) 推荐(0) 编辑
摘要: People often have a preference among synonyms of the same word. For example, some may prefer "the police", while others may prefer "the cops". Analyzi 阅读全文
posted @ 2018-02-05 23:25 ZHUQW 阅读(145) 评论(0) 推荐(0) 编辑
摘要: Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each pixel. In an image, the color 阅读全文
posted @ 2018-02-05 22:49 ZHUQW 阅读(96) 评论(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-02-05 22:35 ZHUQW 阅读(132) 评论(0) 推荐(0) 编辑
摘要: If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0.123*105 with 阅读全文
posted @ 2018-02-05 20:47 ZHUQW 阅读(149) 评论(0) 推荐(0) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 ··· 18 下一页