
哈希
文章平均质量分 84
感觉自己就是个bug
这个作者很懒,什么都没留下…
展开
-
1078 Hashing (25 分)
1078 Hashing (25 分)The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of the input numbers. The hash function is defined to be H(key)=key%TSize where TSize is the maximum size of原创 2021-03-03 09:54:06 · 69 阅读 · 0 评论 -
1092 To Buy or Not to Buy (20 分)
1092 To Buy or Not to Buy (20 分)Eva would like to make a string of beads with her favorite colors so she went to a small shop to buy some beads. There were many colorful strings of beads. However the owner of the shop would only sell the strings in whole原创 2021-03-01 14:45:40 · 105 阅读 · 0 评论 -
1145 Hashing - Average Search Time (25 分)
1145 Hashing - Average Search Time (25 分)The task of this problem is simple: insert a sequence of distinct positive integers into a hash table first. Then try to find another sequence of integer keys from the table and output the average search time (the原创 2021-02-23 12:02:45 · 143 阅读 · 0 评论 -
1012 The Best Rank (25分)
1012 The Best Rank (25分)To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Programming Language, M - Mathematics (Calculus or Linear Algrbra), and E - English. At the mean time, we enco原创 2020-06-01 17:23:32 · 99 阅读 · 0 评论