r/AskProgrammers • u/ChainsawLight • Nov 04 '26
Cracking the coding interview
How do LinkedLists work?
0
Upvotes
r/AskProgrammers • u/ChainsawLight • Nov 04 '26
How do LinkedLists work?
2
u/No_Report_4781 Nov 04 '26
They’re lists of linked data. Go to class.
2
u/DanceHackRock Nov 04 '26
Smells like Java. Is it?
2
u/flattrack Nov 04 '26
Bot looking to gain karma?
1
u/tobiasvl Nov 04 '26
https://en.wikipedia.org/wiki/Linked_list
1
u/razorree Nov 04 '26
lol.... if you don't know how google works, you won't learn programming and linkedlists anyway ...
1
u/mc_pm Nov 04 '26
They work pretty well for the right problem.
1
u/TheMrCurious Nov 05 '26
When one LinkedList falls in love with another LinkedList and they want to make babies they form a LinkedLists and live happily ever after.
1
u/DoomDroid79 Nov 05 '26
Maybe read up about it? I did and I'm very grateful for those books
1
u/nian2326076 Nov 05 '26
LinkedLists are data structures made up of nodes, where each node points to the next one in the sequence. This structure allows for dynamic memory allocation, which simplifies inserting or deleting elements compared to arrays. To practice LinkedList questions and get ready for common interview scenarios, you can use PracHub. It's also helpful to understand the differences between singly and doubly linked lists, particularly in terms of their traversal and manipulation methods.