Post History
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...
Answer
#2: Post edited
- # [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