[ ASSIGNMENT: ] Even-Odd Indexed Char | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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

22nd Jan 2018, 10:08 PM
Danijel Ivanović
Danijel Ivanović - avatar
15 Answers
+ 14
Here's, oneliner 😁 Btw, nice challenge Danijel 👍😉 https://code.sololearn.com/cAHGN8I28V6E/?ref=app
22nd Jan 2018, 10:52 PM
LukArToDo
LukArToDo - avatar
+ 20
23rd Jan 2018, 10:41 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
+ 14
I hope this challenge is good !! 😊 I have one for tomorrow, 😆 it's already late. 💤 😴 I wish you all good night 🤗 && HappyCoding !! 😎
22nd Jan 2018, 10:38 PM
Danijel Ivanović
Danijel Ivanović - avatar
23rd Jan 2018, 6:41 AM
Danijel Ivanović
Danijel Ivanović - avatar
23rd Jan 2018, 4:20 AM
Ferhat Sevim
Ferhat Sevim - avatar
+ 6
https://code.sololearn.com/c47P6WzJxAbb/?ref=app
22nd Jan 2018, 11:05 PM
Vrushabh Desai
Vrushabh Desai - avatar
23rd Jan 2018, 12:30 AM
Jonathan Pizarra (JS Challenger)
Jonathan Pizarra (JS Challenger) - avatar
23rd Jan 2018, 10:45 AM
Alexander Podogov
Alexander Podogov - avatar
24th Jan 2018, 4:56 PM
Rstar
Rstar - avatar
+ 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
23rd Jan 2018, 10:01 PM
Fabio
+ 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
23rd Jan 2018, 9:11 PM
Jamil Mameri
Jamil Mameri - avatar
+ 2
https://code.sololearn.com/c3F15WvjJ16s/?ref=app
24th Jan 2018, 3:46 AM
code learner
code learner - avatar
24th Jan 2018, 3:53 AM
LunarCoffee
LunarCoffee - avatar
- 1
@Danijel.. you dnt hv to consider 0 as even index... it is an even index regardless of anything... ✌
24th Jan 2018, 4:06 PM
sayan chandra
sayan chandra - avatar