KnapsackUtils class
Item with weight and value.
Constructors
- KnapsackUtils(int weight, int value)
-
Creates a knapsack item with the given
weight(cost) andvalue(profit).const
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited