/autocomplete

Autocomplete functionality utilizing the `Trie` data structure.

Primary LanguageTypeScriptMIT LicenseMIT

Autocomplete Example with TypeScript

This repository demonstrates a basic autocomplete system implemented in TypeScript. It includes an Autocomplete class, a Trie data structure, and user actions for updating word priorities.

Getting Started

Follow these steps to run the example:

  1. Install Dependencies:

    npm install
  2. Compile TypeScript:

    npm run compile
  3. Run the Example:

    npm start

Available Scripts

  1. Start:

    npm start

    Compiles TypeScript and runs the example.

  2. Compile:

    npm run compile

    Compiles TypeScript

  3. Clean:

    npm run clean

    Removes the dist directory.

License

This project is licensed under the MIT License - see the LICENSE file for details.