Post History
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. Take a list of strings and alternate between their ...
#3: Post edited
- 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.
- The strings may have spaces.
- 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
- ["Dyalog APL","Cultivation","Orchard"] → DCOyuralclthoiagvr adAtPiLon
- ```
- You check any other test cases with [this program.](https://tio.run/##K8gs@P8/PCz9////rhUFOYl5iSWZ@XkA "Pip – Try It Online")
- 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.
- The strings may have spaces.
- No truncation should be done, and all the characters of each string must be used.
- # Test Cases
- [Without the outputs](https://tio.run/##JYqxDkBAEER7XyFb@wlBopBQ6ESxzmHj7MoF4evPhmSKeTNv8Eg8nWYNoYOVWCABQ2w31LLJRRb6qAMjo9VhFjd9XJKSpl2s/43i3h0yHiT8cf6gkzlOm0q17HQHXf@ZQO3Ngn6EPoQX "brainfuck – Try It Online")
- ```python
- ["kino","cinema","movie"] → kcmiionnvoeimea
- ["code","golf"] → cgoodlef
- ["Hi","","There"] → HTihere
- ["Explanation"] → Explanation
- ["Dyalog APL","Cultivation","Orchard"] → DCOyuralclthoiagvr adAtPiLon
- ```
- You check any other test cases with [this program.](https://tio.run/##K8gs@P8/PCz9////rhUFOYl5iSWZ@XkA "Pip – Try It Online")
#2: Post edited
- 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")
- 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.
- The strings may have spaces.
- 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
- ["Dyalog APL","Cultivation","Orchard"] → DCOyuralclthoiagvr adAtPiLon
- ```
- You check any other test cases with [this program.](https://tio.run/##K8gs@P8/PCz9////rhUFOYl5iSWZ@XkA "Pip – Try It Online")
#1: Initial revision
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")