Giter VIP home page Giter VIP logo

lago's Introduction

Lago

Lago logo

Credits: Illustration by unDraw


๐Ÿ’ก Practice implementing Data Structures and Algorithms in JavaScript for free on GreatFrontEnd ๐Ÿ’ก


Contents

Common Data Structures and Algorithms implementations in JavaScript.

Data Structures

Algorithms

Development

$ yarn install
$ yarn test --watch

Before pushing/submitting PR

$ yarn check-all

lago's People

Contributors

attaradev avatar brandonmanke avatar crypto-cmd avatar denrizsusam avatar dependabot[bot] avatar doraemonx avatar jkl3848 avatar louietyj avatar mauris avatar ngtrhieu avatar seanjyjy avatar sibeitokgong avatar tgrander avatar utkarsh261 avatar yangshun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lago's Issues

Add Graph Node

A graph can have a value, and zero, one or more neighbours.

Add Binary Tree

The following classes should support the following operations:

BinaryTree class:

  • constructor()
  • getRoot()
  • height()
  • size()
  • isBalanced()
  • isComplete()
  • preOrder()
  • inOrder()
  • postOrder()

BinarySearchTree class which extends from BinaryTree:

  • insert()
  • search()
  • delete()
  • getMinimum()
  • getMaximum()

Add BinaryTreeNode

In order to implement the other tree data structures, we need another node class that allows just to represent it's left-subtree and right-subtree. Preferably, this node will also take into account certain properties, such as length: number of nodes in its subtree.

  • BinaryTreeNode class:
    • constructor()
    • val
    • left
    • right
    • isLeaf()

Add AVL Tree

  • AVLTree class which extends from BinarySearchTree:
    • insert()
    • search()
    • delete()

Want to join

Hey, I want to participate in this porject, is there anything i can do for it?

Inversion of Control

Currently most of the data structures accept number values and uses > or < (or variant) for comparison. As this is intended to be a library, we should incorporate IoC as much as possible.

A few ways we can do this include:

  • adding generic parameters to determine what are the values that the data structure should accept
  • accepting comparators to compare the values

I will assess and determine which data structures / algos can be done.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.