/dataStructures

This is a basic Data Structures study, Starting from the basics to understand better how to handle data into my applications day-to-day in a better way.

Primary LanguageJavaScriptMIT LicenseMIT

dataStructures

This is a basic Data Structures study, Starting from the basics to understand better how to handle data into my applications day-to-day in a better way. Big O (https://www.youtube.com/watch?v=D6xkbGLQesk) How to learn something (https://www.youtube.com/watch?v=5MgBikgcWnY)

Stacks

Stacks are LIFO type of data structure.

Big O of a Stack manipulation:

  • Access: O(n)
  • Search: O(n)
  • Insert: O(1)
  • Remove: O(1)

Queue

Queue are FIFO type of data structure.

Big O of a Stack manipulation:

  • Access: O(n)
  • Search: O(n)
  • Insert: O(1)
  • Remove: O(1)

Sets

a Set is like an array that can't have duplicates values inside

Big O of a Set manipulation:

  • Access: O(n)
  • Search: O(n)
  • Insert: O(1)
  • Remove: O(1)