Skip to content

codebarz/data-structure-and-algorithms-with-ES6

Repository files navigation

Data Structures and Algorithms with ES6

This exercises are based from the book Data Structures and Algorithms with JavaScript - by Michael McMillian (O’Reilly) ISBN - 978-1-449-36493-9.

The purpose of this repo is to update the exercises to ES6 standards and to correct the errors from the examples that this book has.

Examples in this repo

Num Type Exercises Description
1.- Array 4 The Array is the most common data structure in computer programming
2.- Lists 5 A List is an ordered sequence of data, where elements are not meant to be ordered.
3.- Stacks 3 A Stack is an example of Last-in, First-Out (LIFO)
4.- Queues 3 A Queue is an example of First-in, First-Out (FIFO)
5.- Linked List  4 A Linked list is a collection of objects called nodes. Each node is linked to a successor node in the list using an object reference.
6.- Double Linked List  4 Traversing a Double linked list are more efficient, since we no longer have to search for the previous node.
7.- Circular Linked List  4 The reason you might want to create a Circular linked list is if you want the ability to go backward through a list but don’t want the extra overhead of creating a doubly linked list.
8.- Dictionaries  3 A Dictionary is a data structure that stores data as key-value pairs.
9.- Hashing 2 Hashing is a common technique for storing data in such a way that the data can be inserted and retrieved very quickly. Hashing uses a data structure called a hash table. Although hash tables provide fast insertion, deletion, and retrieval, they perform poorly for operations that involve searching.
10.- Set 4 A Set is a collection of unique elements. The elements of a set are called members. The two most important properties of sets are that the members of a set are unordered and that no member can occur in a set more than once.

To run the examples we need the following:

  • NodeJS Installed
  • Open Any Terminal and position it to the folder where the files are located
  • execute the command: $ node [file-name.js]

About

Data Structures and Algorithms using ES6

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%