Post History
C (gcc), 46 bytes f(int*a){return *a<0|a[1]<0||*a==a[1]&f(a+1);} This takes an array that is terminated by a negative number (which is not part of the list content, just like the te...
Answer
#1: Initial revision
# [C (gcc)], 46 bytes <!-- language-all: lang-c --> f(int*a){return *a<0|a[1]<0||*a==a[1]&f(a+1);} This takes an array that is terminated by a negative number (which is not part of the list content, just like the terminating `\0` is not part of the string content in C strings). [Try it online!][TIO-ktauqnsg] [C (gcc)]: https://gcc.gnu.org/ [TIO-ktauqnsg]: https://tio.run/##bZHfaoMwFMbv8xQHhyP@G9qW9cLqizgvQowz0EVR2w2sz@5OstTStRDI4fd95@OchEefnC9LTaUafeZNvRhPvQKfHeILK5ISr4vPskzXrzVlQeKl8/IiFT@eKgGHYaxk@9bkhJxbWcEohtFEmYqzQXhkIgAGdZCtOEXIG9YDb9WgtV7U8gcNTuFo7buRRwHU7yDPIPaQ6BhAH0bV1HEHt3JC2xaC33mp1a85ITgWBYEuZnLrLiHKwa0@FLpquo6KGTMhaIEvJhVdR1@nTooSoydIwrsTJTCn/6wba42vpvcQ9s@t21vqM3ln5T8NRfPI60hm8Tu0eUTbR7QzyP53rDdffgE "C (gcc) – Try It Online"