miguelcostagap / custom-data-structures

custom data structures {list, dynamic arrays, queues, maps}

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom Data Structures*

js-standard-style Status: Done

< The Project >

Creation from scratch of a custom framework with methods that allows the storage and management of a collection of elements.

--> Dynamic Arrays;

--> Maps;

--> Queues;

--> Lists,

--> Stacks

< Languages Used >

  • Java

< List >

Method Description Satus Branch Contributor
add Adds the specified element to the end of the list done Miguel Costa
addAt Inserts the specified element at the specified position in the list done Miguel Costa
get Returns the element at the specified index in the list done Miguel Costa
replace Replaces the element at the specified position in the list with the specified element done Miguel Costa
remove Removes the element at the specified index from the list done Miguel Costa
size Returns the number of elements in the list done Miguel Costa
contains Returns true if the list contains the specified element; otherwise, returns false done Miguel Costa

< Dynamic Arrays >

Method Description Satus Branch Contributor
add Adds the specified element to the end of the list done Miguel Costa
addAt Inserts the specified element at the specified position in the list done Miguel Costa
get Returns the element at the specified index in the list done Miguel Costa
replace Replaces the element at the specified position in the list with the specified element done Miguel Costa
remove Removes the element at the specified index from the list done Miguel Costa
size Returns the number of elements in the list done Miguel Costa
contains Returns true if the list contains the specified element; otherwise, returns false done Miguel Costa

< maps >

Method Description Satus Branch Contributor
put Associates the specified value with the specified key in the map. If the key already exists, the previous value is replaced done Miguel Costa
get Returns the value associated with the specified key in the map, or null if the key is not found done Miguel Costa
remove Removes the key-value pair associated with the specified key from the map done Miguel Costa
containsKey Returns true if the map contains the specified key; otherwise, returns false done Miguel Costa
containsValue Returns true if the map contains at least one key-value pair with the specified value; otherwise, returns false done Miguel Costa
size Returns the number of elements in the list done Miguel Costa
values Returns a collection of all values in the map done Miguel Costa
entrySet Returns a set of key-value pairs (entries) in the map done Miguel Costa
keySet Returns a set of all keys in the map done Miguel Costa

< Queues >

Method Description Satus Branch Contributor
add Adds the specified element to the end of the list done Miguel Costa
remove Removes and returns the element at the front of the queue. Throws an exception if the queue is empty done Miguel Costa
poll Removes and returns the element at the front of the queue. Returns null if the queue is empty done Miguel Costa
element Returns the element at the front of the queue without removing it. Throws an exception if the queue is empty done Miguel Costa
peek Returns the element at the front of the queue without removing it. Returns null if the queue is empty done Miguel Costa

< Stacks >

Method Description Satus Branch Contributor
push Add an element to the top of the stack done Miguel Costa
pop Remove and return the element at the top of the stack done Miguel Costa
remove Removes and returns the element at the front of the queue. Throws an exception if the queue is empty done Miguel Costa
peek Returns the element at the front of the queue without removing it. Returns null if the queue is empty done Miguel Costa

About

custom data structures {list, dynamic arrays, queues, maps}


Languages

Language:Java 100.0%