Sololearn: Learn to Code
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3
Well the rule is say what you see, first line is one 1 (11) second line is two 1s (21) third line is one 2 and one 1 (1211) etc. generating the next line by reading the one above as for the program, not sure, but hopefully that sets you on your way
3rd Aug 2017, 9:50 AM
Dan Walker
Dan Walker - avatar