Re:Pythonic monotonic
by klyrs on Friday August 13, 2021 @03:31PM
(#28173469)
I came up with a similar solution; using True/None/False instead of 1/0/-1 allows for more self-documenting code
and, I'd add a two more test cases: [], and [1, 2, 3, 1, 2, 3]
[ Parent
| on HN ]
There are no comments on this comment yet.