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 Answer

deleted 22 characters in body
Source Link
user79855
user79855

Ruby,(削除) 24 (削除ここまで) 22 bytes

->n{'+-*/%p|^<>'[0%&|^<>'[0,n]}

Try it online! Try it online!

-2 bytes thanks to @benj2240

Ruby,(削除) 24 (削除ここまで) 22 bytes

->n{'+-*/%p|^<>'[0,n]}

Try it online!

-2 bytes thanks to @benj2240

Ruby, 22 bytes

->n{'+-*/%&|^<>'[0,n]}

Try it online!

-2 bytes thanks to @benj2240

added 8 characters in body
Source Link
user79855
user79855

Ruby, 24(削除) 24 (削除ここまで) 22 bytes

->n{'+-*/%p|^<>'[0...,n]}

Try it online! Try it online!

Assuming operators are allowed-2 bytes thanks to @benj2240

Ruby, 24 bytes

->n{'+-*/%p|^<>'[0...n]}

Try it online!

Assuming operators are allowed

Ruby, (削除) 24 (削除ここまで) 22 bytes

->n{'+-*/%p|^<>'[0,n]}

Try it online!

-2 bytes thanks to @benj2240

added 34 characters in body
Source Link
user79855
user79855

Ruby, 24 bytes

->n{'+-*/%p|^<>'[0...n]}

Try it online!

Assuming operators are allowed

Ruby, 24 bytes

->n{'+-*/%p|^<>'[0...n]}

Try it online!

Ruby, 24 bytes

->n{'+-*/%p|^<>'[0...n]}

Try it online!

Assuming operators are allowed

Source Link
user79855
user79855
Loading

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