#chainHashMap

1 messages ยท Page 1 of 1 (latest)

lyric mothBOT
#

<@&987246399047479336> please have a look, thanks.

lyric mothBOT
#

While you are waiting for getting help, here are some tips to improve your experience:

Code is much easier to read if posted with syntax highlighting and proper formatting.

If nobody is calling back, that usually means that your question was not well asked and hence nobody feels confident enough answering. Try to use your time to elaborate, provide details, context, more code, examples and maybe some screenshots. With enough info, someone knows the answer for sure.

Don't forget to close your thread using the command </help-thread close:1027500463647621170> when your question has been answered, thanks.

dawn mantle
#

did you mean linkedhashmap?

dawn mantle
#

so you're simply supposed to swap a linked list of nodes to an array list of nodes?

somber loom
#

Can you expand your example a bit more?

#

Let's code it in 10 mins

#

Yeah let's try

#

So what is a chained hashmap exactly?

#

And are you being told to implement the HashMap yourself or use the built in Java HashMap class?

#

Yeah sure

#

Ah that would take ages

#

But ...

#

We have chatgpt

#

See this chatgpt generated answer

#

It didn't do the remove method, but we can ask it to do it

#

Also, there's a very high chance this code is wrong, you'd need to test it

#

It is AI generated after all ๐Ÿ˜‚

#

Where is getNext

#

Paste it here, I don't see getNext

#

Unless you mean getNextIterator

#

But I think it looks fine? I'm on mobile so I have no clue haha

lyric mothBOT
#

I uploaded your attachments as gist. That way, they are easier to read for everyone, especially mobile users ๐Ÿ‘

somber loom
#

I think that code is fine

#

It calls upon itself because of that chaining logic

#

You should use it to reference

#

So you can finish the missing bits you have

#

No problem, if you can't figure it out or don't have enough time then :(, just remember to ask a few days before the deadline next time lol

#

Request an extension on the deadline because of your TA cancelling his office hour ;D

#

Rip well gl !

#

Have fun

lyric mothBOT
#

Closed the thread.

lyric mothBOT
#

Your question has been closed due to inactivity.

If it was not resolved yet, feel free to just post a message below
to reopen it, or create a new thread.

Note that usually the reason for nobody calling back is that your
question may have been not well asked and hence no one felt confident
enough answering.

When you reopen the thread, try to use your time to improve the quality
of the question by elaborating, providing details, context, all relevant code
snippets, any errors you are getting, concrete examples and perhaps also some
screenshots. Share your attempt, explain the expected results and compare
them to the current results.

Also try to make the information easily accessible by sharing code
or assignment descriptions directly on Discord, not behind a link or
PDF-file; provide some guidance for long code snippets and ensure
the code is well formatted and has syntax highlighting. Kindly read through
https://stackoverflow.com/help/how-to-ask for more.

With enough info, someone knows the answer for sure ๐Ÿ‘