Coder Social home page Coder Social logo

key_value_store's Introduction

Summary of the application

Testing

  • Add(key, value):

  • Get(key):

  • Remove(key):

How to run the project

  • clone the project
  • run npm install in your terminal to install the "prompt" package
  • run node index.js to start

My idea

  • Using a linkedList as the data structure to save "key" and "value":
    1. Linked List is Dynamic data Structure.
    2. Linked List can grow and shrink during run time.
    3. Insertion and Deletion Operations are Easier.
    4. Efficient Memory Utilization, no need to pre-allocate memory.
    5. Faster Access time,can be expanded in constant time without memory overhead.

Implement step by step

  • create a "LinkedListNode" model with attribute key, value and next(as shown in linkedListNode.js file);
  • create a "LinkedList" model with a constructor to initial a empty linkedList(as shown in linkedList.js file);
  • define three functions: add, get and remove to meet requirements (as shown in linkedList.js file);
  • create the start CLI interface (index.js file) with a menu that users can select to start and a loop to keep testing.

Thanks for your time ~

key_value_store's People

Contributors

dorothy006 avatar

Watchers

 avatar

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.