Communities

Writing
Writing
Codidact Meta
Codidact Meta
The Great Outdoors
The Great Outdoors
Photography & Video
Photography & Video
Scientific Speculation
Scientific Speculation
Cooking
Cooking
Electrical Engineering
Electrical Engineering
Judaism
Judaism
Languages & Linguistics
Languages & Linguistics
Software Development
Software Development
Mathematics
Mathematics
Christianity
Christianity
Code Golf
Code Golf
Music
Music
Physics
Physics
Linux Systems
Linux Systems
Power Users
Power Users
Tabletop RPGs
Tabletop RPGs
Community Proposals
Community Proposals
tag:snake search within a tag
answers:0 unanswered questions
user:xxxx search by author id
score:0.5 posts with 0.5+ score
"snake oil" exact phrase
votes:4 posts with 4+ votes
created:<1w created < 1 week ago
post_type:xxxx type of post
Search help
Notifications
Mark all as read See all your notifications »
Challenges

Post History

71%
+3 −0
Challenges Multiply two strings

Jelly, 2 bytes «þ Try it online! Technically speaking, this needs to be a full program, due to how Jelly's smash printing works, but it can get away with being run as a function over test case...

posted 3y ago by caird coinheringaahing‭  ·  edited 3y ago by caird coinheringaahing‭

Answer
#2: Post edited by user avatar caird coinheringaahing‭ · 2021-08-24T12:35:59Z (about 3 years ago)
  • # [Jelly], 2 bytes
  • «þ
  • [Try it online!][TIO-ksq1szsz]
  • [Jelly]: https://github.com/DennisMitchell/jelly
  • [TIO-ksq1szsz]: https://tio.run/##y0rNyan8///Q6sP7/h9erhT5/7@Sko4CGBsagUgwYQoi9PVBZAUQIGQNjYxBVGJSMoz6r4QkDsJghgnEAKgJmDqReAA "Jelly – Try It Online"
  • # [Jelly], 2 bytes
  • «þ
  • [Try it online!][TIO-ksq1szsz]
  • [Jelly]: https://github.com/DennisMitchell/jelly
  • [TIO-ksq1szsz]: https://tio.run/##y0rNyan8///Q6sP7/h9erhT5/7@Sko4CGBsagUgwYQoi9PVBZAUQIGQNjYxBVGJSMoz6r4QkDsJghgnEAKgJmDqReAA "Jelly – Try It Online"
  • Technically speaking, this needs to be a full program, due to how Jelly's smash printing works, but it can get away with being run as a function over test cases.
  • Essentially, this generates a matrix \$M\$ where \$M_{ij}\$ is given by \$\min(a_i, b_j)\$. As this is a matrix of characters, Jelly automatically flattens and concatenates the string on output
#1: Initial revision by user avatar caird coinheringaahing‭ · 2021-08-24T12:33:03Z (about 3 years ago)
# [Jelly], 2 bytes

    «þ

[Try it online!][TIO-ksq1szsz]

[Jelly]: https://github.com/DennisMitchell/jelly
[TIO-ksq1szsz]: https://tio.run/##y0rNyan8///Q6sP7/h9erhT5/7@Sko4CGBsagUgwYQoi9PVBZAUQIGQNjYxBVGJSMoz6r4QkDsJghgnEAKgJmDqReAA "Jelly – Try It Online"