+ 21

🔢Challenge :- Find Nth Term🎓

Find Nth Term You have an infinite series which has only two elements S and L like this (dedicated to SL platform..😉) ["S", "L", "SS", "SL", "LS", "LL", "SSS", "SSL", "SLS", "SLL", "LSS","LSL","LLS","LLL","SSSS","SSSL",.......] Your task is to find out Nth term of the series by taking N as an Input Examples :- 5 : LS 10 : SLL 100 : LSSLSL 1000 : LLLLSLSSL 150150150 : SSSLLLLSSLLSSSLLLSSSSSSSLLL

27th Feb 2018, 4:17 AM
Zoetic_Zeel
Zoetic_Zeel - avatar
14 odpowiedzi
+ 27
edit : thnx ☺ 4 best answer mark https://code.sololearn.com/cShYxjjWyC8R/?ref=app
27th Feb 2018, 6:38 AM
Gaurav Agrawal
Gaurav Agrawal - avatar
1st Mar 2018, 6:44 PM
LukArToDo
LukArToDo - avatar
+ 9
https://code.sololearn.com/cTAGG3xkj17c/?ref=app
3rd Mar 2018, 5:28 AM
Käzî Mrîdùl Høssäîn
Käzî Mrîdùl Høssäîn - avatar
27th Feb 2018, 8:16 AM
Pedro Demingos
Pedro Demingos - avatar
+ 5
Hey Zoetic! To start, nice challenge! There is now a section in the lessons for challenges like these which you can submit via the lesson factory. I think they are trying to push for these types of challenges to move more towards the lesson section, just so that the Q&A section is only for questions and answers. So if you want, you could try submitting this challenge as an assignment in the lesson factory so that it just goes to a section dedicated to these types of posts. Thanks! d:
27th Feb 2018, 4:58 AM
Faisal
Faisal - avatar
+ 5
@Faisal Yes brother, Thanks for the suggestion. I already submitted the question to that section. But you know there will be lots of questions like this people are posting in that section and still waiting for approval... I am used to solve challanges in sololearn on daily basis, but from last 1 or 2 week i have seen no challanges of some nice level, i was bored so I thought let's start posting it, atleast it will satisfy me. But if it is officially a spam, I'll not put it again.
27th Feb 2018, 6:27 AM
Zoetic_Zeel
Zoetic_Zeel - avatar
+ 5
Oh that’s fun!!! 🎉 Looks like alternative binary notation ))) I did truly enjoy it: https://code.sololearn.com/cfO5Rqpqb5ZS/#java And I wish I could see LukArToDo’s oneliner for this challenge )))
27th Feb 2018, 2:56 PM
MARTA
MARTA - avatar
+ 5
https://code.sololearn.com/c6U3KppS7I9Q/?ref=app i loved this challenge! hopefully my code works properly.
27th Feb 2018, 10:25 PM
tamaslud
tamaslud - avatar
+ 4
Please submit challenges via the lesson-factory. Thanks.
1st Mar 2018, 12:25 AM
Fox
Fox - avatar
+ 3
@CipherFox I've submitted already, but not approved still... thanks..
1st Mar 2018, 3:08 AM
Zoetic_Zeel
Zoetic_Zeel - avatar
17th Mar 2018, 4:48 AM
sayan chandra
sayan chandra - avatar
+ 1
https://code.sololearn.com/cy65qX1ZWGMo/?ref=app nice challenge!
11th Jul 2019, 5:40 PM
Saurabh Tiwari
Saurabh Tiwari - avatar
0
this is string array,print the array by array[count+1] in N loop
28th Feb 2018, 9:09 AM
Faiz