Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Code Golf

Return to Revisions

1 of 2
Kroppeb
  • 1.8k
  • 10
  • 11

Brachylog, 14 bytes

;İ{N≜↔;?≠}f(tt

Explanation

; { }f( -- Find the first n
 İ -- numbers which
 N -- is positive
 ≜ -- make explicit (otherwise it will only try one number of each length)
 ↔ -- which if reversed
 ;?≠ -- is equal to itself
 tt -- return last one

Try it online!

Kroppeb
  • 1.8k
  • 10
  • 11

AltStyle によって変換されたページ (->オリジナル) /