MCPcopy Create free account
hub / github.com/TheAlgorithms/Python / monotonic_array.py

File monotonic_array.py

data_structures/arrays/monotonic_array.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1# https://leetcode.com/problems/monotonic-array/
2def is_monotonic(nums: list[int]) -> bool:
3 """
4 Check if a list is monotonic.

Callers

nothing calls this directly

Calls 1

is_monotonicFunction · 0.85

Tested by

no test coverage detected