This looks like concatenation of Fibonacci sequence。
On Mon, Oct 10, 2011 at 3:34 PM, anand karthik <[email protected]>wrote: > Hi, > > I dont remember the question text exactly but the following should > convey it well > > The question: > > A number is said to be an additive number if it has the following format: > > 3268126844 : 32 6812 6844 : 32 + 6812 = 6844 > 123581321 : 1 2 3 5 8 13 21 : 1+2 = 3 , 2+3 = 5 , 3+5=8, 5+8 = 13, 8+13 > -21 > 347 : 3 4 7 : 3+4=7 > 122331234346746 : 122 3312 3434 6746 : 122 + 3312 = 3434 , 3312+3434 = > 6746 > > > If the number is broken down into non zero ( 303 : 3+0 = 3 is not > additive ) segments,and when these segments are taken in groups of > consecutive 3 ,(so two digit or single digit inputs wont qualify), the > first two should add up to the third number, such a number is called > as an additive number. > > Given a range of numbers, print all the numbers which are additive in > the sequence. > > Give an approach other than brute force. > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
