Submit Search
Upload
DSA in java
•
Download as PPTX, PDF
•
2 likes
•
210 views
5
5138SARANKUMARR
Follow
Here I have discussed java collections which uses popular datastructures.
Read less
Read more
Technology
Report
Share
Report
Share
1 of 13
Download now
Recommended
Oop concepts in python
Oop concepts in python
baabtra.com - No. 1 supplier of quality freshers
How to use Map() Filter() and Reduce() functions in Python | Edureka
How to use Map() Filter() and Reduce() functions in Python | Edureka
Edureka!
How to Build a Multi-DC Cassandra Cluster in AWS with OpsCenter LCM
How to Build a Multi-DC Cassandra Cluster in AWS with OpsCenter LCM
Anant Corporation
Internals of Presto Service
Internals of Presto Service
Treasure Data, Inc.
Arrays in Java
Arrays in Java
Abhilash Nair
Introduction to numpy Session 1
Introduction to numpy Session 1
Jatin Miglani
Command line arguments.21
Command line arguments.21
myrajendra
Introduction to NumPy
Introduction to NumPy
Huy Nguyen
Recommended
Oop concepts in python
Oop concepts in python
baabtra.com - No. 1 supplier of quality freshers
How to use Map() Filter() and Reduce() functions in Python | Edureka
How to use Map() Filter() and Reduce() functions in Python | Edureka
Edureka!
How to Build a Multi-DC Cassandra Cluster in AWS with OpsCenter LCM
How to Build a Multi-DC Cassandra Cluster in AWS with OpsCenter LCM
Anant Corporation
Internals of Presto Service
Internals of Presto Service
Treasure Data, Inc.
Arrays in Java
Arrays in Java
Abhilash Nair
Introduction to numpy Session 1
Introduction to numpy Session 1
Jatin Miglani
Command line arguments.21
Command line arguments.21
myrajendra
Introduction to NumPy
Introduction to NumPy
Huy Nguyen
What are Data structures in Python? | List, Dictionary, Tuple Explained | Edu...
What are Data structures in Python? | List, Dictionary, Tuple Explained | Edu...
Edureka!
Pass by value and pass by reference
Pass by value and pass by reference
TurnToTech
Inheritance in OOPs with java
Inheritance in OOPs with java
AAKANKSHA JAIN
Java string handling
Java string handling
Salman Khan
Hadoop MapReduce Fundamentals
Hadoop MapReduce Fundamentals
Lynn Langit
Data Analysis with Python Pandas
Data Analysis with Python Pandas
Neeru Mittal
sets and maps
sets and maps
Rajkattamuri
Array in Java
Array in Java
Shehrevar Davierwala
Hadoop File system (HDFS)
Hadoop File system (HDFS)
Prashant Gupta
JAVA PROGRAMMING - The Collections Framework
JAVA PROGRAMMING - The Collections Framework
Jyothishmathi Institute of Technology and Science Karimnagar
Python Variable Types, List, Tuple, Dictionary
Python Variable Types, List, Tuple, Dictionary
Soba Arjun
Namespaces
Namespaces
Sangeetha S
Union in C programming
Union in C programming
Kamal Acharya
Python programming : Standard Input and Output
Python programming : Standard Input and Output
Emertxe Information Technologies Pvt Ltd
Parquet performance tuning: the missing guide
Parquet performance tuning: the missing guide
Ryan Blue
Introduction to NumPy (PyData SV 2013)
Introduction to NumPy (PyData SV 2013)
PyData
Apache Spark Components
Apache Spark Components
Girish Khanzode
Java 8 Streams
Java 8 Streams
Manvendra Singh
Jsp/Servlet
Jsp/Servlet
Sunil OS
Introduction to Big Data
Introduction to Big Data
Vipin Batra
Javasession7
Javasession7
Rajeev Kumar
Collections framework in java
Collections framework in java
yugandhar vadlamudi
More Related Content
What's hot
What are Data structures in Python? | List, Dictionary, Tuple Explained | Edu...
What are Data structures in Python? | List, Dictionary, Tuple Explained | Edu...
Edureka!
Pass by value and pass by reference
Pass by value and pass by reference
TurnToTech
Inheritance in OOPs with java
Inheritance in OOPs with java
AAKANKSHA JAIN
Java string handling
Java string handling
Salman Khan
Hadoop MapReduce Fundamentals
Hadoop MapReduce Fundamentals
Lynn Langit
Data Analysis with Python Pandas
Data Analysis with Python Pandas
Neeru Mittal
sets and maps
sets and maps
Rajkattamuri
Array in Java
Array in Java
Shehrevar Davierwala
Hadoop File system (HDFS)
Hadoop File system (HDFS)
Prashant Gupta
JAVA PROGRAMMING - The Collections Framework
JAVA PROGRAMMING - The Collections Framework
Jyothishmathi Institute of Technology and Science Karimnagar
Python Variable Types, List, Tuple, Dictionary
Python Variable Types, List, Tuple, Dictionary
Soba Arjun
Namespaces
Namespaces
Sangeetha S
Union in C programming
Union in C programming
Kamal Acharya
Python programming : Standard Input and Output
Python programming : Standard Input and Output
Emertxe Information Technologies Pvt Ltd
Parquet performance tuning: the missing guide
Parquet performance tuning: the missing guide
Ryan Blue
Introduction to NumPy (PyData SV 2013)
Introduction to NumPy (PyData SV 2013)
PyData
Apache Spark Components
Apache Spark Components
Girish Khanzode
Java 8 Streams
Java 8 Streams
Manvendra Singh
Jsp/Servlet
Jsp/Servlet
Sunil OS
Introduction to Big Data
Introduction to Big Data
Vipin Batra
What's hot
(20)
What are Data structures in Python? | List, Dictionary, Tuple Explained | Edu...
What are Data structures in Python? | List, Dictionary, Tuple Explained | Edu...
Pass by value and pass by reference
Pass by value and pass by reference
Inheritance in OOPs with java
Inheritance in OOPs with java
Java string handling
Java string handling
Hadoop MapReduce Fundamentals
Hadoop MapReduce Fundamentals
Data Analysis with Python Pandas
Data Analysis with Python Pandas
sets and maps
sets and maps
Array in Java
Array in Java
Hadoop File system (HDFS)
Hadoop File system (HDFS)
JAVA PROGRAMMING - The Collections Framework
JAVA PROGRAMMING - The Collections Framework
Python Variable Types, List, Tuple, Dictionary
Python Variable Types, List, Tuple, Dictionary
Namespaces
Namespaces
Union in C programming
Union in C programming
Python programming : Standard Input and Output
Python programming : Standard Input and Output
Parquet performance tuning: the missing guide
Parquet performance tuning: the missing guide
Introduction to NumPy (PyData SV 2013)
Introduction to NumPy (PyData SV 2013)
Apache Spark Components
Apache Spark Components
Java 8 Streams
Java 8 Streams
Jsp/Servlet
Jsp/Servlet
Introduction to Big Data
Introduction to Big Data
Similar to DSA in java
Javasession7
Javasession7
Rajeev Kumar
Collections framework in java
Collections framework in java
yugandhar vadlamudi
Java Collections Framework
Java Collections Framework
Sony India Software Center
Java Collections
Java Collections
Kongu Engineering College, Perundurai, Erode
tutorial 10 Exploring Arrays, Loops, and conditional statements.ppt
tutorial 10 Exploring Arrays, Loops, and conditional statements.ppt
AbdisamedAdam
Ds
Ds
vishnu kumar prajapati
Data structures
Data structures
Nur Saleha
Hash based inventory system
Hash based inventory system
DADITIRUMALATARUN
Ts project Hash based inventory system
Ts project Hash based inventory system
DADITIRUMALATARUN
Java
Java
AbdulImrankhan7
Chapter 10 Exploring arrays, loops, and conditional statements
Chapter 10 Exploring arrays, loops, and conditional statements
Dr. Ahmed Al Zaidy
Java collections
Java collections
Sujit Kumar
Java Collections.pptx
Java Collections.pptx
AbhishekKudal2
Collections in .net technology (2160711)
Collections in .net technology (2160711)
Janki Shah
Java 103 intro to java data structures
Java 103 intro to java data structures
agorolabs
Collections Training
Collections Training
Ramindu Deshapriya
Pi j3.4 data-structures
Pi j3.4 data-structures
mcollison
Hashing And Hashing Tables
Hashing And Hashing Tables
Chinmaya M. N
Java 103
Java 103
Manuela Grindei
JAVA Collections frame work ppt
JAVA Collections frame work ppt
Ranjith Alappadan
Similar to DSA in java
(20)
Javasession7
Javasession7
Collections framework in java
Collections framework in java
Java Collections Framework
Java Collections Framework
Java Collections
Java Collections
tutorial 10 Exploring Arrays, Loops, and conditional statements.ppt
tutorial 10 Exploring Arrays, Loops, and conditional statements.ppt
Ds
Ds
Data structures
Data structures
Hash based inventory system
Hash based inventory system
Ts project Hash based inventory system
Ts project Hash based inventory system
Java
Java
Chapter 10 Exploring arrays, loops, and conditional statements
Chapter 10 Exploring arrays, loops, and conditional statements
Java collections
Java collections
Java Collections.pptx
Java Collections.pptx
Collections in .net technology (2160711)
Collections in .net technology (2160711)
Java 103 intro to java data structures
Java 103 intro to java data structures
Collections Training
Collections Training
Pi j3.4 data-structures
Pi j3.4 data-structures
Hashing And Hashing Tables
Hashing And Hashing Tables
Java 103
Java 103
JAVA Collections frame work ppt
JAVA Collections frame work ppt
Recently uploaded
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
Hyundai Motor Group
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
Enterprise Knowledge
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
Scott Keck-Warren
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Patryk Bandurski
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
Delhi Call girls
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
null - The Open Security Community
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
Delhi Call girls
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
Neo4j
The transition to renewables in India.pdf
The transition to renewables in India.pdf
Competition Advisory Services (India) LLP
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
OnBoard
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
ThousandEyes
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
BookNet Canada
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Sinan KOZAK
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
AndikSusilo4
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
naman860154
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
naman860154
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Pooja Nehwal
Slack Application Development 101 Slides
Slack Application Development 101 Slides
praypatel2
Recently uploaded
(20)
Next-generation AAM aircraft unveiled by Supernal, S-A2
Next-generation AAM aircraft unveiled by Supernal, S-A2
IAC 2024 - IA Fast Track to Search Focused AI Solutions
IAC 2024 - IA Fast Track to Search Focused AI Solutions
SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
08448380779 Call Girls In Greater Kailash - I Women Seeking Men
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
The transition to renewables in India.pdf
The transition to renewables in India.pdf
Maximizing Board Effectiveness 2024 Webinar.pptx
Maximizing Board Effectiveness 2024 Webinar.pptx
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Transcript: #StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
#StandardsGoals for 2024: What’s new for BISAC - Tech Forum 2024
Unblocking The Main Thread Solving ANRs and Frozen Frames
Unblocking The Main Thread Solving ANRs and Frozen Frames
Pigging Solutions Piggable Sweeping Elbows
Pigging Solutions Piggable Sweeping Elbows
Azure Monitor & Application Insight to monitor Infrastructure & Application
Azure Monitor & Application Insight to monitor Infrastructure & Application
How to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
WhatsApp 9892124323 ✓Call Girls In Kalyan ( Mumbai ) secure service
Slack Application Development 101 Slides
Slack Application Development 101 Slides
DSA in java
1.
DSA Datastructure and algorithms
for coding interviews By Saran Kumar R
2.
Apply appropriate datastructure
for efficiency • ArrayList • LinkedList • HashSet • TreeSet • LinkedHashSet • PriorityQueue(heap) • HashMap • TreeMap • LinkedHashMap • Stack • Queue
3.
ArrayList ArrayList<Integer> a=new ArrayList<>(); when
to use? • unknown size. • Accessing and retrieving elements
4.
LinkedList LinkedList<Integer> a=new LinkedList<>(); When
to use? • modifications in an list • unknown size
5.
Hash Set HashSet<Integer> a=new
HashSet<>(); When to use? • To check if an element exist or not. • To eliminate duplicates.
6.
Tree Set TreeSet<Integer> a=new
TreeSet<>(); When to use? • you want elements to be sorted.
7.
LinkedHashSet LinkedHashSet<String> a=new LinkedHashSet<>(); When
to use? • you want to access elements in the inserted order.
8.
PriorityQueue(heap) PriorityQueue<Integer> a=new PriorityQueue<>(); When
to use? • To find kth largest,smallest or most frequent,less frequent elements faster. • Quick sort -> O(nlogn) heap-> O(n)
9.
Hash Map HashMap<String,Integer> a=new
HashMap<>(); When to use? • To store in key:value pairs. • Store frequency of elements.
10.
TreeMap TreeMap<Integer,String> a=new TreeMap<>(); When
to use? • When you want keyset to be sorted. a.put(3,”sk”); output: {1=D3, 2=yj, 3=sk, 7=yk} a.put(2,”yj”); a.put(7,”yk”); a.put(1,”D3);
11.
LinkedHashMap LinkedHashMap<Integer,String> a=new LinkedHashMap<>(); When
to use? When you want keyset to be in inserted order. a.put(3,”sk”); output: {3=sk, 2=yj, 7=yk, 1=D3} a.put(2,”yj”); a.put(7,”yk”); a.put(1,”D3);
12.
Stack Stack<Integer> a=new Stack<>(); When
to use? • DFS • Backtracking
13.
Queue Queue<Integer> a=new Queue<>(); When
to use? • BFS • Level order traversal in tree
Download now