int Hashtable::lastins(int pk){ int res,offins,i,counter; Bucket * buck; Cell* cells; res=hash_function(pk); if(table[res].get_key() != pk) return -1; buck=table[res].get_Bucket(); cells=buck->get_cells(); counter=buck->get_current(); for(i=counter-1;i<=0;i--){ offins=cells[i].get_offset_ins(); if(offins!=-1) return offins; } }