79501412

Date: 2025-03-11 16:14:45
Score: 1
Natty:
Report link

Simply:

all(np.diff(x) >= 0) 

If it should be strictly increasing, then use > instead of >=.

Reasons:
  • Low length (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: lambruscoAcido