Skip to content

The data structures using javascript programming language

Notifications You must be signed in to change notification settings

001AJD/datastructures-using-js

Repository files navigation

Data structures implemented using JavaScript by TDD approach.

Install Dependencies

npm ci

Run Tests

npm test

Data structures in javascript

  • Set
  • Map
  • Array
  • Stack
  • Queue
  • Linked Lists

Error Handling

  • Try catch block
  • Chaining method

OOP

  • Class
  • Object
  • Inheritance
    • Protoypal Inheritance
    • Classical Inheritance (Sugar Syntax for prototypal inheritance)

Asynchronous programming

  • Does await keyword inside for loop block the main thread?

String Problems

  • Reverse a string
  • Check palindrome
  • Count occurrences of character in the string
  • Replace a character with a word in string
  • Check if two strings are Anagram of each other
  • Check if string follows a given pattern. A word pattern problem
  • Check if input strings are isomorphic

Array Problems

  • Remove elements in place.
  • Remove Duplicates from a Sorted Array.
  • Remove Duplicates from a Sorted Array II.