%%
%% http://tex.stackexchange.com/questions/299740/hash-tables-using-latex
%%
\documentclass{jarticle}
\usepackage{array}

\newenvironment{hashtable}[1][]
  {\begin{tabular}[#1]{
     @{} 
     > {\small} r <{\normalsize~\rlap{\fbox{\strut~~}}$~~\rightarrow$~}
     @{} l @{}}}
  {\end{tabular}}
\begin{document}

\begin{hashtable}
   0 & 110 \\
   1 & 100 \\
   2 &  90 \\
   3 &  80 \\
   4 &  70 \\
   5 &  93 $\rightarrow$ 60 \\
   6 &  50 \\
   7 &  40 \\
   8 &  96 $\rightarrow$ 30 \\
   9 &  97 $\rightarrow$ 20 \\
  10 & 120 $\rightarrow$ 10
\end{hashtable}

\end{document}
