Skip to content

Add binary search to find peak index in a mountain array #14552

Add binary search to find peak index in a mountain array

Add binary search to find peak index in a mountain array #14552

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

ruff.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

4 errors
ruff
Process completed with exit code 1.
Ruff (UP006): data_structures/arrays/peak_mountain_array.py#L9
data_structures/arrays/peak_mountain_array.py:9:24: UP006 Use `list` instead of `List` for type annotation
Ruff (I001): data_structures/arrays/peak_mountain_array.py#L7
data_structures/arrays/peak_mountain_array.py:7:1: I001 Import block is un-sorted or un-formatted
Ruff (UP035): data_structures/arrays/peak_mountain_array.py#L7
data_structures/arrays/peak_mountain_array.py:7:1: UP035 `typing.List` is deprecated, use `list` instead