Home Manual Reference Source

Overview

Installation

Can be managed using yarn, npm, or jspm.

yarn

yarn add @problem-solving/knapsack

npm

npm install @problem-solving/knapsack --save

jspm

jspm install npm:@problem-solving/knapsack

Usage

Import the library where needed

const knapsack = await import('@problem-solving/knapsack');
// or
import * as knapsack from '@problem-solving/knapsack';

Examples

More examples in the test files.