Some real-world examples of the Data structure "Linked List" 👇

A thread 🧵
🔸Train is an example of a linked list as it is made up of a collection of railroad cars where each car is connected to the car in front of it.
🔸A chain is an example of a linked list as it is connected in a linked list fashion. Each link is connected with the next one.
🔸One funny example of linked list
🔸Image viewer is also an example of a linked list as you can view the previous and next image respective to the current image
🔸Previous and forward navigation in your browser is also implemented in a linked list
🔸A music player in which we can only play the next song after current and not the previous one is an example of a singly linked list
🔸A music player in which we can play both the previous as well as the next song is an example of a doubly linked list
🔸A music player in which we can play songs in loop i.e after finishing the last song it automatically plays the first song is an example of circular linked list
🔸Undo redo operations are mostly implemented in a linked list
🔸Keeping track of turns in a multiplayer board game is an example of a circular linked list. Put all the players in a circular linked list. After a player takes his turn, advance to the next player in the list.
🔸Musical chair game is an example of a circular linked list in which chairs are connected in a circular link and after each iteration of the game, one chair (node) is removed from the list.
🔸Planning a trip to some particular destination is an example of a linked list as you plan a series of directions where to go to after which place. Each step in the navigation sequence has a logical order and then points to the direction to take after the current step.
🔸GPS Navigation: A linked list of map data. Traveling from origin to destination is an example of traversing through all nodes.
Rerouting by a GPS is an example of Add and Remove operations of map data.
This is the end of the thread.

Real-life examples for other data structures coming soon. Be sure to give a follow to @meetjain74

Also if you liked this Retweet the first tweet

And let me know your thoughts below on this

• • •

Missing some Tweet in this thread? You can try to force a refresh
 

Keep Current with Meet Jain🦅

Meet Jain🦅 Profile picture

Stay in touch and get notified when new unrolls are available from this author!

Read all threads

This Thread may be Removed Anytime!

PDF

Twitter may remove this content at anytime! Save it as PDF for later use!

Try unrolling a thread yourself!

how to unroll video
  1. Follow @ThreadReaderApp to mention us!

  2. From a Twitter thread mention us with a keyword "unroll"
@threadreaderapp unroll

Practice here first or read more on our help page!

More from @meetjain74

15 Sep
Writing your first Java program??

🔸How to compile and run it
🔸What does "Public Static Void Main" mean

A thread🧵
(1/11)
A simple Java program Image
(2/11)
How to save a Java program?

The program name must be saved as the class name in which the main function is declared.
Extension -> .java
Example here: First.java
Read 14 tweets
13 Sep
Some real-world examples of the Data structure "Stack"👇

A thread🧵
Stack is a LIFO (Last In First Out) data structure.
🔸A pile of books is an example of a stack. The last book kept on the pile will be removed first i.e LAST IN FIRST OUT (LIFO) data structure Image
Read 16 tweets
12 Sep
The output of this code is:
Finalise
Main1
Main2

One fact about garbage collector is that it will call finalize() method on a particular object exactly one time.
After making m1 = null m1 becomes eligible for garbage collection. So when we call garbage collector the first time, Garbage Collector will call finalize() method on m1 before destroying it.
The finalize method will print "Finalise" here but in finalize method we are again referencing the same object by m which makes it no longer eligible for garbage collection. Hence the garbage collector will not destroy the object.
Read 4 tweets
9 Sep
Confused about implementing data structures in real problems?

See some real-world examples of the Data structure "Array" today 👇

A thread 🧵 Image
🔸A parking lot is an example of an array with each index of the array storing whether a car is present or not. Or it may be used for some other functionality. Image
🔸Phone contacts stored in a sorted array Image
Read 19 tweets
6 Sep
Want to become an Android developer or start your journey with Android development but have not started yet?

Let me help you create your first Android app to kick off your Android journey.

Work with me to the end of the thread 🧵🧵
First, download Android Studio on your PC through this link and complete the setup and wait for all indexing and initial build to finish (might take time so keep patience)
developer.android.com/studio
🔸Click on create new Project
🔸Select Empty Activity
🔸Click on next
Read 24 tweets
5 Sep
8 Google extensions every developer must use

A thread 🧵🧵
🔹Eye Dropper - Allows us to pick a color from any point in your browser and also contains our color history
chrome.google.com/webstore/detai…
🔹Json Formatter - To make JSON files and text on the web easy to read
chrome.google.com/webstore/detai…
Read 12 tweets

Did Thread Reader help you today?

Support us! We are indie developers!


This site is made by just two indie developers on a laptop doing marketing, support and development! Read more about the story.

Become a Premium Member ($3/month or $30/year) and get exclusive features!

Become Premium

Too expensive? Make a small donation by buying us coffee ($5) or help with server cost ($10)

Donate via Paypal Become our Patreon

Thank you for your support!

Follow Us on Twitter!

:(