Fermé

implementing a hash table

public class HashEntry {

private int key;

private int value;

HashEntry(int key, int value) {

[url removed, login to view] = key;

[url removed, login to view] = 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

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 ont fait 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.

30 $ USD en 1 jour
(931 Commentaires)
7.4
24 $ USD en 1 jour
(117 Commentaires)
6.1
juniadsarfraz

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

25 $ USD en 1 jour
(80 Commentaires)
6.0
30 $ USD en 2 jours
(41 Commentaires)
5.6
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

50 $ USD en 1 jour
(49 Commentaires)
5.8
25 $ USD en 1 jour
(43 Commentaires)
5.3
25 $ USD en 1 jour
(38 Commentaires)
5.1
ivivek

Hello, This is in response to your job notification for the position of Java Professional for your project. I have been working as a Java developer for the last 4 years with a software firm and mentioned bel Plus

30 $ USD en 1 jour
(15 Commentaires)
4.4
20 $ USD en 1 jour
(11 Commentaires)
4.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

30 $ USD en 0 jours
(8 Commentaires)
3.5
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

35 $ USD en 1 jour
(4 Commentaires)
2.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

49 $ USD en 1 jour
(1 Commentaire)
2.9
25 $ USD en 1 jour
(8 Commentaires)
2.8
wasifalbert

Hi wasif here i have professional experience in software development i have developed many software for my clients i have read your requirements and i can develop your project as per your requirements Thanks!

25 $ USD en 1 jour
(5 Commentaires)
2.5
25 $ USD en 1 jour
(2 Commentaires)
2.5
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

25 $ USD en 1 jour
(5 Commentaires)
2.7
23 $ USD en 6 jours
(0 Commentaires)
0.0
25 $ USD en 1 jour
(0 Commentaires)
0.0
ajayjindal9953

A proposal has not yet been provided

15 $ USD en 1 jour
(0 Commentaires)
0.0
25 $ USD en 10 jours
(0 Commentaires)
0.0