Post History
Jelly, 1 byte E Try it online! Boring builtin answer Non builtin, the shortest I can get is 3 bytes: ḷ\⁼ Try it online! Here, we replace each element with the first element, then check i...
#1: Initial revision
# [Jelly], 1 byte
E
[Try it online!][TIO-ks7lx2by]
[Jelly]: https://github.com/DennisMitchell/jelly
[TIO-ks7lx2by]: https://tio.run/##y0rNyan8/9/1/@F2zf//ow11oDBWRyHaAMw00zEHcQxjAQ "Jelly – Try It Online"
Boring builtin answer
Non builtin, the shortest I can get is 3 bytes:
ḷ\⁼
[Try it online!][TIO-ks7m275r]
[Jelly]: https://github.com/DennisMitchell/jelly
[TIO-ks7m275r]: https://tio.run/##y0rNyan8///hju0xjxr3/D/crvn/f7ShDhTG6ihEG4CZZjrmII5hLAA "Jelly – Try It Online"
Here, we replace each element with the first element, then check if that is equal to the original array
