Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Nah. I had a similar exercise last year (building a simple linked list). Figure it out yourself, or you'll learn nothing.
-
Out of curiosity, how shall we help you if we:
- Don't know your specific problem? E.g. "what is meant by the question ... ? I only understand [this part] but not [another part] ."
- Your solution. E.g. "I tried solving it by doing ... [code here] ." Break it into small pieces.
Those are the key requirements for getting help anywhere - also later in a job, as it helps others to understand where you have a problem.
If you don't give us something, it just seems like "do the homework for me so I don't have to" - and nobody likes that. It does not even help you.
Anyway, welcome to devRant. -
SomeNone7135yI agree with the general sentiment, that this is just fishing for a ready-made solution out of laziness. That said, there's a really nice open-source book about data structures and algorithms:
https://opendatastructures.org
Read that, it will probably provide all the insight you need.
And just for the heck of it: learn an ML-based language such as OCaml or Haskell, and see how easy defining and using a type for (immutable) linked lists is in these languages. Maybe, just maybe, you'll never want to go back to Java after that. -
If I worked with linkedLists I would try.
Really small tip, try to visualize your ideas / algorithms by using a flowchart.
It really helps massively.
advice from a student to a student. -
@scofield I've met many programmers who can't see their way through a linked list problem. They can be confusing at first, but worth learning.
-
@devphobe What's so complex about a linked list? I can understand a double linked list taking a bit of time, but a single linked one?
-
C0D4681385y@PrivateGER I'm questioning this myself.
It's not really different to a 1 dimensional array in other languages. -
@C0D4 @ProvateGER , other languages provide the list comprehension functions for you. In school, you should learn how to write them yourself. In the workforce, it's totally acceptable to not know how modules like lodash work.
Guys cam you help me
question