to get N number of words and arrange them such that last letter = first letter of next string and print required Cth word | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

to get N number of words and arrange them such that last letter = first letter of next string and print required Cth word

example: let N=5 arrange them as: egg,goat,tiger,rampage,egg let value of C be 3 then output will be: tiger.

19th Jun 2017, 2:53 PM
vaishali
vaishali - avatar
1 Answer
+ 1
Is it a challenge ? If yes, you should tag it as such. If no, what have you done to try and solve this problem ?
26th Jul 2019, 9:35 PM
Baptiste E. Prunier
Baptiste E. Prunier - avatar