Skip to content

Added Stock Buy and Sell (Max One Transaction) solution in Python #14600

Added Stock Buy and Sell (Max One Transaction) solution in Python

Added Stock Buy and Sell (Max One Transaction) solution in Python #14600

Triggered via pull request October 4, 2025 16:35
Status Failure
Total duration 10s
Artifacts

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

3 errors
ruff
Process completed with exit code 1.
Ruff (UP006): data_structures/arrays/max_profit_one_transaction.py#L30
data_structures/arrays/max_profit_one_transaction.py:30:24: UP006 Use `list` instead of `List` for type annotation
Ruff (UP035): data_structures/arrays/max_profit_one_transaction.py#L27
data_structures/arrays/max_profit_one_transaction.py:27:1: UP035 `typing.List` is deprecated, use `list` instead