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 3
Arnauld
  • 205.5k
  • 21
  • 187
  • 670

#JavaScript (ES6), 62 bytes

f=(n=52)=>n--?[('JQKA'[k=n>>2]||k-2)+'CDHS'[n&3],...f(n)]:'JJ'

[Try it online!][TIO-jia11u8g] [TIO-jia11u8g]: https://tio.run/##y0osSyxOLsosKNHNy09J/f8/zVYjz9bUSNPWLk9X1z5aQ90r0NtRPTrbNs/Ozii2piZb10hTW93ZxSNYPTpPzThWR09PL00jTzPWSt3LS/1/cn5ecX5Oql5OfrpGmoam5n8A "JavaScript (Node.js) – Try It Online"

Arnauld
  • 205.5k
  • 21
  • 187
  • 670

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