AlexLintu
  • Home
  • JavaScript
  • HackerRank
  • Concepts
Sign in Subscribe

Concepts

A collection of 4 posts
What is a Promise | JavaScript
Concepts

What is a Promise | JavaScript

A Promise is an object that represents an eventual outcome (success or failure) of an asynchronous operation and its resulting value. A promise is basically a placeholder for a value (outcome of operation) or an error (reason for failure) that we will receive at some point in the future, but
Apr 9, 2021 2 min read
What is a Hash Map Data Structure | JavaScript
JavaScript

What is a Hash Map Data Structure | JavaScript

Hash Map is a non-linear data structure in computer science. Hash Maps act like key-value stores and are very efficient at saving and retrieving data. Hash Maps * hash function - converts a key into an index within the hash map's underlying array * hash collision - happens when a hash function
Apr 5, 2021 1 min read
What is a Stack Data Structure | JavaScript
JavaScript

What is a Stack Data Structure | JavaScript

Stack is a last in, first out (LIFO) data structure in computer science. Stack is a linear collection of ordered data (nodes). Stacks * push - add data to the top of the stack (first/head node) * pop - remove and return data (first/head node) from the top of the
Mar 30, 2021 1 min read
What is a Queue Data Structure | JavaScript
JavaScript

What is a Queue Data Structure | JavaScript

Queue is a first in, first out (FIFO) data structure in computer science. Imagine a line up at your favourite restaurant that works on first come, first serve basis. The first person to enter the line up, would be the first one to enter the restaurant. The last person to
Mar 23, 2021 1 min read
Page 1 of 1
AlexLintu © 2023
  • GitHub
Powered by Ghost