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 »
Sandbox

Post History

71%
+3 −0
Sandbox Weave strings together[FINALIZED]

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

#2: Post edited by user avatar Razetime‭ · 2020-11-22T05:45:12Z (almost 4 years ago)
  • Weave strings together
  • Weave strings together[FINALIZED]
#1: Initial revision by user avatar Razetime‭ · 2020-11-16T07:35:31Z (about 4 years ago)
Weave strings together
Given a list of strings(and optionally, their length) as input, weave the strings together.

# Intro
Your goal is to mimic the [`WV` operator in Pip](https://dloscutoff.github.io/pip/operators). Take a list of strings and alternate between their characters like so:

```
hello,
world, → hwc,eoo,lrd,lle,od → hwceoolrdlleod
code
```

Effectively, you need to group the characters at each index, and join them into a single string.

No truncation should be done, and all the characters of each string must be used.

# Test Cases
[Without the outputs](https://tio.run/##SypKzMxLK03O/v8/Wik7My9fSUcpOTMvNTcRyMjNL8tMVYrlilZKzk9JBQqk5@ekgfkemUAeEIVkpBZBVLhWFOQk5iWWZObnKcX@/w8A "brainfuck – Try It Online")
```python
["kino","cinema","movie"] → kcmiionnvoeimea
["code","golf"] → cgoodlef
["Hi","","There"] → HTihere
["Explanation"] → Explanation
```
You check any other test cases with [this program.](https://tio.run/##K8gs@P8/PCz9////rhUFOYl5iSWZ@XkA "Pip – Try It Online")