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

5 of 6
golfed 7 bytes thanks to @Neil
ETHproductions
  • 50.3k
  • 6
  • 96
  • 241

JavaScript (ES6), (削除) 172 (削除ここまで) (削除) 169 (削除ここまで) (削除) 157 (削除ここまで) 150 bytes

Saved 10 bytes thanks to @Neil

x=>x.match(/[\w'*]+|\s+/g).map(y=>y[0]==" "?y[1]:y==`
`?". ":/\*/.test(y,l+=y.match(/\w/g).length)?(l=l%2*10+19,""):l.toS‌​tring(36,l=9),l=9).join``+"."

Can probably be further improved. Outputs in all lowercase.

ETHproductions
  • 50.3k
  • 6
  • 96
  • 241

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