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 Weave Strings Together

Japt -P, 7 2 bytes Õc Takes input as character arrays. -5 bytes thanks to @Shaggy Try it

posted 4y ago by Quintec‭  ·  edited 4y ago by Quintec‭

Answer
#5: Post edited by user avatar Quintec‭ · 2020-11-23T19:56:18Z (almost 4 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), 7 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • úQ Õ¬kQ
  • _cries in can't do one character solution because the builtin pads spaces_
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=%2blEg1axrUQ&input=WyJEeWFsb2cgQVBMIiwiQ3VsdGl2YXRpb24iLCJPcmNoYXJkIl0)
  • For those who are curious:
  • [Japt](https://github.com/ETHproductions/japt) [`-P`](https://codegolf.meta.stackexchange.com/a/14339/), 1 [byte](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • y
  • which doesn't work because extra spaces are used to pad strings less than the greatest length.
  • [Try it anyways](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVA&code=eQ&input=WyJEeWFsb2cgQVBMIiwiQ3VsdGl2YXRpb24iLCJPcmNoYXJkIl0)
  • # [Japt](https://github.com/ETHproductions/japt) [`-P`](https://codegolf.meta.stackexchange.com/a/14339/), <strike>7</strike> 2 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • Õc
  • Takes input as character arrays. _-5 bytes thanks to @Shaggy_
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVA&code=1WM&input=W1siRCIsInkiLCJhIiwibCIsIm8iLCJnIiwiICIsIkEiLCJQIiwiTCJdLFsiQyIsInUiLCJsIiwidCIsImkiLCJ2IiwiYSIsInQiLCJpIiwibyIsIm4iXSxbIk8iLCJyIiwiYyIsImgiLCJhIiwiciIsImQiXV0)
#4: Post edited by user avatar Quintec‭ · 2020-11-22T19:54:14Z (almost 4 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), 7 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • úQ Õ¬kQ
  • _cries in can't do one character solution because the builtin pads spaces_
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=%2blEg1axrUQ&input=WyJEeWFsb2cgQVBMIiwiQ3VsdGl2YXRpb24iLCJPcmNoYXJkIl0)
  • For those who are curious:
  • <strike>[Japt](https://github.com/ETHproductions/japt) [`-P`](https://codegolf.meta.stackexchange.com/a/14339/), 1 [byte](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • y
  • </strike>which doesn't work because extra spaces are used to pad strings less than the greatest length.
  • [Try it anyways](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVA&code=eQ&input=WyJEeWFsb2cgQVBMIiwiQ3VsdGl2YXRpb24iLCJPcmNoYXJkIl0)
  • # [Japt](https://github.com/ETHproductions/japt), 7 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • úQ Õ¬kQ
  • _cries in can't do one character solution because the builtin pads spaces_
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=%2blEg1axrUQ&input=WyJEeWFsb2cgQVBMIiwiQ3VsdGl2YXRpb24iLCJPcmNoYXJkIl0)
  • For those who are curious:
  • [Japt](https://github.com/ETHproductions/japt) [`-P`](https://codegolf.meta.stackexchange.com/a/14339/), 1 [byte](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • y
  • which doesn't work because extra spaces are used to pad strings less than the greatest length.
  • [Try it anyways](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVA&code=eQ&input=WyJEeWFsb2cgQVBMIiwiQ3VsdGl2YXRpb24iLCJPcmNoYXJkIl0)
#3: Post edited by user avatar Quintec‭ · 2020-11-22T19:53:58Z (almost 4 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), 7 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • úQ Õ¬kQ
  • _cries in can't do one character solution because the builtin pads spaces_
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=%2blEg1axrUQ&input=WyJEeWFsb2cgQVBMIiwiQ3VsdGl2YXRpb24iLCJPcmNoYXJkIl0)
  • For those who are curious:
  • # [Japt](https://github.com/ETHproductions/japt) [`-P`](https://codegolf.meta.stackexchange.com/a/14339/), 1 [byte](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • y
  • which doesn't work because extra spaces are used to pad strings less than the greatest length.
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVA&code=eQ&input=WyJEeWFsb2cgQVBMIiwiQ3VsdGl2YXRpb24iLCJPcmNoYXJkIl0)
  • # [Japt](https://github.com/ETHproductions/japt), 7 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • úQ Õ¬kQ
  • _cries in can't do one character solution because the builtin pads spaces_
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=%2blEg1axrUQ&input=WyJEeWFsb2cgQVBMIiwiQ3VsdGl2YXRpb24iLCJPcmNoYXJkIl0)
  • For those who are curious:
  • <strike>[Japt](https://github.com/ETHproductions/japt) [`-P`](https://codegolf.meta.stackexchange.com/a/14339/), 1 [byte](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • y
  • </strike>which doesn't work because extra spaces are used to pad strings less than the greatest length.
  • [Try it anyways](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVA&code=eQ&input=WyJEeWFsb2cgQVBMIiwiQ3VsdGl2YXRpb24iLCJPcmNoYXJkIl0)
#2: Post edited by user avatar Quintec‭ · 2020-11-22T19:53:04Z (almost 4 years ago)
  • # [Japt](https://github.com/ETHproductions/japt), 7 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • úQ Õ¬kQ
  • _cries in can't do one character solution because the builtin pads spaces_
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=%2blEg1axrUQ&input=WyJEeWFsb2cgQVBMIiwiQ3VsdGl2YXRpb24iLCJPcmNoYXJkIl0)
  • # [Japt](https://github.com/ETHproductions/japt), 7 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • úQ Õ¬kQ
  • _cries in can't do one character solution because the builtin pads spaces_
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=%2blEg1axrUQ&input=WyJEeWFsb2cgQVBMIiwiQ3VsdGl2YXRpb24iLCJPcmNoYXJkIl0)
  • For those who are curious:
  • # [Japt](https://github.com/ETHproductions/japt) [`-P`](https://codegolf.meta.stackexchange.com/a/14339/), 1 [byte](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)
  • y
  • which doesn't work because extra spaces are used to pad strings less than the greatest length.
  • [Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&flags=LVA&code=eQ&input=WyJEeWFsb2cgQVBMIiwiQ3VsdGl2YXRpb24iLCJPcmNoYXJkIl0)
#1: Initial revision by user avatar Quintec‭ · 2020-11-22T17:03:10Z (almost 4 years ago)
# [Japt](https://github.com/ETHproductions/japt), 7 [bytes](https://en.wikipedia.org/wiki/ISO/IEC_8859-1)

    úQ Õ¬kQ

_cries in can't do one character solution because the builtin pads spaces_

[Try it](https://petershaggynoble.github.io/Japt-Interpreter/?v=1.4.6&code=%2blEg1axrUQ&input=WyJEeWFsb2cgQVBMIiwiQ3VsdGl2YXRpb24iLCJPcmNoYXJkIl0)