+ 27
[ ASSIGNMENT: ] Even-Odd Indexed Char
Given a String, of length 'n' that is indexed from 0 to (n - 1). Print its even-indexed and odd-indexed characters as 2 space-separated strings on a single line. NOTE : 0 is considered to be an even index. Sample Input : 2 "Love" "SoloLearn" Sample Output : Lv oe SlLan ooer HappyCodings!:-) https://code.sololearn.com/cnDbtiUExB6U/?ref=app
15 Respostas
+ 14
Here's, oneliner 😁
Btw, nice challenge Danijel 👍😉
https://code.sololearn.com/cAHGN8I28V6E/?ref=app
+ 20
//only mine code looks big😕
https://code.sololearn.com/cFSEtFfs6ub5/?ref=app
+ 14
I hope this challenge is good !! 😊
I have one for tomorrow, 😆
it's already late. 💤 😴
I wish you all good night 🤗
&&
HappyCoding !! 😎
+ 11
Here's mine !! 😆
https://code.sololearn.com/c14GKzq0u8I5/?ref=app
+ 6
https://code.sololearn.com/c47P6WzJxAbb/?ref=app
+ 5
My try using Python
https://code.sololearn.com/ciM4Z2mi7ehJ/#py
+ 5
my try
report if bugs
https://code.sololearn.com/c0FT7Px3UXJX/?ref=app
+ 4
Here is my code, first challenge that i solve.
Thanks to @Danijel Ivanovic for the explanation.
Enter several space-separated words and the code will start.
https://code.sololearn.com/c4FL932t2amN/?ref=app
+ 3
This is my try with Python.
You don't need to enter n and it works with many words.
Thanks for challenge.
https://code.sololearn.com/c6qfsTRrrJZg/#py
+ 2
https://code.sololearn.com/c3F15WvjJ16s/?ref=app
+ 1
- 1
@Danijel..
you dnt hv to consider 0 as even index...
it is an even index regardless of anything...
✌