Fermé

implementing a hash table

public class HashEntry {

private int key;

private int value;

HashEntry(int key, int value) {

[login to view URL] = key;

[login to view URL] = value;

}

public int getKey() {

return key;

}

public int getValue() {

return value;

}

}

public class HashMap {

private final static int TABLE_SIZE = 128;

HashEntry[] table;

HashMap() {

table = new HashEntry[TABLE_SIZE];

for (int i = 0; i < TABLE_SIZE; i++)

table[i] = null;

}

public int get(int key) {

int hash = (key % TABLE_SIZE);

while (table[hash] != null && table[hash].getKey() != key)

hash = (hash + 1) % TABLE_SIZE;

if (table[hash] == null)

return -1;

else

return table[hash].getValue();

}

public void put(int key, int value) {

int hash = (key % TABLE_SIZE);

while (table[hash] != null && table[hash].getKey() != key)

hash = (hash + 1) % TABLE_SIZE;

table[hash] = new HashEntry(key, value);

}

}

Compétences : Java, Programmation

en voir plus : freelance final cut pro rates new york city, start a thread for each job by implementing runnable in the job or equivalent class 2, public interface unorderedlinkedlist class public static void, hash table dictionary java implementation, hash table implementation, hash table project java, dictionary implementation hash table java, hash table dictionary implementation java, hash table implementation dictionary, hash table implementation java, hash table java implementation, java hash table implementation, dictionary lookup binary search hash table, hash table determine number unique intensities image, hash cleartext passwords mysql table

Concernant l'employeur :
( 0 commentaires ) Yerevan, Armenia

Nº du projet : #12636932

26 freelance font une offre moyenne de $27 pour ce travail

it2051229

Hi there, I would like to do this project if given the opportunity. Let me know if you are interested so I can have further details. Thanks.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(1029 Commentaires)
7.5
%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(256 Commentaires)
7.0
juniadsarfraz

Java EXPERT here. VERY EASY for me. Contact me ASAP. Thanks, Junaid

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(117 Commentaires)
6.8
%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 2 jours
(60 Commentaires)
6.1
%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(112 Commentaires)
6.1
%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(81 Commentaires)
5.7
szymszteinsl

Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to work !Ready to Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(53 Commentaires)
6.0
imanolie

Hi there, I am an experienced java developer with more than 3 years experience in the enterprise field. Do you have any restriction for implementing this? Do you have a support document? Looking forward working wit Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 0 jours
(14 Commentaires)
5.0
%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(20 Commentaires)
4.4
%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(11 Commentaires)
3.7
cracken

Hi, I, based on my 5 years of experience as a software engineer knowledgeable with tools automation, can handle this task pretty well. Let me know the best of your time so we can discuss further based on your requirem Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(6 Commentaires)
3.7
%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(9 Commentaires)
3.0
TechMagnetos

Hello sir, if you are looking for a honest, smart and hardworking freelancer. Well here i am :) .I have experience of three years in java programming. Map, Graphs, AI algorithms, Digital Signal Processi Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(1 Évaluation)
2.7
sachindere76

I have 12 Years’ experience in System Analysis, Design, Implementation and testing of Java/J2EE Applications including Intranet/Internet Technologies as well as Client/Server Technologies. My Areas of Interest include Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(4 Commentaires)
2.7
ebinthomas

Have 4.5 years of experience in Java, REST, Data Structures and Algorithms, SQL and NoSQL(MongoDB, Redis), hence I will be a good help for this project. I had recently worked with Rajhees, C.E.O, MD , Dn Infoway and s Plus

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(5 Commentaires)
2.7
Santosh1161

A proposal has not yet been provided

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
softworks21

I Have real time experience in building customized HashTable code. Having over 7 Years experience in building Java, Network based applications.

%bids___i_sum_sub_32% %project_currencyDetails_sign_sub_33% USD en 1 jour
(0 Commentaires)
0.0
%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 6 jours
(0 Commentaires)
0.0
technovantsols

Dear Client, Thanks for providing us opportunity to place bid over the project and communicate with [login to view URL] mainly deal in web development, SEO, Android App, software testing and graphic design. Our vision is to b Plus

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 6 jours
(0 Commentaires)
0.0
a830144

A proposal has not yet been provided

%bids___i_sum_sub_35% %project_currencyDetails_sign_sub_36% USD en 5 jours
(0 Commentaires)
1.2