您当前的位置: 首页 >  数据结构与算法

星拱北辰

暂无认证

  • 0浏览

    0关注

    1205博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

【数据结构与算法】分离链接法散列表的Java实现

星拱北辰 发布时间:2020-02-22 23:54:27 ,浏览量:0

SeparateChainingHashTable核心功能设计
  • boolean insert(x) → Insert x.
  • boolean remove(x) → Remove x.
  • boolean contains(x) → Return true if x is present.
  • void makeEmpty() → Remove all items.
SeparateChainingHashTable编程实现
import java.util.LinkedList;
import java.util.List;

/**
 * Separate chaining table implementation of hash tables.
 * Note that all "matching" is based on the equals method.
 * @author BlankSpace
 */
public 
关注
打赏
1660750074
查看更多评论
立即登录/注册

微信扫码登录

0.0469s