Skip to content

Add Branch and Bound solution for 0/1 Knapsack #16701

Add Branch and Bound solution for 0/1 Knapsack

Add Branch and Bound solution for 0/1 Knapsack #16701

Triggered via pull request December 28, 2025 07:03
Status Failure
Total duration 9s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

6 errors
ruff
Process completed with exit code 1.
Ruff (UP006): knapsack/knapsack_branch_and_bound.py#L60
knapsack/knapsack_branch_and_bound.py:60:48: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): knapsack/knapsack_branch_and_bound.py#L60
knapsack/knapsack_branch_and_bound.py:60:29: UP006 Use `list` instead of `List` for type annotation
Ruff (UP006): knapsack/knapsack_branch_and_bound.py#L32
knapsack/knapsack_branch_and_bound.py:32:55: UP006 Use `list` instead of `List` for type annotation
Ruff (UP035): knapsack/knapsack_branch_and_bound.py#L14
knapsack/knapsack_branch_and_bound.py:14:1: UP035 `typing.List` is deprecated, use `list` instead
Ruff (I001): knapsack/knapsack_branch_and_bound.py#L13
knapsack/knapsack_branch_and_bound.py:13:1: I001 Import block is un-sorted or un-formatted