2015年6月1日

散列表

摘要: 散列表实现的方法最主要的有两种。一、拉链法二、线性探测法最基本的Put和get操作(注意:内存中是并行的数组,一条保存Keys 一条保存values)线性探测法比较麻烦的是删除操作,代码如下resize操作 阅读全文

posted @ 2015-06-01 15:54 zhouzhou0615 阅读(177) 评论(0) 推荐(0) 编辑

Add and Search Word - Data structure design

摘要: Add and Search Word - Data structure design问题:Design a data structure that supports the following two operations:void addWord(word)bool search(word)se... 阅读全文

posted @ 2015-06-01 09:59 zhouzhou0615 阅读(343) 评论(0) 推荐(0) 编辑

导航