Problem solving with programming: Generating the counting sequence
http://www.codeproject.com/Articles/751754/Counting-and-Generating-Sequences
Read full article from Problem solving with programming: Generating the counting sequence
Given an integer N, we have to generate the nth sequence of the following pattern.
- "1"
- "11" as the previous item contains one instance of 1.
- "21" as the previous entry contains two 1's.
- "1211" as the previous entry contains one 2 and one 1.
http://www.codeproject.com/Articles/751754/Counting-and-Generating-Sequences
Read full article from Problem solving with programming: Generating the counting sequence