Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sahilm8/data_structures

Main data structures in Java.
https://github.com/sahilm8/data_structures

data-structures java

Last synced: 6 days ago
JSON representation

Main data structures in Java.

Awesome Lists containing this project

README

        

# Data Structures

![Java](https://img.shields.io/badge/java-%23ED8B00.svg?style=for-the-badge&logo=openjdk&logoColor=white)

[![Maintenance](https://img.shields.io/badge/Maintained%3F-yes-green.svg)](https://GitHub.com/Naereen/StrapDown.js/graphs/commit-activity)

Main data structures in Java.

## Main Data Structures

- Array
- Array (fixed size array)
- List
- ArrayList (dynamic size list)
- LinkedList (linked nodes list)
- Map
- HashMap (key-value pairs)
- TreeMap (key-value pairs, sorted keys)
- Table
- Hashtable (key-value pairs, no null key/value)
- Stack
- Stack (LIFO)
- Queue
- Queue (FIFO)
- PriorityQueue (FIFO, sorted values)
- Set
- HashSet (no repeating values, O(1) time)
- TreeSet (no repeating values, sorted order, O(n) time)
- LinkedHashSet (no repeating values, insertion order, O(1) time)
- Tree
- BinaryTree (in-order, pre-order, post-order, level-order)
- BinarySearchTree (left child < root < right child)
- Heap
- MaxHeap (value of node > value of children)
- MinHeap (value of node < value of children)
- Graph
- AdjacencyListGraph (directed, undirected, weighted, unweighted)
- AdjacencyMatrixGraph (2D array, directed, undirected, weighted, unweighted)