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
tsh
  • 36.2k
  • 2
  • 36
  • 133

JavaScript (Node.js), 51 bytes

f=(n,s=0,l=1)=>n?s*f(n-=.5,s-1,l+1)+l*f(n,s+1,l):!s

Try it online!

tsh
  • 36.2k
  • 2
  • 36
  • 133

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