Brachylog, (削除) 14 (削除ここまで) 11 bytes
;0{<≜.↔¬}i(
-3 bytes tanks to Fatalize
Explanation
; { }i( -- Find the nth number
0 -- (starting with 0)
< -- which is bigger then the previous one
≜ -- make explicit (otherwise it fucks up)
. -- which is the output
↔ -- and if reversed
¬ -- is not the output
Kroppeb
- 1.8k
- 10
- 11